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

Home » Public Forums » archive » Un-setting /ENCAPSULATED PostScript
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
Un-setting /ENCAPSULATED PostScript [message #3464] Tue, 31 January 1995 17:43 Go to next message
keith is currently offline  keith
Messages: 7
Registered: July 1993
Junior Member
A quick question -

With IDL 3.6.1a running under Solaris 2.2,, I have no problem writing
PostScript output. Occasionally, though, I want encapsulated PostScript
output, which also works fine.

The problem I have is that once I have written something out as encapsulated PostScript, how do I get the device to return to standard
PostScript? I usually will return the device to 'X', but then later, if
I want to print out a PostScript plot (non-encapsulated) and set_plot,'PS',
the device is still set to encapsulated.

If I've missed something in the manual or if anyone has suggestions,
I'd appreciate hearing. Right now, I either save all my encapsulated
stuff until the end of a session or I have to exit IDL and restart it
to get it reset. This shouldn't be (it seems to me).

Thanks, Keith
--
************************************************************ ***********
** Keith Horton ** ** keith@guinness.pgd.hawaii.edu **
** University of Hawaii ** ** Voice: (808) 956-3151 **
** HIGP, Honolulu, Hawaii ** ** FAX: (808) 956-6322 **
Re: Un-setting /ENCAPSULATED PostScript [message #3518 is a reply to message #3464] Mon, 06 February 1995 07:10 Go to previous message
Frank J. �ynes is currently offline  Frank J. �ynes
Messages: 17
Registered: February 1995
Junior Member
keith@guinness.tmc.edu (Keith Horton) wrote:
>
>
> A quick question -
>
> With IDL 3.6.1a running under Solaris 2.2,, I have no problem writing
> PostScript output. Occasionally, though, I want encapsulated PostScript
> output, which also works fine.
>
> The problem I have is that once I have written something out as encapsulated PostScript, how do I get the device to return to standard
> PostScript? I usually will return the device to 'X', but then later, if
> I want to print out a PostScript plot (non-encapsulated) and set_plot,'PS',
> the device is still set to encapsulated.
>
> If I've missed something in the manual or if anyone has suggestions,
> I'd appreciate hearing. Right now, I either save all my encapsulated
> stuff until the end of a session or I have to exit IDL and restart it
> to get it reset. This shouldn't be (it seems to me).
>
> Thanks, Keith
> --
> ************************************************************ ***********
> ** Keith Horton ** ** keith@guinness.pgd.hawaii.edu **
> ** University of Hawaii ** ** Voice: (808) 956-3151 **
> ** HIGP, Honolulu, Hawaii ** ** FAX: (808) 956-6322 **
device,encapsulated=0
Re: Un-setting /ENCAPSULATED PostScript [message #3529 is a reply to message #3464] Fri, 03 February 1995 06:49 Go to previous message
baardk is currently offline  baardk
Messages: 1
Registered: February 1995
Junior Member
Try the following for encapsulated postscript

set_plot,"ps"
device, filename="file.eps", encapsulated = 1
...plotting commands...
device, /close

and

set_plot, "ps"
device, filename="file.ps", encapsulated = 0
...plotting commands...
device, /close

for un-encapsulated postscript. This works fine and allows you
to combine the two options in the same session (in arbitrary
order).


Baard Krane
Re: Un-setting /ENCAPSULATED PostScript [message #3547 is a reply to message #3464] Thu, 02 February 1995 02:17 Go to previous message
Fergus Gallagher is currently offline  Fergus Gallagher
Messages: 41
Registered: January 1995
Member
keith@guinness.tmc.edu (Keith Horton) wrote:
> The problem I have is that once I have written something out as encapsulated PostScript, how do I get the device to return to standard
> PostScript? I usually will return the device to 'X', but then later, if
> I want to print out a PostScript plot (non-encapsulated) and set_plot,'PS',
> the device is still set to encapsulated.
>

I guess following will do

[set_plot,'ps']
device,encapsulated=0

Fergus
British National Space Centre
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: IDL routine for compress raster-8 image? (lossless)
Next Topic: HELP! Trying to plot 3-D data

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

Current Time: Wed Oct 08 19:15:27 PDT 2025

Total time taken to generate the page: 0.00604 seconds