On Tue, 8 Mar 2011 02:35:52 +0900
Jae-Joon Lee <lee.j.j...@gmail.com> wrote:

> On Mon, Mar 7, 2011 at 8:22 PM, Yuri D'Elia <wav...@users.sf.net> wrote:
> > With matplotlib, I have to do the following:
> >
> > legend(bbox_to_anchor=(1, 1 + ?), loc=2)
> >
> > but how do I calculate the vertical location?
> 
> Maybe you want to try something like
> 
> leg = legend([l1], ["Test"], borderaxespad=0,
>              bbox_to_anchor=(1.02, 1), loc=2)

Yes it does. By removing the padding the anchoring is now perfect.
Thanks!


------------------------------------------------------------------------------
What You Don't Know About Data Connectivity CAN Hurt You
This paper provides an overview of data connectivity, details
its effect on application quality, and explores various alternative
solutions. http://p.sf.net/sfu/progress-d2d
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to