You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
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://se.mathworks.com/matlabcentral/fileexchange/62664-fontsize), MATLAB Central File Exchange. Retrieved .
General Information
- Version 1.0.0.0 (1.85 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.0.0.0 |
