Legends in same figure
Mostra commenti meno recenti
I am plotting in the same figure from different m-files and I want a legend for each of them to show up, I tried to manage that but I failed.
To make my question clear I called the following m-files,
Beforefault
Duringfault
Afterfault
each m-file (Beforefault,Duringfault and Afterfault) has only one figure and the plot part is like this:
figure(1);
plot(t,x);
end
I putted all the three legends in last part of last m-file (Afterfault), it doesn't work.
Risposte (2)
Image Analyst
il 6 Mag 2013
0 voti
What doesn't work about it? Does it error out? Does it not have the correct (matching) colors and line styles? Does it not put three (or however many you plotted) lines in the legend box? Can you upload a screenshot to http://snag.gy?
4 Commenti
Image Analyst
il 10 Mag 2013
You can delete all of the entries by issuing the "cla reset" command.
maro
il 10 Mag 2013
maro
il 10 Mag 2013
maro
il 11 Mag 2013
maro
il 9 Mag 2013
0 voti
6 Commenti
Image Analyst
il 9 Mag 2013
Can you answer my 5 questions first, so that we'll then be able to answer yours?
maro
il 9 Mag 2013
Image Analyst
il 9 Mag 2013
You can hit alt-printscreen to capture the active window into the clipboard, and then paste into snag.gy.
maro
il 9 Mag 2013
Image Analyst
il 10 Mag 2013
maro
il 10 Mag 2013
Categorie
Scopri di più su Legend in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!