fontsize

Changes the font size of all axes objects and their labels (children)

You are now following this Submission

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

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0