Re: [Matplotlib-users] common text label on legend?

2015-06-10 Thread Sterling Smith
Neal,

If you also want to get rid of the lines, you could just color the texts of the 
legend labels using a VPacker in something like
http://stackoverflow.com/questions/17086847/box-around-text-in-matplotlib/17092777#17092777

-Sterling

On Jun 10, 2015, at 10:25PM, Sterling Smith  wrote:

> Neal,
> 
> legend[1] has the title keyword
> legend(loc=‘best’,title=‘foo’)
> 
> -Sterling
> 
> [1] http://matplotlib.org/api/pyplot_api.html#matplotlib.pyplot.legend
> On Jun 10, 2015, at 11:36AM, Neal Becker  wrote:
> 
>> Is there some way I can add a short text to the legend box?  Rather than 
>> having
>> label='foo=0'
>> label='foo=1'
>> ...
>> 
>> I'd like to just put 'foo' say at the top of the legend box.  Any thoughts?
>> 
>> 
>> --
>> ___
>> Matplotlib-users mailing list
>> Matplotlib-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
> 
> 
> --
> ___
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users


--
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] common text label on legend?

2015-06-10 Thread Sterling Smith
Neal,

legend[1] has the title keyword
legend(loc=‘best’,title=‘foo’)

-Sterling

[1] http://matplotlib.org/api/pyplot_api.html#matplotlib.pyplot.legend
On Jun 10, 2015, at 11:36AM, Neal Becker  wrote:

> Is there some way I can add a short text to the legend box?  Rather than 
> having
> label='foo=0'
> label='foo=1'
> ...
> 
> I'd like to just put 'foo' say at the top of the legend box.  Any thoughts?
> 
> 
> --
> ___
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users


--
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] common text label on legend?

2015-06-10 Thread Neal Becker
Is there some way I can add a short text to the legend box?  Rather than 
having
label='foo=0'
label='foo=1'
...

I'd like to just put 'foo' say at the top of the legend box.  Any thoughts?


--
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users