Legend command creates too many entries
Ältere Kommentare anzeigen
How do I get the legend to only have a few of the plots and not all of them? I try plotting two plots, creating a legend for the two plots, and then I add another plot and it automatically goes in the legend as 'data1'. How do I not have the last plot in my legend?
Reproduction steps:
>> plot(1:10)
>> hold on
>> plot(1:3:12)
>> legend('plot1', 'plot2')
>> plot(1:2:16)
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Legend finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
