Superscript characters for tick marks
Mostra commenti meno recenti
I would like to use superscript characters in labeling my tick marks on my axes. Matlab defaults to this for log plots, however, does not interpret Tex for tick marks when manually entered.
I would like to create a plot with the following x tick marks:
- 1
- 2
- 10^1
- 10^2
- 10^3
- 10^4
However, I would like the marks to have superscripts instead of the lame 1E1 or 1E2 label. I would also like to try to avoid tricking Matlab into writing these labels by reworking my x values to fall on a log plot and then tricking the labels to appear correct.
Is this possible?
Thanks,
Risposte (2)
Walter Roberson
il 9 Set 2011
0 voti
You will have to set() XTickLabel to the empty vector (or empty cell array). Then you will have to text() each of your required labels in to place, since text() does allow TeX and LaTex.
I think there are MATLAB File Exchange contributions that would do this work for you.
Wayne King
il 9 Set 2011
0 voti
One such contribution is:
1 Commento
Walter Roberson
il 9 Set 2011
Thanks, Wayne; I need my chocolate fix for the day before venturing in to the Twisty Little Maze of File Exchange Contributions, all alike.
Categorie
Scopri di più su Grid Lines, Tick Values, and Labels in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!