bug in eps

Hello,

today I found a strange bug when I'm trying to save in eps format. The color green is not saved in color but in black in an eps file (it's working correctly in png) but the other color (at least blue and red in my test) are working so the problem is not that the postscript backend is working only in black and white but other things.

regards,

N.

test.py

import pylab
pylab.plot([2,3],[5,6],'go')
pylab.plot([5,2],[1,3],'ro')
pylab.xlim(0,10)
pylab.ylim(0,10)
pylab.savefig('test.eps')
pylab.savefig('test.png')
pylab.show()

python test.py --verbose-helpful

matplotlib data path /usr/local/lib/python2.4/site-packages/matplotlib/mpl-data
$HOME=/home/humufr
CONFIGDIR=/home/humufr/.matplotlib
loaded rc file /home/humufr/.matplotlib/matplotlibrc
matplotlib version 0.88svn
verbose.level helpful
interactive is False
platform is linux2
numerix numarray 1.5.1
font search path ['/usr/local/lib/python2.4/site-packages/matplotlib/mpl-data', '.', '/home/humufr/.fonts']
loaded ttfcache file /home/humufr/.matplotlib/ttffont.cache
backend GTKAgg version 2.8.0

Works fine here.
mpl version 0.86.1

Cheers,
Alan Isaac

···

On Fri, 24 Mar 2006, Humufr apparently wrote:

The color green is not saved in color but in black in an
eps file

import pylab
pylab.plot([2,3],[5,6],'go')
pylab.plot([5,2],[1,3],'ro')
pylab.xlim(0,10)
pylab.ylim(0,10)
pylab.savefig('test.eps')
pylab.savefig('test.png')
pylab.show()

This was a bug in the new draw_markers, and is fixed in svn:

- if rgbFace[0]==rgbFace[0] and rgbFace[0]==rgbFace[2]:
+ if rgbFace[0]==rgbFace[1] and rgbFace[0]==rgbFace[2]:

···

On Friday 24 March 2006 10:20, Humufr wrote:

             Hello,

today I found a strange bug when I'm trying to save in eps format. The
color green is not saved in color but in black in an eps file (it's
working correctly in png) but the other color (at least blue and red in
my test) are working so the problem is not that the postscript backend
is working only in black and white but other things.

regards,

N.

test.py

import pylab
pylab.plot([2,3],[5,6],'go')
pylab.plot([5,2],[1,3],'ro')
pylab.xlim(0,10)
pylab.ylim(0,10)
pylab.savefig('test.eps')
pylab.savefig('test.png')
pylab.show()