[Matplotlib-users] grouping in a legend

Thomas Caswell tcaswell at gmail.com
Tue May 17 15:05:24 EDT 2016


The legends code is absurdly flexible, see
http://matplotlib.org/users/legend_guide.html#legend-handlers and
http://stackoverflow.com/questions/18007022/two-unique-marker-symbols-for-one-legend/18007565

Tom

On Tue, May 17, 2016 at 2:55 PM Slavin, Jonathan <jslavin at cfa.harvard.edu>
wrote:

> Hi,
>
> I'm wondering if there's any way to group several items (i.e. handles) in
> a legend with a single label.  Ideally I'd like to use something like a
> curly brace in the way one can in LaTeX using \right{.  The use case is
> where you have several curves that share some characteristic and others
> that are different.
> This could be pushing legend beyond its limits.  And of course I could
> just repeat the same label several times, but I thought I'd ask if anyone
> had come up with some clever way of doing this.
>
> Regards,
> Jon
>
> --
> ________________________________________________________
> Jonathan D. Slavin                 Harvard-Smithsonian CfA
> jslavin at cfa.harvard.edu       60 Garden Street, MS 83
> phone: (617) 496-7981       Cambridge, MA 02138-1516
> cell: (781) 363-0035             USA
> ________________________________________________________
>
> _______________________________________________
> Matplotlib-users mailing list
> Matplotlib-users at python.org
> https://mail.python.org/mailman/listinfo/matplotlib-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/matplotlib-users/attachments/20160517/196c8efd/attachment.html>


More information about the Matplotlib-users mailing list