On Tue, Jan 18, 2011 at 12:27 AM, Jae-Joon Lee <lee.j.j...@gmail.com> wrote:
> Dear Matplotlib developers,
>
> Attached is a patch to improve the functionality of legend.
> The two biggest changes are as follows,
>
> * Drawing of legend is delegated to "legend handlers".
> * Introduces a new "Container" class. This is primarily to support
> legend of complex plots (e.g., bar, errorbar, etc).
>
> The first change is to ease the creation of customized legends. See
> "legend_demo_custom_handler.py" for example.
> The second change is to support legend of complex plots. Axes
> instances now have a "containers" attribute. And this is only intended
> to be used for generating a legend. For example, "bar" plots create a
> series of Rectangle patches. Previously, it returned a list of these
> patches. With the current change, it creates a container object of
> these rectangle patches and return it instead. As the container class
> is derived from a tuple, it should be backward-compatible.
> Furthermore, the container object is added to the Axes.containers
> attributes. And legend command use this "container" attribute to
> properly create a legend for the bar.
>
> A two example figures are attached.
>
> As this patch introduces relatively significant changes. I wanted to
> get some comments from others before I commit.
> The change will be divided into four commits.
>
> Regards,
>
> -JJ
>
>
Nice. I will look through it this week and see if I can break it.
Ben Root
------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires
February 28th, so secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel