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

Home » Public Forums » archive » Re: multiple plots and pages to ps file
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: multiple plots and pages to ps file [message #58230 is a reply to message #58229] Wed, 23 January 2008 11:53 Go to previous messageGo to previous message
knielsen73 is currently offline  knielsen73
Messages: 9
Registered: October 2007
Junior Member
here is my contour code...

;-------------------------------
MAP_SET, 0, 0, /NOBORDER,
LIMIT=[40,-180,90,180],POSITION=[x0,y0,x1,y1], TITLE=s_filename
LOADCT, 33
contour, sat_ratio,lon, lat, /XSTYLE, YSTYLE=5, level=sat_level, /
CELL_FILL,/OVERPLOT, $
POSITION=[x0,y0,x1,y1]
LOADCT,13
myTicks = ['40','50','60','70','80','90']
myTickvals = [0,0.2,0.4,0.6,0.8,1]
AXIS, YAXIS=0, CHARSIZE=1.2, YTICKNAME=myTicks, YTICKV=myTickvals,
YTICKS=5, YTITLE='Latitude'
AXIS, YAXIS=1, CHARSIZE=1.2, YTICKNAME=replicate(' ',6),
YTICKV=myTickvals, YTICKS=5

myticks=['180W','120W','60W','0','60E','120E','180E']
mytickvals=[0, 0.167, 0.333, 0.5, 0.667, 0.833, 1]
AXIS, XAXIS=0, CHARSIZE=1.2, XTICKNAME=myTicks, XTICKV=myTickvals,
XTICKS=6, XTITLE='Longitude'
AXIS, XAXIS=1, CHARSIZE=1.2, XTICKNAME=replicate(' ',7),
XTICKV=myTickvals, XTICKS=6
;--------------------------------------------------------

David Fanning wrote:
> knielsen73@gmail.com writes:
>
>> I am trying to output a ps file with 8 plots per page and several
>> pages. However, my program only make one plot and then go to a new
>> page. My program looks something like this:
>>
>> SET_PLOT, 'ps'
>> DEVICE, /landscape,xsize=25,ysize=18,yoffset=28.5
>> LOADCT,13
>> DEVICE,/color,bits=8
>> !P.FONT=0
>> DEVICE,filename='output.ps'
>> !P.MULTI=[0,2,4]
>>
>> FOR... loop, where I open each data file...
>> Contour procedure
>> ENDFOR
>> DEVICE,/CLOSE
>
> The code that's drawing your contour plot must be doing
> something weird. There is nothing wrong with this code. :-)
>
> Cheers,
>
> David
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming: http://www.dfanning.com/
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: multiple plots and pages to ps file
Next Topic: Re: Releasing memory in IDL

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

Current Time: Fri Oct 10 17:25:45 PDT 2025

Total time taken to generate the page: 0.21063 seconds