Re: eps bounding boxes - more info [message #22225] |
Tue, 31 October 2000 08:44 |
R.G.S.
Messages: 46 Registered: September 2000
|
Member |
|
|
Here is my landscape device statement, if it helps at all.
device,filename=outputfilename,xsize=8,xoffset=1.5,yoffset=1 1-2,ysize=5.5,/i
nches,/landscape
Cheers,
bob
Stuart Colley <src@star.ucl.ac.uk> wrote in message
news:Pine.OSF.3.96.1001031113337.31423A-100000@zuaxp7.star.u cl.ac.uk...
>
>> So how come ghostview doesn't display all of the .eps file?
>
> The eps file is produced in Landscape mode, by making the page offset
> bigger I have managed to get ghostview to display all of the eps file
> correctly, which leads me to suspect my XOffset and YOffset calculations
> are not 100% correct when doing Landscape plots ... so I'm surprised the
> PS plot (for the old page offset) turned out o.k.
>
> cheers
>
|
|
|
Re: eps bounding boxes - more info [message #22227 is a reply to message #22225] |
Tue, 31 October 2000 03:47  |
Stuart Colley
Messages: 17 Registered: February 2000
|
Junior Member |
|
|
> So how come ghostview doesn't display all of the .eps file?
The eps file is produced in Landscape mode, by making the page offset
bigger I have managed to get ghostview to display all of the eps file
correctly, which leads me to suspect my XOffset and YOffset calculations
are not 100% correct when doing Landscape plots ... so I'm surprised the
PS plot (for the old page offset) turned out o.k.
cheers
|
|
|
Re: eps bounding boxes - more info [message #22233 is a reply to message #22227] |
Mon, 30 October 2000 09:57  |
R.G.S.
Messages: 46 Registered: September 2000
|
Member |
|
|
Hi Stuart,
here are some guesses which may help with your ps problem.
What is your device line? Mine is for instance:
set_plot,'ps'
device,filename=outputfilename,xsize=5,xoffset=1.5,yoffset=2 ,ysize=7.45,/inc
hes
The bounding box "seems" to be set on that statement
(ie I can change the bounding box by changing the xsize and ysize comments
there, but modifying !P.region has no effect on the bounding box.)
As to why your second plot does not show up, are you plotting in landscape
mode?
It is possible to plot off the page if you do this, and not set up the sizes
and offsets
correctly.
Are you sure there is only one page of postscript output?
Depending on how you create the second plot, IDL may put
a "newpage" command in, in which case you may have to
apply "noerase" commands (probably in your first plot command,
to suppress a newpage after it completes).
If this is the case, I can give an example of how that works.
I'm using Gsview32.exe version 2.8 on WinNT.
In Ghostview Under Options click on "show bounding box" to see a
dotted line indicating the bounding box.
Cheers,
bob
stockwell at co-ra.com
PS If these guesses don't help, drop me a line with
your IDL code that produces the offending ps, and
maybe I could straighten it out.
Stuart Colley <src@star.ucl.ac.uk> wrote in message
news:Pine.OSF.3.96.1001030131348.12081B-100000@zuaxp11.star. ucl.ac.uk...
>
> I grepped the .eps file to get BoundingBox and PageBoundingBox, these are
> what I would have expected, i.e.
>
> bounding box= 0, 0, (XSize/2.54)*72, (YSize/2.54)*72
>
> where XSize, YSize are in centimeters and 2.54 converts to inches, and
> there are 72 points per inch.
>
> So how come ghostview doesn't display all of the .eps file?
>
> cheers,
> S
Stuart Colley <src@star.ucl.ac.uk> wrote in message
news:Pine.OSF.3.96.1001030111614.4894A-100000@zuaxp11.star.u cl.ac.uk...
>
> I'm not sure how IDL calculates the bounding box size in an EPS file, the
> documentation says something like:
>
> "This size is determined when the output file is opened (when the first
> graphics command is given), by multiplying the size of the plotting region
> (as specified with the XSIZE and YSIZE keywords) by the current scale
> factor (as specified by the SCALE_FACTOR keyword)."
>
> So, is the *first* graphics command e.g. a Plot, used to determine the
> bounding box? The problem is I do one large Plot and a second smaller one
> next to it. When viewing the EPS file in ghostview, this second plot is
> chopped off, all you see are the tick labels.
>
> XSize and YSize are set to use the whole A4 page (with a small offset),
> and a non-encapsulated PS file looks o.k. in ghostview, and it prints o.k.
> too.
>
> Is there anyway of checking the actuall size of the bounding box? I'm
> having a great time trying to get this figure into LaTeX...
>
> cheers,
> Stu
>
|
|
|