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

Home » Public Forums » archive » Re: Two-page PostScript output
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: Two-page PostScript output [message #28704] Fri, 04 January 2002 09:29 Go to previous message
David Shadovitz is currently offline  David Shadovitz
Messages: 19
Registered: September 2000
Junior Member
Good call, Bill!

I had tried to simplify the code shown in my snippet. The actual code (which I
inherited) doesn't call the Contour procedure directly. The code within the loop
over images actually looks like this:

; Keep the color bar from erasing the classifications
!P.NoErase = 1
VSPlot, info
!P.NoErase = 0

I did not realize that Erase or !P.NoErase would have an impact on the
pagination.

It's a pleasure learning from you all.

-David

William Thompson wrote:

> Paul van Delst <paul.vandelst@noaa.gov> writes:
>
>> David Shadovitz wrote:
>>>
>>> I'd be thrilled if anyone could help on this one...
>>>
>>> I'm trying to write a two-page PostScript file, with one image per
>>> page. The following code almost works; it writes both images
>>> superimposed on one page.
>>>
>>> Set_Plot, 'PS', /Copy
>>> Device, filename='C:\file1.ps'
>>> for iImage=0,1 do begin
>>> Contour, imageData(iImage), ...
>>> endfor
>>> Device, /Close
>
>> When I do things like the above, the graphics are on separate pages. Maybe
>> it's a windows thing.
>
>> IDL> print, !version
>> { x86 linux unix 5.4.1 Jan 16 2001 32 32}
>
> Most likely, David has !P.NOERASE set to something other than zero, for some
> reason. That's the only thing I can figure. The simplest solution is to set
> it back to !P.NOERASE=0. Explicitly calling ERASE, as has already been
> suggested, is another solution.
>
> Bill Thompson
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: textbox value on destroy?
Next Topic: Reporting routines called

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

Current Time: Wed Oct 08 18:53:08 PDT 2025

Total time taken to generate the page: 0.00347 seconds