[Matplotlib-users] legend(loc='best') a bit off

Ilya Flyamer flyamer at gmail.com
Mon Jan 9 14:40:10 EST 2017


Would an approach similar to adjustText be something you could consider for
mpl? I was already thinking of adding this to the library.

9 Янв 2017 г. 15:15 пользователь "Thomas Caswell" <tcaswell at gmail.com>
написал:

> I am pretty sure that 'best' is picking from one of the 9 positions [(top,
> middle, bottom)X(left, center, right)] not picking a continuous position.
>
> Fixing this would be useful and a pretty major new feature.  It is not
> clear to me what the best algorithm for this would be.  The obvious thing
> is to run N more refinements around each point, but hopefully there is some
> computational geometry that I do not know.
>
> Tom
>
> On Mon, Jan 9, 2017, 09:07 Neal Becker <ndbecker2 at gmail.com> wrote:
>
>> In the attached, the legend box slightly covers the graph, but there is no
>> need to, it could just be moved a bit lower and then would cover nothing.
>>
>> My questions:
>> 1) can I fix it?
>> 2) is this a bug?_______________________________________________
>> Matplotlib-users mailing list
>> Matplotlib-users at python.org
>> https://mail.python.org/mailman/listinfo/matplotlib-users
>>
>
> _______________________________________________
> 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/20170109/da0305bd/attachment.html>


More information about the Matplotlib-users mailing list