-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Fix pan/zoom crashing when widget lock is unavailable #23373
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 while, please feel free to ping @matplotlib/developers
or anyone who has commented on the PR. 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.
496de36
to
1983571
Compare
I was able to test the fix in jupyter-notebook, and it works fine. see: #23324 (comment) Thanks ! |
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.
see #23324 (comment)
@@ -175,6 +175,18 @@ def test_interactive_zoom(): | |||
assert not ax.get_autoscalex_on() and not ax.get_autoscaley_on() | |||
|
|||
|
|||
# GH #23324 |
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.
# GH #23324 |
1983571
to
fd99fb8
Compare
Congratulations on your first Matplotlib contribution @kianelbo and thank you very much! Hope to see you around! |
PR Summary
Closes #23324
To fix the crash, when toggling zoom or pan tools, first check if widgetlock is available to proceed.
Btw, I only could test it with MACOSX backend and it was ok.
PR Checklist
Tests and Styling
pytest
passes).flake8-docstrings
and runflake8 --docstring-convention=all
).Documentation
doc/users/next_whats_new/
(follow instructions in README.rst there).doc/api/next_api_changes/
(follow instructions in README.rst there).