fontsize

Changes the font size of all axes objects and their labels (children)
57 Downloads
Updated 22 Apr 2017

View License

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 (2024). 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 Linux
Categories
Find more on Labels and Annotations in Help Center and MATLAB Answers
Tags Add Tags

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.0.0