How can I change a colorbar title interpreter to latex?
162 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Alex Friedlan
am 24 Okt. 2019
Bearbeitet: Alex Friedlan
am 24 Okt. 2019
I'm trying to add a title to my colorbar. The other labels in my plot are set to a specific font with the 'Interpereter', 'latex' option. How can I set the colorbar title to the same interperter?
0 Kommentare
Akzeptierte Antwort
Star Strider
am 24 Okt. 2019
This seems to work (in R2019b):
surf(peaks)
c = colorbar;
c.Label.String = 'Elevation (ft in 1000s) $\frac{1}{2}$';
c.Label.Interpreter = 'latex';
(This appears to be a lucky guess on my part, otherwise taken from the colorbar documentation. I added the ‘$\frac{1}{2}$’ to be certain that it works.)
2 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Colorbar finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!