Title: BUG: Interactive mode slow · Issue #16294 · matplotlib/matplotlib · GitHub
Open Graph Title: BUG: Interactive mode slow · Issue #16294 · matplotlib/matplotlib
X Title: BUG: Interactive mode slow · Issue #16294 · matplotlib/matplotlib
Description: Based on git bisect it looks like #16028 caused a regression with interactive mode in Python 3.8, Qt5Agg backend (PyQt5=5.13.2), Linux x86_64 (at least; this is my system). The previous behavior (e.g., in 98aceb1) is that just doing: imp...
Open Graph Description: Based on git bisect it looks like #16028 caused a regression with interactive mode in Python 3.8, Qt5Agg backend (PyQt5=5.13.2), Linux x86_64 (at least; this is my system). The previous behavior (e...
X Description: Based on git bisect it looks like #16028 caused a regression with interactive mode in Python 3.8, Qt5Agg backend (PyQt5=5.13.2), Linux x86_64 (at least; this is my system). The previous behavior (e...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/16294
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"BUG: Interactive mode slow","articleBody":"Based on `git bisect` it looks like #16028 caused a regression with interactive mode in Python 3.8, Qt5Agg backend (PyQt5=5.13.2), Linux x86_64 (at least; this is my system). The previous behavior (e.g., in 98aceb1cf032b315dbc9185821c2444c1de5698b) is that just doing:\r\n```\r\nimport matplotlib.pyplot as plt\r\nplt.ion()\r\nfig, ax = plt.subplots()\r\n```\r\nwould pop up a plot, and:\r\n\r\n- Typing in the terminal worked fine\r\n- Hitting ctrl-C (and then enter) had normal terminal behavior:\r\n ```\r\n \u003e\u003e\u003e\r\n Traceback (most recent call last):\r\n File \"\u003cstdin\u003e\", line 1, in \u003cmodule\u003e\r\n KeyboardInterrupt\r\n \u003e\u003e\u003e \r\n ```\r\n\r\nBut in e6ffa5dd632f55d5f834d15e95547dd608a6bf35, I get:\r\n\r\n- Typing is very slow in the terminal (worsens with plot complexity)\r\n- Hitting ctrl-C kills the terminal:\r\n ```\r\n \u003e\u003e\u003e Traceback (most recent call last):\r\n File \"/home/larsoner/python/matplotlib/lib/matplotlib/backends/backend_qt5.py\", line 507, in _draw_idle\r\n self.draw()\r\n ...\r\n File \"/home/larsoner/python/matplotlib/lib/matplotlib/ticker.py\", line 2081, in __call__\r\n return self.tick_values(vmin, vmax)\r\n File \"/home/larsoner/python/matplotlib/lib/matplotlib/ticker.py\", line 2089, in tick_values\r\n locs = self._raw_ticks(vmin, vmax)\r\n File \"/home/larsoner/python/matplotlib/lib/matplotlib/ticker.py\", line 2045, in _raw_ticks\r\n istep = np.nonzero(steps \u003e= raw_step)[0][0]\r\n KeyboardInterrupt\r\n Aborted\r\n ```\r\n\r\nIf this description is not clear I could record some screen-cast GIFs or something.","author":{"url":"https://github.com/larsoner","@type":"Person","name":"larsoner"},"datePublished":"2020-01-22T19:02:37.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/16294/matplotlib/issues/16294"}
| 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:6561c20a-0b74-7208-f2e9-49127452a34e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A462:B6D9A:13F605E:1AACE19:6A52AC01 |
| html-safe-nonce | 72e9425946c22c6172810db52899d5aa6d67af7932c4f4f84bc510d82666e469 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNDYyOkI2RDlBOjEzRjYwNUU6MUFBQ0UxOTo2QTUyQUMwMSIsInZpc2l0b3JfaWQiOiI4MzIwNTI4NTA1MjM5Njc3OTUzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 4698fc0349b8ff88cecf4d67004c244e36d86dc94ffd148f5f54a3e36cf66b0f |
| hovercard-subject-tag | issue:553733041 |
| 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/16294/issue_layout |
| twitter:image | https://opengraph.githubassets.com/16323321a1210f6f2d45dde3c008e25b0034c14b77c163aab7b559493e103842/matplotlib/matplotlib/issues/16294 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/16323321a1210f6f2d45dde3c008e25b0034c14b77c163aab7b559493e103842/matplotlib/matplotlib/issues/16294 |
| og:image:alt | Based on git bisect it looks like #16028 caused a regression with interactive mode in Python 3.8, Qt5Agg backend (PyQt5=5.13.2), Linux x86_64 (at least; this is my system). The previous behavior (e... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | larsoner |
| 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