Legend outside the plot

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

···

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

On Mon, Mar 7, 2011 at 8:22 PM, Yuri D'Elia <wavexx@...867...> 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)