Re: positioning oplots [message #451 is a reply to message #450] |
Wed, 05 August 1992 08:36   |
jat
Messages: 4 Registered: August 1992
|
Junior Member |
|
|
Thank you all for responding. Most of you were correct in
suggesting that '!p.multi(0)' had to be reset to move the plots
around. However, the solution is more involved than that.
I think I misled (myself included), by asking for a solution
to positioning 'oplot'. The actual (simplest) solution is to set
'!p.multi(0)' to the correct plot, and use 'PLOT',and set x(y)style to
at least 4 to inhibit the axes from redrawing. This way the 'PLOT'
appears as an 'oplot' because the axes don't flicker.
Resetting '!p.multi(0)' doesn't have the desired affect on
'oplot'. Maybe in the next release 'oplot' can be expanded to allow
positioning with multiple plots.
Thanks to
Jim P.
pendleton@ossenu.astro.nwu.edu
for the following:
------------------------------------------------------------ --------------
x=findgen(20)
y = x
xrange = [min(x), max(x)]
yrange = [min(y), max(y)]
y2 = sqrt(y)
!p.multi=[0,2,2,0,0]
for i= 0, 3 do begin
plot,x,y,xstyle=1,ystyle=1,xrange=xrange,yrange=yrange,/noda ta
endfor
for i = 0, 3 do begin
plot,x,y2,xstyle=5,ystyle=5,xrange=xrange,$
yrange=yrange,/noerase
!p.multi=[3-i,2,2,0,0]
endfor
for i = 0, 3 do begin
plot,x,y,xstyle=5,ystyle=5,xrange=xrange,yrange=yrange,/noer ase
!p.multi=[3-i,2,2,0,0]
endfor
end
--
Jatinder Singh 916-653-7564
jat@water.ca.gov ...ucbvax!ucdavis!caldwr!jat
Any opinions expressed are my own; they do not represent the DWR.
|
|
|