subtitle on a 2x2 grid plot using sgtitle?

40 ビュー (過去 30 日間)
Michael O'Brien
Michael O'Brien 2022 年 6 月 16 日
コメント済み: Voss 2022 年 6 月 16 日
I have a 2x2 subplot with a 2 line title using a multiline cell array tile;
sgt = sgtitle({folderName,fileName});
which works fine.
What I would like is to be able to change the properties of the individual lines of text i.e. the first line (folderName) to be bold and 2 points bigger in fontsize.

採用された回答

Voss
Voss 2022 年 6 月 16 日
編集済み: Voss 2022 年 6 月 16 日
folderName = 'MATLAB folder';
fileName = 'test.m';
sgt = sgtitle({['{\bf\fontsize{14}' folderName '}'],fileName});
  2 件のコメント
Michael O'Brien
Michael O'Brien 2022 年 6 月 16 日
you absolute donny don!
thank you, Voss!
Voss
Voss 2022 年 6 月 16 日
You're welcome!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSurface and Mesh Plots についてさらに検索

製品


リリース

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by