How to exclude a line in legend?

조회 수: 4 (최근 30일)
Guilherme Lopes de Campos
Guilherme Lopes de Campos 2019년 9월 24일
답변: Jos (10584) 2019년 9월 24일
Hi Matlab community,
I am plotting a graphic, that there are 4 lines, (2 green and 2 red). I would like to appear in the legend of graphic, just one time an information about the limits: For example, there are two lines red, I would like to that in legend, appears only a time in red , and the green line the same way.
Could you help me?
I am very grateful!
Guilherme plot.png

채택된 답변

Jos (10584)
Jos (10584) 2019년 9월 24일
Get the handles of the lines and create a legend only for the desired handles. It is all in the documentation :-)
doc legend

추가 답변 (0개)

카테고리

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

태그

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by