On Thu, 2008-02-07 at 10:21 -0600, Ryan May wrote:
> Changing the legend call to this fixed it:
> P.legend((b1[0],b2[0]),('lower','upper'))

That fixed it for me too. Thanks. The thread just started by Reckoner
about the same problem also has the answer: "In a nutshell, bar returns
a list of rectangle objects, and you need to pass a proxy element of
this list (eg the first element) to the legend command."



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to