resizeLegend(vararg​in)

Shortens a legend
1,8K descargas
Actualizado 29 jun 2018

Ver licencia

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();

Citar como

David J. Mack (2024). resizeLegend(varargin) (https://www.mathworks.com/matlabcentral/fileexchange/58914-resizelegend-varargin), MATLAB Central File Exchange. Recuperado .

Compatibilidad con la versión de MATLAB
Se creó con R2013b
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS Linux
Categorías
Más información sobre Legend en Help Center y MATLAB Answers.

Community Treasure Hunt

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

Start Hunting!
Versión Publicado Notas de la versión
1.2.0.0

Fixed default behavior and added an example

1.1.0.0

[Fix] Now correclty treats legend entries of groups.
[Fix] Now correclty identifies the legend with mulitple plots in a figure.

1.0.0.0