How to horizontally align multiple lines ylabel
5 ビュー (過去 30 日間)
古いコメントを表示
![Image 001.png](https://www.mathworks.com/matlabcentral/answers/uploaded_files/238984/Image%20001.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.
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!