resizeLegend(vararg​in)

版本 1.2.0.0 (11.2 KB) 作者: David J. Mack
Shortens a legend
1.8K 次下载
更新时间 2018/6/29

查看许可证

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

引用格式

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

MATLAB 版本兼容性
创建方式 R2013b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Legend 的更多信息

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
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