-
-
Notifications
You must be signed in to change notification settings - Fork 19.3k
Added legend_loc parameter to plot function #62568
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
71bdbd4 to
3c09f43
Compare
mroeschke
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you link the associated issue in #62568 (comment)?
pandas/plotting/_matplotlib/core.py
Outdated
|
|
||
| if len(handles) > 0: | ||
| ax.legend(handles, labels, loc="best", title=title) | ||
| # ax.legend(handles, labels, loc="best", title=title) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you remove these commented out lines?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated
57d4049 to
6a583eb
Compare
|
Is there an alternative where the user does this in post-processing? I.e. can we make this Not Our Problem? |
|
The alternative is to use the ax object created by matplotlib and then change the legend location but the problem arises when we call
While plotting turn off the legend by So just giving the legend location |
|
This pull request is stale because it has been open for thirty days with no activity. Please update and respond to this comment if you're still interested in working on this. |
|
@mroeschke @jbrockmendel any thoughts on this? Please let me know if more changes are needed. Thanks |
doc/source/whatsnew/vX.X.X.rstfile if fixing a bug or adding a new feature.