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

Home » Public Forums » archive » How do you turn PS output into EPS?
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
How do you turn PS output into EPS? [message #591] Wed, 16 September 1992 11:35 Go to next message
black is currently offline  black
Messages: 39
Registered: August 1992
Member
If you've got a postscript file produced by WAVE (I'm using WAVE version 3.10)
- but I think it's the same problem as IDL'ers face since there's a dead
givaway copyright RSI in the PS files that WAVE produces - then what do you
have to take out to turn the PS file into an EPS file? Does the bounding box
assume there's lots of whitespace under the item, ie does the routine that
produces the PS file assume that it's going to be printed on a laser printer?
If it does is there any sure fire way to alter the bounding box?


Is this a FAQ, if so sorry in advance.

John Black.
Janet : jvb@uk.mod.hermes
Internet : jvb%hermes.mod.uk@relay.mod.uk

PS Does WAVE V4.0 support encapsulated PostScript output? If it doesn't and
it's not easy to turn a .ps file into a .eps file then a future version of
WAVE (or IDL for that matter - if the same problem applies) should support
EPS production.
Re: How do you turn PS output into EPS? [message #592 is a reply to message #591] Wed, 16 September 1992 15:47 Go to previous message
thompson is currently offline  thompson
Messages: 584
Registered: August 1991
Senior Member
In article <Buooyw.FG@breeze.rsre.mod.uk>, jvb@uk.mod.hermes writes...
>
> If you've got a postscript file produced by WAVE (I'm using WAVE version 3.10)
> - but I think it's the same problem as IDL'ers face since there's a dead
> givaway copyright RSI in the PS files that WAVE produces - then what do you
> have to take out to turn the PS file into an EPS file? Does the bounding box
> assume there's lots of whitespace under the item, ie does the routine that
> produces the PS file assume that it's going to be printed on a laser printer?
> If it does is there any sure fire way to alter the bounding box?
>
>
> Is this a FAQ, if so sorry in advance.
>
> John Black.
> Janet : jvb@uk.mod.hermes
> Internet : jvb%hermes.mod.uk@relay.mod.uk
>
> PS Does WAVE V4.0 support encapsulated PostScript output? If it doesn't and
> it's not easy to turn a .ps file into a .eps file then a future version of
> WAVE (or IDL for that matter - if the same problem applies) should support
> EPS production.
>

In IDL, the command to produce an encapsulated postscript file is

DEVICE,/ENCAPSULATED

I presume this command also works in PV-WAVE, since it's been around a long
time. You enter this command after opening the PostScript file, but before
writing any data to it, i.e.

SET_PLOT,'PS'
DEVICE,/ENCAPSULATED
(plotting commands)
DEVICE,/CLOSE
SET_PLOT,'X' (or 'TEK' or 'REGIS' or whatever)

You cannot *change* a PostScript file that already written from regular
(non-encapsulated) to encapsulated formats, or visa-versa. I suppose that it's
theoretically possible, but I don't know how to do it.

The bounding box of an IDL-generated Encapsulated PostScript file puts the
normal amount of whitespace around the plot, i.e. enough to accomodate the
title and axis labels, but not much more.

It sounds like you normally print your PostScript files in portrait mode, which
is the default. IDL does put a lot of space above and below the plot in that
mode (when not writing in encapsulated format). However, you can use the
command

DEVICE,/LANDSCAPE

and the plot will come out turned 90 degrees, and taking up most of the paper.
I believe this command is incompatible with the /ENCAPSULATED switch, however.

Bill Thompson
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: SAVE/RESTORE of sysvars (was IDL and X and PS)
Next Topic: bug in channel keyword?

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

Current Time: Wed Oct 08 17:18:45 PDT 2025

Total time taken to generate the page: 0.00750 seconds