Title: [Bug]: Broken functionality: Qt5/PySide2, using interactive mode, fig.canvas.draw() then fig.canvas.flush_events() leaves plot in non-interactive state. · Issue #28959 · matplotlib/matplotlib · GitHub
Open Graph Title: [Bug]: Broken functionality: Qt5/PySide2, using interactive mode, fig.canvas.draw() then fig.canvas.flush_events() leaves plot in non-interactive state. · Issue #28959 · matplotlib/matplotlib
X Title: [Bug]: Broken functionality: Qt5/PySide2, using interactive mode, fig.canvas.draw() then fig.canvas.flush_events() leaves plot in non-interactive state. · Issue #28959 · matplotlib/matplotlib
Description: Bug summary Matplotlib 3.9.0, PySide2 with Qt5 5.15.2, Python 3.11.9, IPython 8.25.0 (or jupter qtconsole 5.5.2) The attached code leaves the plot in a non-interative state. The blank figure comes up correctly with the plt.figure() call....
Open Graph Description: Bug summary Matplotlib 3.9.0, PySide2 with Qt5 5.15.2, Python 3.11.9, IPython 8.25.0 (or jupter qtconsole 5.5.2) The attached code leaves the plot in a non-interative state. The blank figure comes ...
X Description: Bug summary Matplotlib 3.9.0, PySide2 with Qt5 5.15.2, Python 3.11.9, IPython 8.25.0 (or jupter qtconsole 5.5.2) The attached code leaves the plot in a non-interative state. The blank figure comes ...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/28959
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Bug]: Broken functionality: Qt5/PySide2, using interactive mode, fig.canvas.draw() then fig.canvas.flush_events() leaves plot in non-interactive state.","articleBody":"### Bug summary\n\nMatplotlib 3.9.0, PySide2 with Qt5 5.15.2, Python 3.11.9, IPython 8.25.0 (or jupter qtconsole 5.5.2)\r\n\r\nThe attached code leaves the plot in a non-interative state.\r\n\r\nThe blank figure comes up correctly with the plt.figure() call. The plot draws correctly at fig.canvas.flush_events(). the final state is not interactive.\n\n### Code for reproduction\n\n```Python\nimport matplotlib\r\nmatplotlib.use('Qt5Agg')\r\n\r\nimport matplotlib.pyplot as plt\r\nimport numpy as np\r\n\r\nx=np.arange(10)\r\ny=x*x\r\n\r\nplt.ion()\r\n\r\nfig=plt.figure()\r\nax=fig.add_subplot(111)\r\nline,=ax.plot(x,y)\r\n\r\nfig.canvas.draw()\r\nfig.canvas.flush_events()\n```\n\n\n### Actual outcome\n\nPlot is not responsive but is displayed correctly.\r\n\r\n\n\n### Expected outcome\n\nShould be able to interact with the plot, including selection of toolbar buttons, zooming etc.\n\n### Additional information\n\nThe submission is a simplified use-case of a more complex applicaion under development. The plots in the application used to be left in an interactive state once the applications simulation completes execution.\n\n### Operating system\n\nUbuntu 20.04\n\n### Matplotlib Version\n\n3.9.0\n\n### Matplotlib Backend\n\nQt5Agg\n\n### Python version\n\n3.11.9\n\n### Jupyter version\n\nIPython 8.25.0 or jupyter qtconsole 5.5.2\n\n### Installation\n\nfrom source (.tar.gz)","author":{"url":"https://github.com/chrisgmorton","@type":"Person","name":"chrisgmorton"},"datePublished":"2024-10-09T18:37:36.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":8},"url":"https://github.com/28959/matplotlib/issues/28959"}
| 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:beeb4952-74a1-5cae-419d-e98316d1cdb9 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BCD0:2DD09A:AC776F:ED294E:6A55BA4A |
| html-safe-nonce | f7b882b2de889ec6637a8c3015a06fcfed71f1278ffc16a813a3a1214321af99 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQ0QwOjJERDA5QTpBQzc3NkY6RUQyOTRFOjZBNTVCQTRBIiwidmlzaXRvcl9pZCI6IjMwOTY3MTIwODY5NTAzNjE2NzQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 9a98eed7f84e3b07c2ba3d072259a8e545330429021dcccead6051bcfb530047 |
| hovercard-subject-tag | issue:2576649270 |
| 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/28959/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5f5090169f99c5aef597ba39d3769f7e3285ffb999d1bdf4ee76ea562749fe5b/matplotlib/matplotlib/issues/28959 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5f5090169f99c5aef597ba39d3769f7e3285ffb999d1bdf4ee76ea562749fe5b/matplotlib/matplotlib/issues/28959 |
| og:image:alt | Bug summary Matplotlib 3.9.0, PySide2 with Qt5 5.15.2, Python 3.11.9, IPython 8.25.0 (or jupter qtconsole 5.5.2) The attached code leaves the plot in a non-interative state. The blank figure comes ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | chrisgmorton |
| hostname | github.com |
| expected-hostname | github.com |
| None | b5665c84831ed9ac4fb79519c16c9c5580ba8092fb8bb6e3e72972ec7197348e |
| 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 | 64b9ae238e18eb87ead1f9fe37a7cc81d67d85aa |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width