how to center axis label?
13 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
delmi3
am 7 Jul. 2020
Kommentiert: Star Strider
am 7 Jul. 2020
Hi,
My axis label is very long and it is in two lines. How can I center the text (for example I want "trajectory angle" to be centered)?
ylabel(['Trajectory angle \newline with respect to vortex axis ( ' char(176), ' )'],'FontSize',axisFont);

0 Kommentare
Akzeptierte Antwort
Star Strider
am 7 Jul. 2020
Try this:
ylabel({'Trajectory angle';'with respect to vortex axis (°)'})
That worked when I tested it.
This also works:
ylabel(sprintf('Trajectory angle\nwith respect to vortex axis (°)'))
.
2 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Axis Labels 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!