Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

fix #29410 Modifying Axes' position also alters the original Bbox object used for initialization #29411

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

Merged
merged 2 commits into from
Jan 10, 2025

Conversation

hu-xiaonan
Copy link
Contributor

PR summary

This PR fix #29410 Modifying Axes' position also alters the original Bbox object used for initialization.

Making a copy of the reference Bbox using its .frozen() method solves the problem.

PR checklist

Copy link

@github-actions github-actions bot left a 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.

lib/matplotlib/tests/test_axes.py Outdated Show resolved Hide resolved
@tacaswell tacaswell closed this Jan 10, 2025
@tacaswell tacaswell reopened this Jan 10, 2025
@tacaswell
Copy link
Member

"power cycled" the PR to pick up the fix for py310.

@tacaswell tacaswell added this to the v3.10.1 milestone Jan 10, 2025
@timhoffm timhoffm merged commit 7fcb063 into matplotlib:main Jan 10, 2025
61 of 63 checks passed
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull request Jan 10, 2025
…sition also alters the original Bbox object used for initialization
QuLogic added a commit that referenced this pull request Jan 10, 2025
…411-on-v3.10.x

Backport PR #29411 on branch v3.10.x (fix #29410 Modifying Axes' position also alters the original Bbox object used for initialization)
@ksunden ksunden mentioned this pull request Mar 3, 2025
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Modifying Axes' position also alters the original Bbox object used for initialization
3 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.