MATLAB从入门到精通-Matlab R2020b新功能 | 子标题和标题/标签对齐功能!
【摘要】
1. 添加副标题
多行标题已经支持了很长一段时间,但是从r2020b开始,您可以用两种简单的方法将具有自己独立属性的副标题添加到绘图中。
- Use the new subtitle function: >> s=subtitle('mySubtitle')- Use the new second argume...
1. 添加副标题
-
多行标题已经支持了很长一段时间,但是从r2020b开始,您可以用两种简单的方法将具有自己独立属性的副标题添加到绘图中。
-
- Use the new subtitle function:
-
>> s=subtitle('mySubtitle')
-
- Use the new second argument to the title function:
-
>> [t,s]=title('myTitle','mySubtitle')
-
figure()
-
tiledlayout(2,2)
-
% Method 1
-
ax(1) = nexttile;
-
th(1) = title('Pupil size');
-
sh(1) = subtitle('Happy faces');
-
ax(2) = nexttile;
-
th(2) = title('Pupil size');
-
sh(2) = subtitle('Sad faces');
-
% Method 2
-
ax(3) = nexttile;
-
[th(3), sh(3)] = title('Fixation duration', 'Happy faces');
-
ax(4) = nexttile;
-
[th(4), sh(4)] = title('Fixation duration', 'Sad faces');
-
set(ax, 'xticklabel', [], 'yt
文章来源: wenyusuran.blog.csdn.net,作者:文宇肃然,版权归原作者所有,如需转载,请联系作者。
原文链接:wenyusuran.blog.csdn.net/article/details/119984920
【版权声明】本文为华为云社区用户转载文章,如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱:
cloudbbs@huaweicloud.com
- 点赞
- 收藏
- 关注作者
评论(0)