Eric Firing wrote:
> Matthias Michler wrote:
>> Hello list,
>>
>> playing with the example program (contourf_with_extended_colorbar.py) I also 
>> send in the last email and using random numbers I get the attached picture 
>> (contourf_vs_contour_different_behavior.png), which shows up that contour 
>> and 
>> contourf lines don't coinside. I thought that contour and contourf generate 
>> the same lines and differ only in plotting. Is this just due to the random 
>> numbers as an exceptional case or is this a bug? 
> 
> It is a bug that is inherent in the underlying contouring code.  The 
> code for filled contours is quite different, and more complicated, than 
> for unfilled contours.  I have been thinking about ways of solving this 
> problem, unifying the line-finding methods for filled and unfilled 
> contours, but it is not at all trivial.
> 

And I need to add: it may be that the difference between filled and 
unfilled contours that you showed in your plot is not actually a 
consequence of the difference between the filled and unfilled code 
paths, but of the sequence of calls to the underlying code.  So it is 
possible that when one wants both filled and unfilled contours, they 
could be made consistent via a refactoring of the internals of the 
ContourSet class, with corresponding changes in the Axes and pyplot 
APIs.  Again, this is not trivial, but there is some refactoring I would 
like to do anyway to make it easier for people to access the results of 
the basic contour-finding, and this would go along with it.

I don't know when I will get around to actually working on this; 
probably not before this summer.  If someone else wants to plunge in, 
that's fine.  I can provide a few thoughts on what might be done.

Eric

------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to