You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
This functions goes to extreme lengths to create a shortened legend, e.g. a legend with shorter lines segments then the standard legend. It is intended to be used before saving a figure. Any changes to the axes after the resized legend is created may result in strange behavior.
Example:
figure;
plot(rand(10,3));
resizeLegend();
Cite As
David J. Mack (2026). resizeLegend(varargin) (https://se.mathworks.com/matlabcentral/fileexchange/58914-resizelegend-varargin), MATLAB Central File Exchange. Retrieved .
General Information
- Version 1.2.0.0 (11.2 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
