Mac OS X - Problem when saving figures in eps

Hi,

First of all, I'd like to thank matplotlib developers for providing us this wonderful library.

It's been a while now I'm using matplotlib and I'm pretty happy with it. I used to be a Linux user. Recently, I moved to Mac (a macbook pro, to be precise). I succeed to install matplotlib. Everything is working correctly except the export of figures into eps format (which is important when writing papers with LaTeX).

When I'm trying to save a figure in eps, everything seems ok. However, it is impossible to open the eps file. The eps seems to be corrupted. A closer look at the eps file shows that the generated file is 'heavy', i.e., several MB (around 6MB on average). Note that other output formats are correctly generated.

I don't really understand the source of the problem. Probably something that is misconfigured. If somebody has an idea on how to solve this problem, it would be great.

Here is further information on my configuration:
matplotlib data path /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/mpl-data
$HOME=/Users/benoit
CONFIGDIR=/Users/benoit/.matplotlib
loaded rc file /Users/benoit/.matplotlib/matplotlibrc
matplotlib version 0.88
verbose.level helpful
interactive is False
platform is darwin
numerix numpy 0.9.9.2549
font search path ['/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/mpl-data']
loaded ttfcache file /Users/benoit/.matplotlib/ttffont.cache
backend PS version Level II

Thanks in advance for any kind of help

Best regards.

Benoit

···

--
Benoit Donnet
Université Pierre & Marie Curie (Paris VI)
Laboratoire LIP6 - Réseaux & Performances
8, rue du Capitaine Scott
75015 Paris
France
Phone: 00 33 (0)1 44 27 88 83
traceroute@...210... Project: http://trhome.sourceforge.net
Home Page: http://rp.lip6.fr/~donnet

I have always had problems with the eps on a Mac. I save it as .ps and then use Distiller (or equivalent) to convert
to eps.

···

On 27 Jun, 2006, at 07:14, Benoit Donnet wrote:

Hi,

First of all, I'd like to thank matplotlib developers for providing us
this wonderful library.

It's been a while now I'm using matplotlib and I'm pretty happy with
it. I used to be a Linux user. Recently, I moved to Mac (a macbook
pro, to be precise). I succeed to install matplotlib. Everything is
working correctly except the export of figures into eps format (which is
important when writing papers with LaTeX).

When I'm trying to save a figure in eps, everything seems ok. However,
it is impossible to open the eps file. The eps seems to be corrupted. A
closer look at the eps file shows that the generated file is 'heavy',
i.e., several MB (around 6MB on average). Note that other output
formats are correctly generated.

I don't really understand the source of the problem. Probably something
that is misconfigured. If somebody has an idea on how to solve this
problem, it would be great.

Here is further information on my configuration:
matplotlib data path
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/mpl-data
$HOME=/Users/benoit
CONFIGDIR=/Users/benoit/.matplotlib
loaded rc file /Users/benoit/.matplotlib/matplotlibrc
matplotlib version 0.88
verbose.level helpful
interactive is False
platform is darwin
numerix numpy 0.9.9.2549
font search path
['/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/mpl-data']
loaded ttfcache file /Users/benoit/.matplotlib/ttffont.cache
backend PS version Level II

Thanks in advance for any kind of help

Best regards.

Benoit

--
Benoit Donnet
Université Pierre & Marie Curie (Paris VI)
Laboratoire LIP6 - Réseaux & Performances
8, rue du Capitaine Scott
75015 Paris
France
Phone: 00 33 (0)1 44 27 88 83
traceroute@...210... Project: http://trhome.sourceforge.net
Home Page: http://rp.lip6.fr/~donnet

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options

**********************************************************************
Samuel M. Smith Ph.D.
2966 Fort Hill Road
Eagle Mountain, Utah 84043
801-768-2768 voice
801-768-2769 fax
**********************************************************************
"The greatest source of failure and unhappiness in the world is
giving up what we want most for what we want at the moment"
**********************************************************************

Ignore my last post. I forgot it was .ps that I had trouble with not .eps. I haven't tested either in while so
maybe something is broken now.

···

On 27 Jun, 2006, at 07:14, Benoit Donnet wrote:

Hi,

First of all, I'd like to thank matplotlib developers for providing us
this wonderful library.

It's been a while now I'm using matplotlib and I'm pretty happy with
it. I used to be a Linux user. Recently, I moved to Mac (a macbook
pro, to be precise). I succeed to install matplotlib. Everything is
working correctly except the export of figures into eps format (which is
important when writing papers with LaTeX).

When I'm trying to save a figure in eps, everything seems ok. However,
it is impossible to open the eps file. The eps seems to be corrupted. A
closer look at the eps file shows that the generated file is 'heavy',
i.e., several MB (around 6MB on average). Note that other output
formats are correctly generated.

I don't really understand the source of the problem. Probably something
that is misconfigured. If somebody has an idea on how to solve this
problem, it would be great.

Here is further information on my configuration:
matplotlib data path
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/mpl-data
$HOME=/Users/benoit
CONFIGDIR=/Users/benoit/.matplotlib
loaded rc file /Users/benoit/.matplotlib/matplotlibrc
matplotlib version 0.88
verbose.level helpful
interactive is False
platform is darwin
numerix numpy 0.9.9.2549
font search path
['/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/mpl-data']
loaded ttfcache file /Users/benoit/.matplotlib/ttffont.cache
backend PS version Level II

Thanks in advance for any kind of help

Best regards.

Benoit

--
Benoit Donnet
Université Pierre & Marie Curie (Paris VI)
Laboratoire LIP6 - Réseaux & Performances
8, rue du Capitaine Scott
75015 Paris
France
Phone: 00 33 (0)1 44 27 88 83
traceroute@...210... Project: http://trhome.sourceforge.net
Home Page: http://rp.lip6.fr/~donnet

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options

**********************************************************************
Samuel M. Smith Ph.D.
2966 Fort Hill Road
Eagle Mountain, Utah 84043
801-768-2768 voice
801-768-2769 fax
**********************************************************************
"The greatest source of failure and unhappiness in the world is
giving up what we want most for what we want at the moment"
**********************************************************************