Bounding boxes in EPS file

From: Andy Aschwanden <andy_at_nyahnyahspammersnyahnyah>
Date: Wed, 21 Feb 2007 09:27:53 +0100


I've recently converted some of my NCL files to PyNGL and encountered the

Using NCL to produce an EPS file, bounding boxes are set tightly around the
plot and there is no unnecessary white space around the plot. If I open the
file with "gv", paper format is set to BBox automatically (stor_vel_ncl.eps)
and everything is fine.

Doing the same with PyNGL, it seems to me that bounding boxes are not set
tightly around the plot or are not set at all. Opening that EPS with "gv",
paper format is set to A4 and it's not possible to change it to BBox

You can download the example plots and scripts here:

I'm using PyNGL 1.1.0.

However, I can use the unix command eps2eps on the PyNGL eps file and then,
bounding boxes are set and the plot looks the same as from NCL.

Unfortunately, I can neither open the NCL nor the PyNGL eps file in
Illustrator CS2 (Mac):

"the operation cannot complete because of an unknown error"

I wonder if this has something to do with the fact that I have triangulated
data and thus use the resources

res.sfXArray = lon
res.sfYArray = lat
res.sfElementNodes = ele
res.sfFirstNodeIndex = 1

Any ideas?

Many thanks in advance,


ETH Zurich
Andy Aschwanden
Institute for Atmospheric and Climate Science
CHN O 15.2
Universitaetstrasse 16
8092 Zurich
+41 44 632 73 87 phone
+41 44 633 10 58 fax
pyngl-talk mailing list
Received on Wed Feb 21 2007 - 01:27:53 MST

This archive was generated by hypermail 2.2.0 : Sun Apr 01 2007 - 11:53:11 MDT