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
[Bug]: PolygonSelector should hide itself when zoom/pan is active #28165
Comments
Good first issue - notes for new contributorsThis issue is suited to new contributors because it does not require understanding of the We do not assign issues. Check the Development section in the sidebar for linked pull If something is unclear, please reach out on any of our communication |
Hi there! I'm new to open source, but I'm eager to dive in and help out. I came across this issue and I think I can tackle it, can I work on it ? |
Hi @Kaustbh, We do not assign any issues, and anybody is free to work on anything. In general, we tend to give preference to the first person to open a PR (absent a clear technical reason to opt for a newer PR). In this case, there are no PRs yet for this issue. See also https://matplotlib.org/devdocs/devel/contribute.html#work-on-an-issue |
@anntzer , I tried to reproduce the issue , can you tell what is the problem . (backend = WebAgg) , demo.mp4 |
@anntzer please reply . |
Your movie doesn't play, and as noted in the report this is with qtagg (or likely tkagg should work too). |
Bug summary
When interactive zoom/pan is active, widgets.PolygonSelector correctly disables itself (i.e. clicking and dragging zooms or pans the axes without creating a selection), but the selector cursor (a big circular marker) stays drawn at its last position (prior to zoom/pan being turned on). It should instead be hidden.
Code for reproduction
Actual outcome
The PolygonSelector cursor stays drawn at an incorrect position.
Expected outcome
The cursor is temporarily hidden.
Additional information
Probably a good first issue? I suspect the fix is along the lines of
i.e. if something else is active, just hide the last point of the polygon. However this patch doesn't handle interaction with the various extra widget states (moving, etc.); likely it should only apply in the "position pending" mode (last else block of _onmove).
Operating system
No response
Matplotlib Version
3.10.0.dev125+g63156f2ca6
Matplotlib Backend
qtagg
Python version
3.12
Jupyter version
no
Installation
git checkout
The text was updated successfully, but these errors were encountered: