子图:标题长度大小和主标题
基于上述子图:
1)我希望能够在顶部位置有一个主标题它代表所有子图的标题。
2)我想增加每个子图标题的长度,使得标题的长度可以像X方向上的图形长度一样延伸。
关于该图:我在运行 3 次的循环中使用这个标题:
CO2_label={'Normal CO2','CO2 with 0.1% NPs','CO2 with 0.5% NPs','CO2 with 1% NPs';'-b','-r','-g','-k'};
for i=1:3
.
.
.
title(['Area where saturation due to ',CO2_label(1,4),' > saturation due to ',CO2_label(1,i)],'Fontweight','Bold')
end
Based on the above subplot:
1) I want to be able to have one main title at the top position which represents the title of all the subplots.
2) I would like to increase the length of the title of each subplot such that the length of the title can be extended as the length of the figure in X-direction.
About the figure: I am using this title within the loop which runs 3 times:
CO2_label={'Normal CO2','CO2 with 0.1% NPs','CO2 with 0.5% NPs','CO2 with 1% NPs';'-b','-r','-g','-k'};
for i=1:3
.
.
.
title(['Area where saturation due to ',CO2_label(1,4),' > saturation due to ',CO2_label(1,i)],'Fontweight','Bold')
end
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
1) SUPLABEL 是可用于主标题的文件交换提交。您还可以为一组子图应用 x 和 y 标签。
2)在标题调用中使用大括号来获取字符串,而不是单元格:
1) SUPLABEL is the File Exchange submission you can use for the main title. You can also apply x and y labels for a group of subplots.
2) use curly brackets in title call to get strings, not cells: