Rob Hetland wrote: > > When I do a pcolor, there are white lines between the patches that > cause strange moray patterns, even when saved to a png. The attached > sample shows what I mean. Notice the strange coffee-cup ring, where > the pattern goes away. This is new behavior. Unfortunately, I > haven't been paying enough attention to the devel list to know what > the changes that cause this might be. The quads need to be enlarged by about 1 pixel, and the easiest way to do this is to give them an edge of width 1 pixel. The pcolormesh code has had this fix for a while, but it was overlooked for pcolor. (Both of which were virtually rewritten for 0.98, which is why this is a regression from 0.91).
I have fixed this in SVN. > > This moray pattern is very distracting, and means that publication > quality prints will be very difficult to produce, probably involving > printing at some insanely high resolution, then decimating with > imagemagick. Yeah, let's try to avoid that... ;) > > I notice also that pcolormesh works with masked arrays (hurray!). > This could be a suitable substitution. However, pcolormesh does not > dither at the patch edges, so that there are jagged lines through the > image, especially at lower resolutions. I assume by dithering you mean antialiasing. For speed, pcolormesh uses non-antialiased rendering by default. You can force it to be antialiased by passing "antialiased=True". Cheers, Mike > > Can pcolor be fixed? > > -Rob > > > > ------------------------------------------------------------------------ > > > > ---- > Rob Hetland, Associate Professor > Dept. of Oceanography, Texas A&M University > http://pong.tamu.edu/~rob > phone: 979-458-0096, fax: 979-845-6331 > > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > ------------------------------------------------------------------------ > > _______________________________________________ > Matplotlib-devel mailing list > Matplotlib-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/matplotlib-devel > -- Michael Droettboom Science Software Branch Operations and Engineering Division Space Telescope Science Institute Operated by AURA for NASA ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel