remove unwanted info from legend
1 回表示 (過去 30 日間)
古いコメントを表示
The plot below have a legend with 5 data strings. However, I want to only display string 4 and 5. How do I remove the other data strings?
My code is attached.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/153617/image.jpeg)
0 件のコメント
採用された回答
dpb
2013 年 12 月 10 日
Use the returned handles of the text/line objects to clear/delete those unwanted.
Or create the cell array of strings for those wanted specifically and pass to legend initially
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!