get_boundingbox [message #17431] |
Wed, 27 October 1999 00:00  |
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  |
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  |
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
|
|
|