[Matplotlib-users] legend not covering graphs

Neal Becker ndbecker2 at gmail.com
Tue Feb 16 12:56:22 EST 2021


Is this the same as loc='best'?
I actually need to make extra space for the legend.  I guess this can
only be done manually?

On Tue, Feb 16, 2021 at 12:13 PM swfiua at gmail.com <swfiua at gmail.com> wrote:
>
> You can call legend as follows:
>
> plt.legend(loc=0)
>
> and it will place the legend where it obscures as little as possible.
> _______________________________________________
> Matplotlib-users mailing list
> Matplotlib-users at python.org
> https://mail.python.org/mailman/listinfo/matplotlib-users



-- 
Those who don't understand recursion are doomed to repeat it


More information about the Matplotlib-users mailing list