-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Bbox.frozen() does not copy minposx/minposy #19296
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
Comments
Hello @anntzer , I'm new to open source, and would like to contribute to this issue, could you explain this issue more and navigate me a little bit. |
hi @Monishver! check out our development guide at https://matplotlib.org/devdocs/ The issue is that the method matplotlib/lib/matplotlib/transforms.py Lines 259 to 261 in 6530db1
One possible solution is for |
Thanks for giving a detailed overview, I have started looking into it and will try to implement it in few days. |
I am new to open source and I trying to know about this issue, can you @story645 please tell how adding frozen in the Bbox class would help to resolve this issue |
If you overload 'frozen' by implementing it inside BBox, than you can add whichever of BBox's attributes (such as miniposx and minposy) to the attributes returned in the frozen version. Another option is extending BBox.get_points but I don't like that approach since miniposx and miniposy aren't points. |
I've reclassified this - I don't think anything that touches the |
Co-authored-by: Agriad <[email protected]> Co-authored-by: davek10 <[email protected]> Co-authored-by: tjr16 <[email protected]>
This function copies minpos when frozen is called. This commit resolves matplotlib#19296. Co-authored-by: Agriad <[email protected]> Co-authored-by: davek10 <[email protected]> Co-authored-by: tjr16 <[email protected]>
This function copies minpos when frozen is called. This commit resolves matplotlib#19296. Co-authored-by: Agriad <[email protected]> Co-authored-by: davek10 <[email protected]> Co-authored-by: tjr16 <[email protected]>
Co-authored-by: Agriad <[email protected]> Co-authored-by: davek10 <[email protected]> Co-authored-by: tjr16 <[email protected]>
This function copies minpos when frozen is called. This commit resolves matplotlib#19296. Co-authored-by: Agriad <[email protected]> Co-authored-by: davek10 <[email protected]> Co-authored-by: tjr16 <[email protected]>
Bug report
Bug summary
All's in the title.
One use case which showcases this is to prevent an artist from participating in autoscaling (in effect, a slightly hackish way to implement something like #15595):
which works... except for log-scale, as that needs also copying minposx/minposy.
Code for reproduction
Actual outcome
Expected outcome
Matplotlib version
import matplotlib; print(matplotlib.__version__)
): master (3.3.x)print(matplotlib.get_backend())
): anyThe text was updated successfully, but these errors were encountered: