lmkli wrote:
> Thank you!
> 
> I just thought there must be a solution.
> I saw someone posted he can modified contour.py to fix this, but I failed.
> :(
> 

What version of mpl are you using?  Are you modifying the default 
anti-aliasing in the patch collections that contour is creating? Are you 
seeing the problem when using the ps and pdf backends, or only with agg 
(that is, creating png files directly)?

There are two problems that can contribute to this, one related to the 
way the agg backend handles the boundaries between filled regions, and 
the other a bug in path simplification, which has been fixed in svn.

Eric


> 
> Marius 't Hart-3 wrote:
>> Actually, it does not draw the polygon edges, but leaves small gaps 
>> between them. Through those gaps you can see the background. (This also 
>> happens with polar plots and other polygons by the way.) I consider this 
>> a bug, though there are ways around it. For contour plots one can plot 
>> two contourplots over each other, one with different levels (or a 
>> different number of levels) than the other. Messy, but it works.
>>
>> Marius.
>>
>> lmkli wrote:
>>> When I use contourf to plot a filled contour map, I get some white-like
>>> lines
>>> between each two color patches, or you can call them gaps.
>>> This is not like the contourf doc string says:  "it does not draw the
>>> polygon edges.", actually, it does.
>>> http://old.nabble.com/file/p27982822/contourf1.png contourf1.png 
>>> The figure above is what I get by contourf, but this is not exactlly what
>>> I
>>> want.
>>>
>>> The filled contour map I want should be like this one:
>>> http://old.nabble.com/file/p27982822/contourf2.png contourf2.png 
>>>
>>> Any advice?
>>>
>>> Thank you!
>>>   
>>
>> ------------------------------------------------------------------------------
>> Download Intel® Parallel Studio Eval
>> Try the new software tools for yourself. Speed compiling, find bugs
>> proactively, and fine-tune applications for parallel performance.
>> See why Intel Parallel Studio got high marks during beta.
>> http://p.sf.net/sfu/intel-sw-dev
>> _______________________________________________
>> Matplotlib-users mailing list
>> Matplotlib-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>
>>
> 


------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to