fontsize

版本 1.0.0.0 (1.9 KB) 作者: Rodeo Ryan
Changes the font size of all axes objects and their labels (children)
61.0 次下载
更新时间 2017/4/22

查看许可证

Rather than having to define the font size separately for each object,
>> set(gca,'fontsize',14)
>> xlabel('x','fontsize',14)
>> ylabel('y','fontsize',14)
>> title('this is a title','fontsize',14)

you can simply call the fontsize() function and define a universal font size for all text objects in the figure!

>>fontsize(gcf,14)

Please leave a comment if you experience any issues/bugs or if you have any suggestions for improvements.

Enjoy!

引用格式

Rodeo Ryan (2025). fontsize (https://ww2.mathworks.cn/matlabcentral/fileexchange/62664-fontsize), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2014a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Labels and Annotations 的更多信息
标签 添加标签

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.0.0.0