How to horizontally align multiple lines ylabel

8 visualizaciones (últimos 30 días)
qaqcvc
qaqcvc el 20 de Sept. de 2019
Respondida: Rik el 20 de Sept. de 2019
Image 001.png
how to put [A], [V] and [P.U.] at the center.
I have used:
set(ylb1, 'Position', [yl_pos, 0, 0],'rotation',0,'VerticalAlignment','middle','HorizontalAlignment','center' );
but it cannot align the text inside, can just align the position of the ylabel.

Respuestas (1)

Rik
Rik el 20 de Sept. de 2019
(untested idea)
You can trick the alignment by making sure the square bracket part is the middle line. To achieve this you can add lines with only a space in the front of the label.

Categorías

Más información sobre Numeric Types en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by