comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » newbie: why doesn't !P.MULTI work here?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
newbie: why doesn't !P.MULTI work here? [message #6318] Wed, 05 June 1996 00:00
demott is currently offline  demott
Messages: 8
Registered: June 1996
Junior Member
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
[Message index]
 
Read Message
Previous Topic: [Fwd: Re: A problem with pickfile?]
Next Topic: Question about use?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 17:56:53 PDT 2025

Total time taken to generate the page: 0.53109 seconds