Issue
Right now I have a plot with two subplots The problem is that in each subplot I put many traces with different colors so when I put the legend, it covers up some of the points.
The plot covers a lot of the plot space, and the legend has many traces so it seems there is no space for both
Is there a way to solve this? Perhaps (but I open to other ways) putting the legend outside?
Solution
There is a bbox_to_anchor
argument in the plt.legend()
function
This will enable you to set the position of the legend
This is a very nice answer already on here btw
Answered By - Tino D
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.