grayscale text in eps images

I am displaying some images and overlaying a scalebar. The

    > image on the screen displays the requested white text and
    > bar, but they are black in the eps image.

Hi Darren,

I'm having trouble replicating the problem. Make sure you have an
up-to-date matplotlib. For example, in CVS, I get the expected
behavior in agg and ps with

  from pylab import *
  subplot(111, axisbg='red')
  text(0.5, 3.5,'this is black', color=0)
  text(0.5, 2.5,'this is black', color='k')
  text(0.5, 1.5,'this is white', color=1)
  text(0.5, 0.5,'this is white', color='w')
  axis([0,2,0,4])
  savefig('test.ps')
  show()

If you are still having troubles, please submit a complete test
script, and the output of --verbose-helpful when you run it.

Is it possible you have a pre 0.72 CVS? There were a couple of bugs I
introduced into PS CVS before the last release, but I think I cleaned
them up.

Hope this helps,
JDH

Wow, I was going crazy trying to reproduce this. Your script works fine. Try
this one:

from pylab import *

a=rand(100,100)
ax=axes()
ax.imshow(a)
ax.xaxis.set_visible(False)
ax.yaxis.set_visible(False)
ax.text(10,10,'white',color='w')
ax.text(10,20,'black',color='k')
savefig('temp.ps')

Both the x *and* y axes have to be set_visible(False) to reproduce the
behavior.

Darren

···

On Sunday 20 February 2005 07:47 pm, John Hunter wrote:

    > I am displaying some images and overlaying a scalebar. The
    > image on the screen displays the requested white text and
    > bar, but they are black in the eps image.

Hi Darren,

I'm having trouble replicating the problem. Make sure you have an
up-to-date matplotlib. For example, in CVS, I get the expected
behavior in agg and ps with

  from pylab import *
  subplot(111, axisbg='red')
  text(0.5, 3.5,'this is black', color=0)
  text(0.5, 2.5,'this is black', color='k')
  text(0.5, 1.5,'this is white', color=1)
  text(0.5, 0.5,'this is white', color='w')
  axis([0,2,0,4])
  savefig('test.ps')
  show()

If you are still having troubles, please submit a complete test
script, and the output of --verbose-helpful when you run it.

Is it possible you have a pre 0.72 CVS? There were a couple of bugs I
introduced into PS CVS before the last release, but I think I cleaned
them up.

Hope this helps,
JDH

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options

--

Darren