Bad eps output

Hi,

This

import pylab as pl
pl.plot([3,6,3,7,3])
pl.xlabel("Xlabel")
pl.savefig("test.eps")

gives me an unpleasant outfile with the backends GTK, GTKAgg, WXAgg, WX, Agg, GDK and PS. It works fine only with Cairo and GTKCairo. I'm on trunk and Ubuntu 8.04. All backends do fine for png.

It's actually pl.xlabel that kills the eps, if it's replaced by pl.title() everything works again.

Not sure when this problem appeared, but probably not so long ago.

Cheers,
Olle

Thanks for the report. I am able to reproduce it and am investigating further.

As a workaround, you can set the rcParam 'ps.fonttype' to 42 (at the expense of some file size).

Mike

Olle Engdeg�rd wrote:

···

Hi,

This

import pylab as pl
pl.plot([3,6,3,7,3])
pl.xlabel("Xlabel")
pl.savefig("test.eps")

gives me an unpleasant outfile with the backends GTK, GTKAgg, WXAgg, WX, Agg, GDK and PS. It works fine only with Cairo and GTKCairo. I'm on trunk and Ubuntu 8.04. All backends do fine for png.

It's actually pl.xlabel that kills the eps, if it's replaced by pl.title() everything works again.

Not sure when this problem appeared, but probably not so long ago.

Cheers,
Olle

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
  
--
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA