subtitle on a 2x2 grid plot using sgtitle?

64 次查看(过去 30 天)
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});

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 2-D and 3-D Plots 的更多信息

产品


版本

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by