By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,545 Members | 1,391 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,545 IT Pros & Developers. It's quick & easy.

Matplotlib eps export

P: n/a
Hi,

When I use matplotlib for a scatter plot with both dots and connecting lines,
the exported eps file is huge, if the distances between many points are small.
I think of this as a bug, since no preview tiff is included in the generated eps
and a variety of text processing applications (including OpenOffice) crash
when I try to import the eps. Ghostscript takes forever, too. Is there anything
that I can do in order to export reasonable eps files?

I am using:
python 2.4.2
matplotlib 0.87.2
numpy 0.9.8

with Linux

The following small example illustrates the problem:
--
import pylab,numpy,random
random.seed()
x=[random.gauss(0,1)/float(i)**2 for i in xrange(1,1000000)]
X=numpy.array(x,numpy.Float32)
pylab.plot(X[1:],X[:-1],"-", c="#eeeeee")
pylab.plot(X[1:],X[:-1],"xk")
pylab.show()
--

The resulting eps file:
-rw-r----- 1 xx users 212190257 Jul 4 09:39 image.eps

Thanks a lot in advance

Martin
Jul 4 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Martin Manns wrote:
Hi,

When I use matplotlib for a scatter plot with both dots and connecting
lines, the exported eps file is huge, if the distances between many points
are small. I think of this as a bug, since no preview tiff is included in
the generated eps and a variety of text processing applications (including
OpenOffice) crash when I try to import the eps. Ghostscript takes forever,
too. Is there anything that I can do in order to export reasonable eps
files?
I don't know the answer to your question, but I know the probability of
getting an answer will be a LOT higher if you post on the matplotlib list.
c.l.py is only casually monitored by the mpl devs.

Cheers,

f

Jul 4 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.