setLegMarkSize(legendSizeDesired)
Version 1.0.0.0 (315 Bytes) by
Troy Bouman
This function sets the marker size of all legend makers in a figure
I had a hard time figuring out how to adjust the marker (icon) size in a Figure in the newest versions of MATLAB. This functions does that. Just call the function after the legend command and give it the size you want the markers.
Cite As
Troy Bouman (2024). setLegMarkSize(legendSizeDesired) (https://www.mathworks.com/matlabcentral/fileexchange/53006-setlegmarksize-legendsizedesired), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2015a
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
Find more on Legend in Help Center and MATLAB Answers
Tags
Acknowledgements
Inspired by: Adjust legend marker size
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 |