-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Add public method to update Legend
object's loc property .
#26089
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
Conversation
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.
Thank you for opening your first PR into Matplotlib!
If you have not heard from us in a week or so, please leave a new comment below and that should bring it to our attention. Most of our reviewers are volunteers and sometimes things fall through the cracks.
You can also join us on gitter for real-time discussion.
For details on testing, writing docs, and our review process, please see the developer guide
We strive to be a welcoming and open project. Please follow our Code of Conduct.
e987305
to
1919d2e
Compare
662d937
to
7132ab0
Compare
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.
I was slightly wondering about the _loc_used_default
flag and whether that handling should be kept to __init__
or not. I ended up coming to the conclusion that being implemented here is probably fine.
As an aside:
That said, not introduced here, but I have some questions about handling of that variable, as for figure legends it will default to "upper right", but the usage of that variable is for a warning about "best" being potentially slow. I mean, the warning also requires a second to elapse, which I expect 99+% of the time won't be a problem for figure legends, but still a bit incongruous (but not new here, so not blocking).
I was also wondering about the set_offset=False
behavior, but in running it it worked as expected, so unless proven otherwise I think it is fine.
|
Yes, but after init when updating the location, as it is a public method to do this, not sure "don't update offset" is actually expected. Perhaps it could be retained, but calling |
Now I've removed the |
Thanks @cocolato I think this is a really nice addition. I think it should have a "what's new" entry, and also a |
If you are confident with |
5196633
to
a2ec436
Compare
1d5dc65
to
5aca651
Compare
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.
Congrats, @cocolato, hope to hear from you again! |
PR summary
Add public method to update
Legend
object's loc property .Example:
PR checklist
Legend
object's loc property . #25014"