Add public method to update Legend object's loc property .#26089
Add public method to update Legend object's loc property .#26089ksunden merged 1 commit intomatplotlib:mainfrom
Legend object's loc property .#26089Conversation
There was a problem hiding this comment.
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
ksunden
left a comment
There was a problem hiding this comment.
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
|
Congrats, @cocolato, hope to hear from you again! |
PR summary
Add public method to update
Legendobject's loc property .Example:
PR checklist
Legendobject's loc property . #25014"