How to enlarge legend marker size?

조회 수: 10 (최근 30일)
Arseniy Sleptsov
Arseniy Sleptsov 2020년 4월 18일
편집: Adam Danz 2020년 4월 18일
I want to increase marker size in the legend (not font size)
  댓글 수: 2
Adam Danz
Adam Danz 2020년 4월 18일
Note, the solution in the link above uses undocumented outputs to legend() that have reently caused problems.
See this comment for a full explanation.

댓글을 달려면 로그인하십시오.

채택된 답변

Adam Danz
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개)

카테고리

Help CenterFile Exchange에서 Legend에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by