Legends in same figure
이전 댓글 표시
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.
답변 (2개)
Image Analyst
2013년 5월 6일
0 개 추천
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
Image Analyst
2013년 5월 10일
You can delete all of the entries by issuing the "cla reset" command.
maro
2013년 5월 10일
maro
2013년 5월 10일
maro
2013년 5월 11일
maro
2013년 5월 9일
0 개 추천
댓글 수: 6
Image Analyst
2013년 5월 9일
Can you answer my 5 questions first, so that we'll then be able to answer yours?
maro
2013년 5월 9일
Image Analyst
2013년 5월 9일
You can hit alt-printscreen to capture the active window into the clipboard, and then paste into snag.gy.
maro
2013년 5월 9일
Image Analyst
2013년 5월 10일
maro
2013년 5월 10일
카테고리
도움말 센터 및 File Exchange에서 Legend에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!