Changes LEGEND fontsize while maintaining proper alignment between the legend's text strings and line symbols.
Example: Double the fontsize
hLeg = legend(h,'string1','string2',...);
resize_legend(hLeg, 2);
See graphics snapshot below for a DEMO.
Cite As
Denis Gilbert (2024). resize_legend (https://www.mathworks.com/matlabcentral/fileexchange/2190-resize_legend), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R11.1
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
Find more on Legend in Help Center and MATLAB Answers
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 | MATLAB 7 compatibility change |