Title: pcolormesh freezes window when zooming/panning · Issue #22253 · matplotlib/matplotlib · GitHub
Open Graph Title: pcolormesh freezes window when zooming/panning · Issue #22253 · matplotlib/matplotlib
X Title: pcolormesh freezes window when zooming/panning · Issue #22253 · matplotlib/matplotlib
Description: In matplotlib 3.5.1 on Linux (arch and opensuse) pcolormesh is causing some extreme slowdowns. When I try to zoom or pan inside the window, reactions from the mouse are very slow, such that the drawn zoom indicator is >1s delayed and the...
Open Graph Description: In matplotlib 3.5.1 on Linux (arch and opensuse) pcolormesh is causing some extreme slowdowns. When I try to zoom or pan inside the window, reactions from the mouse are very slow, such that the dra...
X Description: In matplotlib 3.5.1 on Linux (arch and opensuse) pcolormesh is causing some extreme slowdowns. When I try to zoom or pan inside the window, reactions from the mouse are very slow, such that the dra...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/22253
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"pcolormesh freezes window when zooming/panning","articleBody":"In matplotlib 3.5.1 on Linux (arch and opensuse) pcolormesh is causing some extreme slowdowns. When I try to zoom or pan inside the window, reactions from the mouse are very slow, such that the drawn zoom indicator is \u003e1s delayed and the window/notebook freezes. \r\n\r\nThe extend varies somewhat by backend. Using the `%matplotlib notebook` backend in jupyter notebook, freezes as soon as one tries to zoom, and the kernel has to be restarted. Using Qt5Agg with ipython from the terminal, also freezes immediately. With the Gtk3Agg backend the window does not fully freeze but the zoom indicator etc. are extremely laggy. \r\n\r\nI checked with `pcolor` and `pcolorfast` as well as `imshow` and all work fine.\r\n\r\nTest case:\r\n```python\r\nimport matplotlib.pyplot as plt\r\nimport numpy as np\r\n \r\nx = np.linspace(-5,5,512)\r\nX,Y = np.meshgrid(x,x)\r\ng = np.exp(-(X**2+Y**2)/2)\r\n\r\nplt.figure()\r\nax = plt.subplot(111)\r\nplt.pcolormesh(X,Y,g)\r\nplt.show()\r\n```\r\nRun and select the zoom button in the opened window. If using Qt5Agg the window (and terminal) freezes, CTRL-C only works with very long delay. ","author":{"url":"https://github.com/cycomanic","@type":"Person","name":"cycomanic"},"datePublished":"2022-01-17T18:43:27.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/22253/matplotlib/issues/22253"}
| 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:80d4e6cb-9a58-5cf9-a610-1de10773a8f7 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 887E:171A20:2688D32:347A4CC:6A53AD2E |
| html-safe-nonce | 746f804c7393e58582998b62ca0949e8f515bbb328f66ebcd77d2b3b4fd62539 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4ODdFOjE3MUEyMDoyNjg4RDMyOjM0N0E0Q0M6NkE1M0FEMkUiLCJ2aXNpdG9yX2lkIjoiNjI4MzA4MjM5MTgwOTY2NjM1MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 1b6f674964b453ad57a9b36d12568ba111c4964a324cb8794ff3154661ce6d3b |
| hovercard-subject-tag | issue:1106165257 |
| 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/22253/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ff4dbee2a25b85f4a8f4cd50a1513661b233770bb27495d0054f16d16941f54e/matplotlib/matplotlib/issues/22253 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ff4dbee2a25b85f4a8f4cd50a1513661b233770bb27495d0054f16d16941f54e/matplotlib/matplotlib/issues/22253 |
| og:image:alt | In matplotlib 3.5.1 on Linux (arch and opensuse) pcolormesh is causing some extreme slowdowns. When I try to zoom or pan inside the window, reactions from the mouse are very slow, such that the dra... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | cycomanic |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| 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 | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width