I would like to plot 4 images with axes overlaid per page using
!P.MULTI = [0,2,2]. First I plot the axes so that the WINDOW
variables are set. Then I plot the image using TV. Then I replot
the axes, since the image overlaid the inward pointing tick marks.
Here's the code:
!p.position=[.2,.2,.761,.785]
!P.MULTI=[0,2,2]
FOR k=0,3 DO BEGIN
; make the axes first so the WINDOW variables are set
PLOT, [0,355], [1,1], xrange=[0,355], yrange=[300,1], $
TITLE='U200 (minus zonal and temporal mean)', $
SUBTITLE='CSU95 control', $
XTITLE='Longitude band (n to n+5)', $
YTITLE='Day', $
/XSTYLE, /YSTYLE
print, !P.MULTI
; plot the image
tv, a(k,*,*), !x.window(0), !y.window(0), $
xsize=!x.window(1)-!x.window(0), $
ysize=!y.window(1)-!y.window(0), /NORM
; Make axes again with inward pointing ticks OVERLAYING image
PLOT, [0,355], [1,1], xrange=[0,355], yrange=[300,1], $
/XSTYLE, /YSTYLE, /NOERASE
; end of file(0-3) loop
END
where a is byte array. the print statement yeilds the following output:
3 2 2 0 0
2 2 2 0 0
1 2 2 0 0
0 2 2 0 0
Unfortunately, when viewing the postscript image in GhostView,
I get four plots situated one on top of the other in the center
of the page.
I can successfully plot 4 frames per page interactively as follows,
but only if I issue these statements right after starting up IDL
(otherwise I get 4 overlaid plots again):
IDL> f = findgen(10)
IDL> !P.MULTI = [0,2,2]
IDL> plot, f
IDL> plot, f
IDL> plot, f
IDL> plot, f
Any help will be greatly appreciated!
Charlotte
demott@olympic.atmos.colostate.edu
|