Geoffrey Ely wrote:
> On Nov 12, 2009, at 10:03 AM, Eric Firing wrote:
>> Geoffrey Ely wrote:
>>> Ryan,
>>> I have noticed the same issue with contourf. It seems to be a thin  
>>> gap  between neighboring polygons showing through.  You can turn on  
>>> a thin  contour line of the same color to cover the gap:
>>> for c in pylab.contourf( x, y, z ).collections:
>>>     c.set_linewidth( 0.1 )
>>> Not ideal, but it works.
>> This is a good workaround so long as you leave alpha=1 and don't  
>> mind the very slight position shifts caused by stroking the line.
> 
> Yes, the position shift I don't like. Would be better if there was a  
> way to set the zorder of the line lower than the polygon. Maybe a  
> better workaround is to just do a line contour() before the contourf()?

Unfortunately, that won't work in general, because the code path for 
contour differs from that for contourf such that the patch boundaries 
don't always coincide with the corresponding contour lines.  Generating 
filled contours is more complicated than generating line contours.

Eric

> 
> contour( x, y, z )
> contourf( x, y, z )
> 
> -Geoff
> 
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
> trial. Simplify your report design, integration and deployment - and focus on 
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to