fontsize
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
Platform Compatibility
Windows macOS LinuxCategories
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |