How to horizontally align multiple lines ylabel
8 次查看(过去 30 天)
显示 更早的评论
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.
0 个评论
回答(1 个)
Rik
2019-9-20
(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.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Numeric Types 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!