File Exchange
MATLAB Answers
Discussions
Cody
Make a legend with customized colors and labels, independent of plotted data.
共享 'make_custom_patch_legend'
您现在正在关注此提交
Jonah Pearl (2026). make_custom_patch_legend (https://ww2.mathworks.cn/matlabcentral/fileexchange/74952-make_custom_patch_legend), MATLAB Central File Exchange. 检索时间: 2026/10/6.
查看许可证
Trying again. Added list of default MATLAB colors.
1.2 update push didn't work for some reason.
Fixed the same spot, so that the for-loop indexing depends on the argument.
Changed line 49 from length(...) to size(...,1).
选择网站
选择网站以获取翻译的可用内容,以及查看当地活动和优惠。根据您的位置,我们建议您选择:。
您也可以从以下列表中选择网站:
如何获得最佳网站性能
选择中国网站(中文或英文)以获得最佳网站性能。其他 MathWorks 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
欧洲
亚太
联系您当地的办事处