You can call legend as follows: plt.legend(loc=0) and it will place the legend where it obscures as little as possible. -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://mail.python.org/pipermail/matplotlib-users/attachments/20210216/0dc5e894/attachment.html>