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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
EPS and boundingbox
2 messages · Ott Toomet, Brian Ripley
On Mon, 11 Feb 2002, Ott Toomet wrote:
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.
Yes, and in R it shows the figure region, not the paper region.
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.
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.
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)?
gs -sDEVICE=bbox, on fairly recent GhostScript.
Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272860 (secr) Oxford OX1 3TG, UK Fax: +44 1865 272595 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._