How to enlarge legend marker size?
18 次查看(过去 30 天)
显示 更早的评论
I want to increase marker size in the legend (not font size)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/285606/image.png)
2 个评论
Adam Danz
2020-4-18
Note, the solution in the link above uses undocumented outputs to legend() that have reently caused problems.
采纳的回答
Adam Danz
2020-4-18
编辑:Adam Danz
2020-4-18
The legend components cannot be independently changed. A workaround is to duplicate the objects on your plot but replace their coordinates with NaN values so the objects appear in the legend but do not appear in the plot.
Follow this demo that changes the line properties in the legend. You can easily adapt it to change the marker properties. If you have any problems, please share your code.
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Legend 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!