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 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: multiple plots and pages to ps file [message #58227] Wed, 23 January 2008 12:00
knielsen73 is currently offline  knielsen73
Messages: 9
Registered: October 2007
Junior Member
thanks...I will try that :)

David Fanning wrote:
> knielsen73@gmail.com writes:
>
>> here is my contour code...
>>
>> ;-------------------------------
>> MAP_SET, 0, 0, /NOBORDER,
>
> Ah, OK, you want to work with map projections and
> multiple plots differently than you do with other
> plots:
>
> http://www.dfanning.com/tips/map_pmulti.html
>
> 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.")
Re: multiple plots and pages to ps file [message #58228 is a reply to message #58227] Wed, 23 January 2008 11:58 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
knielsen73@gmail.com writes:

> here is my contour code...
>
> ;-------------------------------
> MAP_SET, 0, 0, /NOBORDER,

Ah, OK, you want to work with map projections and
multiple plots differently than you do with other
plots:

http://www.dfanning.com/tips/map_pmulti.html

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.")
Re: multiple plots and pages to ps file [message #58229 is a reply to message #58228] Wed, 23 January 2008 11:54 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
David Fanning writes:

> 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. :-)

I would guess your Contour procedure code has an ERASE in
it that is not being protected for PostScript. If it is
there, it should be written like this:

IF (!D.FLAGS AND 256) NE 0 THEN ERASE

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.")
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 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.")
Re: multiple plots and pages to ps file [message #58231 is a reply to message #58230] Wed, 23 January 2008 11:49 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
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.")
  Switch to threaded view of this topic Create a new topic Submit Reply
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 00:27:18 PDT 2025

Total time taken to generate the page: 0.40223 seconds