How to enlarge legend marker size?
29 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Arseniy Sleptsov
il 18 Apr 2020
Modificato: Adam Danz
il 18 Apr 2020
I want to increase marker size in the legend (not font size)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/285606/image.png)
2 Commenti
Adam Danz
il 18 Apr 2020
Note, the solution in the link above uses undocumented outputs to legend() that have reently caused problems.
Risposta accettata
Adam Danz
il 18 Apr 2020
Modificato: Adam Danz
il 18 Apr 2020
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 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Legend in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!