oplot [message #69526] |
Mon, 25 January 2010 06:16 |
Thibault Garel
Messages: 55 Registered: October 2009
|
Member |
|
|
Hi,
here is what i am trying to do:
"for i = 0,10 do begin
if i eq 0 then begin
plot,x1,y1,........
plot,w1,z1,........
.............
endif else begin
oplot,x2,y2
oplot,w2,z2
..................
endelse
endfor"
but i want the "oplot,x2,y2" to overplot the "plot,x1,y1,........" ,
the "oplot,w2,z2" to overplot " plot,w1,z1,........" and so on; that
is to say, i want that each "oplot" command applies to the
corresponding "plot" procedure.
Whereas when i do the script written above, it overplots everything on
the last plot.
Is there any way to allocate a name/number to each "plot" procedure in
order to overplot the corresponding thing on it? like:
"for i = 0,10 do begin
if i eq 0 then begin
plot,x1,y1,NAME=1
plot,w1,z1,NAME=2
.............
endif else begin
oplot,x2,y2,NAME=1
oplot,w2,z2,NAME=2
..................
endelse
endfor"
Thank you!
|
|
|