-
-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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]: canvas pick events not working when Axes belongs to a subfigure #25860
Comments
Thank you for the very clear report @ndeadly ! I can confirm that this is a bug. My suspicion is that in the pick function from Tasks:
Labeling as good first issue because it is a clear bug and there is no API design here (the pick event should fire!), but medium as it will require walking through the event handling stack and reasoning through some OO code. |
Small note; this is about |
I think this is correct, but maybe not for an expected reason; |
@tacaswell @QuLogic Hi guys, do you mind if I take a look at the issue? I would like to offer my help in solving this. |
@tsabbir96 Yes, we do not assign issues, if there is not a linked PR assume the issue is up for grabs and you are free to work on it. |
Hi, @tsabbir96. Are you still working on this? |
Hello @tacaswell I think I came up with a possible solution should I post it here or do I do a pull request? if it's the latter where in the documentation should I look in? this would be my first issue. |
Hi @klorine28 please go ahead and make a pull request. Our contributors' guide is here: |
sorry to ask but in what branch should I modify the code? i know its not main but I am unsure on wich one I should do it |
@klorine28 see our "Workflow" guide 😀 |
This has been fixed by #27343. |
Bug summary
When an axis is added to a subfigure, rather than the root figure, canvas pick events are no longer received for that axis.
Code for reproduction
Actual outcome
No output.
Expected outcome
The following should be displayed on the console when one of the markers is clicked.
>> pick event!
Additional information
No response
Operating system
Windows 10
Matplotlib Version
3.7.1
Matplotlib Backend
Qt5Agg
Python version
3.8.10
Jupyter version
No response
Installation
pip
The text was updated successfully, but these errors were encountered: