Title: [Bug]: pick events do not forward mouseevent-key on Linux · Issue #24199 · matplotlib/matplotlib · GitHub
Open Graph Title: [Bug]: pick events do not forward mouseevent-key on Linux · Issue #24199 · matplotlib/matplotlib
X Title: [Bug]: pick events do not forward mouseevent-key on Linux · Issue #24199 · matplotlib/matplotlib
Description: Bug summary Somehow on CentOS Linux 7 keyboard-buttons are not forwarded with pick_events... on Windows 10 everything works as expected. Code for reproduction import matplotlib.pyplot as plt f, ax = plt.subplots() s = ax.scatter([1,2,3,4...
Open Graph Description: Bug summary Somehow on CentOS Linux 7 keyboard-buttons are not forwarded with pick_events... on Windows 10 everything works as expected. Code for reproduction import matplotlib.pyplot as plt f, ax ...
X Description: Bug summary Somehow on CentOS Linux 7 keyboard-buttons are not forwarded with pick_events... on Windows 10 everything works as expected. Code for reproduction import matplotlib.pyplot as plt f, ax ...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/24199
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Bug]: pick events do not forward mouseevent-key on Linux","articleBody":"### Bug summary\r\n\r\nSomehow on `CentOS Linux 7` keyboard-buttons are not forwarded with `pick_events`... on `Windows 10` everything works as expected.\r\n\r\n\r\n### Code for reproduction\r\n\r\n```python\r\nimport matplotlib.pyplot as plt\r\n\r\nf, ax = plt.subplots()\r\ns = ax.scatter([1,2,3,4], [1,2,3,4], s=1000)\r\ns.set_picker(True)\r\n\r\ndef doit(event):\r\n if event.name == \"button_press_event\":\r\n print(event.name, event.key)\r\n if event.name == \"pick_event\":\r\n print(event.name, event.mouseevent.key)\r\n\r\nf.canvas.mpl_connect(\"button_press_event\", doit)\r\nf.canvas.mpl_connect(\"pick_event\", doit)\r\n```\r\n\r\n\r\n### Actual outcome\r\nWhen clicking on one of the datapoints while pressing the buttons `1` `2` and `3` the following happens:\r\n\r\non Windows I get:\r\n\r\n```python\r\npick_event 1\r\nbutton_press_event 1\r\npick_event 2\r\nbutton_press_event 2\r\npick_event 3\r\nbutton_press_event 3\r\n```\r\non CentOS Linux I get:\r\n\r\n```python\r\npick_event None\r\nbutton_press_event 1\r\npick_event None\r\nbutton_press_event 2\r\npick_event None\r\nbutton_press_event 3\r\n```\r\n\r\n### Expected outcome\r\n\r\nThe same output for both OS\r\n\r\n### Operating system\r\n\r\nWindows / Linux CentOS7\r\n\r\n### Matplotlib Version\r\n\r\n3.6.1\r\n\r\n### Matplotlib Backend\r\n\r\nQt5Agg\r\n\r\n### Python version\r\n\r\n3.9.13\r\n\r\n\r\n### Installation\r\n\r\nconda","author":{"url":"https://github.com/raphaelquast","@type":"Person","name":"raphaelquast"},"datePublished":"2022-10-17T11:09:11.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":8},"url":"https://github.com/24199/matplotlib/issues/24199"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:e995d9d6-9525-e228-b1e9-98fd1e0c6078 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AB56:26B84E:3443A2:46EE04:6A51429C |
| html-safe-nonce | 07a55a4a342ce3b241a3f8cb29469adadaaf38d8ddec2e717d4a2a360023e7c5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQjU2OjI2Qjg0RTozNDQzQTI6NDZFRTA0OjZBNTE0MjlDIiwidmlzaXRvcl9pZCI6Ijg1MDk1ODk2NjI3Nzk2NTQ4MTIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 744c1239240e83b522601b3869d161557d543ed987c7569d942d1d6b6ea884b0 |
| hovercard-subject-tag | issue:1411380978 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/matplotlib/matplotlib/24199/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2b90abccf09052691f9b84530f721f1f73699361eac9f3a2fa522ff27dbb71c4/matplotlib/matplotlib/issues/24199 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2b90abccf09052691f9b84530f721f1f73699361eac9f3a2fa522ff27dbb71c4/matplotlib/matplotlib/issues/24199 |
| og:image:alt | Bug summary Somehow on CentOS Linux 7 keyboard-buttons are not forwarded with pick_events... on Windows 10 everything works as expected. Code for reproduction import matplotlib.pyplot as plt f, ax ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | raphaelquast |
| hostname | github.com |
| expected-hostname | github.com |
| None | e840f405b2718e8f2d55aafa9ff27dbce17e29d0c253011d05ea0fea3c78baff |
| turbo-cache-control | no-preview |
| go-import | github.com/matplotlib/matplotlib git https://github.com/matplotlib/matplotlib.git |
| octolytics-dimension-user_id | 215947 |
| octolytics-dimension-user_login | matplotlib |
| octolytics-dimension-repository_id | 1385122 |
| octolytics-dimension-repository_nwo | matplotlib/matplotlib |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1385122 |
| octolytics-dimension-repository_network_root_nwo | matplotlib/matplotlib |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | e876f00c5723f6080b9d294e4958fd4d506e6faf |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width