remove unwanted info from legend
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Akzeptierte Antwort
dpb
am 10 Dez. 2013
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 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Legend finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!