When a graph is saved as PostScript, the bounding box is often too big. A consequence is that when the graph is included in a LaTeX document, the spacing does not look good. Is this a recognized problem? Is someone working on it? Could I help? David
On Mon, 17 Apr 2006, David Allen wrote:> When a graph is saved as PostScript, the bounding box is often too big. > A consequence is that when the graph is included in a LaTeX document, > the spacing does not look good. > Is this a recognized problem? Is someone working on it? Could I help?It's not really true. The bounding box is of the figure region, and it is a design feature. If the figure `region' that is too big for your purposes you need to adjust the margins. Alternatively, there are lots of ways to set a tight bounding box: I tend to use the bbox device in gs. But that often ends up with figures which do not align, depending on whether text has descenders. -- 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 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595
G'day David,>>>>> "DA" == David Allen <allen at ms.uky.edu> writes:DA> When a graph is saved as PostScript, the bounding box is often DA> too big. A consequence is that when the graph is included in DA> a LaTeX document, the spacing does not look good. Is this a DA> recognized problem? Is someone working on it? Could I help? How exactly are you saving the graph as PostScript? I guess the problem is due to the fact that you save the PostScript picture on a paper according to your default paper size (which is "a4" for me). To create PostScript pictures with reasonalbe tight bounding boxes that are suitable to be included in a LaTeX document you should specify `paper=special' and then define your plotting area via the 'height' and 'width' argument. Hope this helps. Cheers, Berwin ========================== Full address ===========================Berwin A Turlach Tel.: +61 (8) 6488 3338 (secr) School of Mathematics and Statistics +61 (8) 6488 3383 (self) The University of Western Australia FAX : +61 (8) 6488 1028 35 Stirling Highway Crawley WA 6009 e-mail: berwin at maths.uwa.edu.au Australia http://www.maths.uwa.edu.au/~berwin