Right align text in subtitle
古いコメントを表示
I've created a multi-line title and I need a second string of text right aligned on the second line:
t = title({['\fontsize{14}','First line'];['\fontsize{10}',sprintf('Second line left aligned %s',stringarray),'Second line right aligned']},'FontWeight','Normal');
I'm striking out on how to do this. Should I create another line of text and try to find the position of the title then right align? Or is there a way to do this within a multi-line title?
2 件のコメント
Chunru
2021 年 10 月 30 日
Thanks for introducing the subtitle() function, which may be helpful in many other applications. However, it won't help if we want to have part of string to be aligned left and other aligned right as OP asked.
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Labels and Annotations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
