lmkli wrote:
>> What version of mpl are you using?  
> My mpl version is 0.99.1
> 
>> Are you modifying the default anti-aliasing in the patch collections that
>> contour is creating?
> Could you please tell me how to this? I am very new to matplotlib, thank you
> very much if you can give me some advices.

see below.

> 
>> Are you seeing the problem when using the ps and pdf backends, or only with
> agg (that is, creating png files directly)?
> So far I only creating png files directly. Also, how to use ps and pdf
> backend?

The easiest way is with the pyplot savefig command: e.g.

savefig("test.pdf")

to save the current figure as a pdf.

It doesn't look to me like this solves the problem, though.

> 
>> ....which has been fixed in svn.
> Do you mean I should download another mpl by svn?

That might help, but it probably won't cure the problem completely.  I 
don't know that there is any combination of parameters that gives 
boundaries as smooth and gap-free as in your second example.  You may 
get a bit closer to it like this:

CS = contourf(Z)
for c in CS.collections:
     c.set_antialiased(False)

(If working interactively in ipython, follow this with a "draw()" 
command to force a redraw.)

Eric

> 
> Thank you for your answers very much!
> 
> 
> efiring wrote:
>> 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
>>
>>
>> ------------------------------------------------------------------------------
>> 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