Skip to content

EPS and boundingbox

2 messages · Ott Toomet, Brian Ripley

#
Hi everybody!

I am not a postscript specialist but according to my (previous) knowledge,
the boundingbox comment in an eps-file should show the corners of the
drawing, not the paper.  I.e. if I have a tiny graph on a huge paper, the
boundingbox should give a small box.

In R, as I have understood, the boundingbox gives the size of the paper (or
graph window, if paper=special).  In most cases it is OK, but e.g. when I am
using square-plots (pty="s") or trying to fit a big plot on a page (with
Latex), I notice an unnecessarily wide area there around the plot.

Are there any smart ways to calculate the boundingbox which really encloses
the rawing only and let latex find all the necessary spacing?  Or are there
any system utilities (on linux)?

All help will be appreciated.

With regards,

Ott Toomet


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
#
On Mon, 11 Feb 2002, Ott Toomet wrote:

            
Yes, and in R it shows the figure region, not the paper region.
It delimits the figure region, which includes those margins.  The idea is
that you do choose width and height appropriately, and use paper="special".
Quite often you do want to line up plots, and that means yoiou do want to
line up figure regions, not tight bounding boxes.
gs -sDEVICE=bbox,  on fairly recent GhostScript.