How to exclude a line in legend?
4 ビュー (過去 30 日間)
古いコメントを表示
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
0 件のコメント
採用された回答
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 件のコメント
その他の回答 (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!