image pixel border bug

In the examples/pylab_examples/custom_cmap.py example, I am seeing a
pixel red border, eg colored red on the top border of the middle
subplot, where it looks like it should be blue. Image attached. Is
this an artifact of the breakpoint of the colormap, or a true
rendering bug?

JDH

custom_cmap.png

I don't think it's a rendering bug. The entire first row of data is 0.0 and -0.0, which maps to red. The real solution would be to map 0 and -0.0 to different colors, but that's insane :wink:

The rendering bug that bothers me, however, is the misalignment of the ticks to the colors in the color bar. I'm sure it's somehow related to the pixel-rounding in the Agg backend. I'll see if I can find an obvious fix for this. If it looks questionable, I'll wait until after the release.

Cheers,
Mike

John Hunter wrote:

···

In the examples/pylab_examples/custom_cmap.py example, I am seeing a
pixel red border, eg colored red on the top border of the middle
subplot, where it looks like it should be blue. Image attached. Is
this an artifact of the breakpoint of the colormap, or a true
rendering bug?

JDH
  
------------------------------------------------------------------------

------------------------------------------------------------------------

------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you. Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
------------------------------------------------------------------------

_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
matplotlib-devel List Signup and Options
  
--
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA

Since this would be a bug-fix, I prefer to get it in before the
release, if possible:-) So if you have time to look at it, that would
be great. Charlie doesn't usually have time during the day to do the
builds, so it would be tonight at the earliest, which should give us a
little time to test any changes.

Thanks,
JDH

···

On Mon, Dec 8, 2008 at 8:16 AM, Michael Droettboom <mdroe@...31...> wrote:

I don't think it's a rendering bug. The entire first row of data is 0.0 and
-0.0, which maps to red. The real solution would be to map 0 and -0.0 to
different colors, but that's insane :wink:

The rendering bug that bothers me, however, is the misalignment of the ticks
to the colors in the color bar. I'm sure it's somehow related to the
pixel-rounding in the Agg backend. I'll see if I can find an obvious fix
for this. If it looks questionable, I'll wait until after the release.

This should now be fixed in SVN. Couldn't see any regressions in the documentation examples, but may be worth another set of eyes before the release.

Mike

John Hunter wrote:

···

On Mon, Dec 8, 2008 at 8:16 AM, Michael Droettboom <mdroe@...31...> wrote:
  

I don't think it's a rendering bug. The entire first row of data is 0.0 and
-0.0, which maps to red. The real solution would be to map 0 and -0.0 to
different colors, but that's insane :wink:

The rendering bug that bothers me, however, is the misalignment of the ticks
to the colors in the color bar. I'm sure it's somehow related to the
pixel-rounding in the Agg backend. I'll see if I can find an obvious fix
for this. If it looks questionable, I'll wait until after the release.
    
Since this would be a bug-fix, I prefer to get it in before the
release, if possible:-) So if you have time to look at it, that would
be great. Charlie doesn't usually have time during the day to do the
builds, so it would be tonight at the earliest, which should give us a
little time to test any changes.

Thanks,
JDH
  
--
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA