Effacer les filtres
Effacer les filtres

How to enlarge legend marker size?

18 vues (au cours des 30 derniers jours)
Arseniy Sleptsov
Arseniy Sleptsov le 18 Avr 2020
Modifié(e) : Adam Danz le 18 Avr 2020
I want to increase marker size in the legend (not font size)
  2 commentaires
Adam Danz
Adam Danz le 18 Avr 2020
Note, the solution in the link above uses undocumented outputs to legend() that have reently caused problems.
See this comment for a full explanation.

Connectez-vous pour commenter.

Réponse acceptée

Adam Danz
Adam Danz le 18 Avr 2020
Modifié(e) : Adam Danz le 18 Avr 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.

Plus de réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by