Norbert Nemec [EMAIL PROTECTED] writes:
Thanks for the hint. I just fixed the problem in SVN.
I thought I had fixed this in March... see
http://thread.gmane.org/gmane.comp.python.matplotlib.devel/2574
But that was the get_handles() in legend.py, while this one is in
axes.py. Probably the code
Just checked in an even cleaner solution:
in _auto_legend_data, the internal routine get_handles() was overly complex:
first, it would merge lines, patches and linecollections into one list,
only to then
handle each kind separately. I simplified the code to avoid that issue,
so get_handle only
Hi,
I just downloaded and installed the latest matplotlib (0.90.1) and
the following problem occurred:
plot([0,1])
scatter([0.5], [0.5])
# Should be one Line2D
print gca().lines
# Should be one RegularPolyCollection
print gca().collections
# Now load a legend:
legend()
# Should be one
Thanks for the hint. I just fixed the problem in SVN.
No idea how this problem would have popped up recently. I did some
changes in legend just before 0.90.1, but I do not see how these would
have caused the problem to show up. From what I see, the flaw should
have been there all along. Well,