fontsize
Version 1.0.0.0 (1.85 KB) by
Rodeo Ryan
Changes the font size of all axes objects and their labels (children)
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!
Cite As
Rodeo Ryan (2026). fontsize (https://www.mathworks.com/matlabcentral/fileexchange/62664-fontsize), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2014a
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
Find more on Labels and Annotations in Help Center and MATLAB Answers
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 |
