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

Home » Public Forums » archive » get_boundingbox
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
get_boundingbox [message #17431] Wed, 27 October 1999 00:00 Go to next message
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
Hi!
Did someone know how to get the boundingbox of a plot?

R.Bauer
Re: get_boundingbox [message #17561 is a reply to message #17431] Thu, 28 October 1999 00:00 Go to previous message
thompson is currently offline  thompson
Messages: 584
Registered: August 1991
Senior Member
"R.Bauer" <R.Bauer@fz-juelich.de> writes:



> David Fanning wrote:

>> R.Bauer (R.Bauer@fz-juelich.de) writes:
>>
>>> Did someone know how to get the boundingbox of a plot?
>>
>> Not exactly sure what you mean by "bounding box",
>> but the answer is either ![XY].Window or ![XY].Region,
>> depending upon if you want the plot annotation or not.
>>
>> Cheers,
>>
>> David
>> --

> Dear David,

> ![XY].Region gives the region of the last plot.

> If you have more as one plot on a page this is not the result I like to
> have.

> Each eps Postscript file has a bounding box which includes all graphes
> and annotation of a page.
> This I like to have too.

> R.Bauer


I don't know how to retrieve the bounding box, by I do know how to set the
bounding box to a specific set of values. The bounding box is defined in
points, where there are 72 points to the inch. The DEVICE keywords XOFFSET,
YOFFSET, XSIZE, and YSIZE control the values of the bounding box. For example,
if one uses the command

IDL> DEVICE, /PORTRAIT, /INCHES, $
XOFFSET=0.75, YOFFSET=0.75, XSIZE=7.0, YSIZE=9.5

the bounding box in the resulting PostScript file will then be

%%BoundingBox: 54 54 558 738

which can be derived as

IDL> PRINT, [0.75, 0.75, 7.0+0.75, 9.5+0.75] * 72

It would be nice if IDL also had GET_XOFFSET, etc. keywords to the DEVICE
command.

William Thomson
Re: get_boundingbox [message #17565 is a reply to message #17431] Thu, 28 October 1999 00:00 Go to previous message
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
David Fanning wrote:

> R.Bauer (R.Bauer@fz-juelich.de) writes:
>
>> Did someone know how to get the boundingbox of a plot?
>
> Not exactly sure what you mean by "bounding box",
> but the answer is either ![XY].Window or ![XY].Region,
> depending upon if you want the plot annotation or not.
>
> Cheers,
>
> David
> --

Dear David,

![XY].Region gives the region of the last plot.

If you have more as one plot on a page this is not the result I like to
have.

Each eps Postscript file has a bounding box which includes all graphes
and annotation of a page.
This I like to have too.

R.Bauer
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: 3d-polar
Next Topic: y_width of xyouts

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

Current Time: Fri Oct 10 06:03:00 PDT 2025

Total time taken to generate the page: 0.48101 seconds