- #1
EngWiPy
- 1,368
- 61
Hello,
I am trying to do the following:
for i=1:3
semilogy(plot1,'r(-,:,d)',plot2,'b(-,:,d)',plot3,'k(-,:,d)');
legend('i legend1','i legend2',''i legend1'')
end
where I need to draw the same plots under different settings, such that each function has the same color under the different settings, but with different style, e.g: solid line in the first, dotted in the second, ... and so on. I also want to include the number i in the legend at each iteration. How to do that?
Thanks
I am trying to do the following:
for i=1:3
semilogy(plot1,'r(-,:,d)',plot2,'b(-,:,d)',plot3,'k(-,:,d)');
legend('i legend1','i legend2',''i legend1'')
end
where I need to draw the same plots under different settings, such that each function has the same color under the different settings, but with different style, e.g: solid line in the first, dotted in the second, ... and so on. I also want to include the number i in the legend at each iteration. How to do that?
Thanks