imshow: large eps-files

Hi,

I was wondering about the eps output produced by imshow().

This program

···

----------------------------------------------
from pylab import *
Z = rand(10,10)
imshow(Z,interpolation='nearest',cmap=cm.bone)
savefig('bone.eps')
imshow(Z,interpolation='nearest',cmap=cm.gray)
savefig('gray.eps')
----------------------------------------------
produces files with sizes of
11M and 172K for bone.eps and gray.eps
respectively.

Does anybody know why the difference is that large?
I would expect a factor of 3 for RGB or 4 if an alpha channel is
included, but not a factor of about 60.

Best regards,
Peter

Peter Pippan wrote:

Hi,

I was wondering about the eps output produced by imshow().

This program
----------------------------------------------
from pylab import *
Z = rand(10,10)
imshow(Z,interpolation='nearest',cmap=cm.bone)
savefig('bone.eps')
imshow(Z,interpolation='nearest',cmap=cm.gray)
savefig('gray.eps')
----------------------------------------------
produces files with sizes of
11M and 172K for bone.eps and gray.eps
respectively.

With svn, I get nearly the same size for both, and intermediate between your two:

-rw------- 1 efiring efiring 1413040 2009-05-01 07:19 bone.eps
-rw------- 1 efiring efiring 1407313 2009-05-01 07:19 gray.eps

Does anybody know why the difference is that large?
I would expect a factor of 3 for RGB or 4 if an alpha channel is
included, but not a factor of about 60.

Yes, it's bizarre. I have no idea what was going on. Fortunately, it no longer is.

Eric

···

Best regards,
Peter

------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options