Title: Unnecessary drawing with NbAgg · Issue #13971 · matplotlib/matplotlib · GitHub
Open Graph Title: Unnecessary drawing with NbAgg · Issue #13971 · matplotlib/matplotlib
X Title: Unnecessary drawing with NbAgg · Issue #13971 · matplotlib/matplotlib
Description: I am running into performance issues when using the NbAgg backend, some of which I think is avoidable. Essentially, when clicking on an NbAgg plot, with no tool active, the backend re-draws the data, which can cause the kernel to hang if...
Open Graph Description: I am running into performance issues when using the NbAgg backend, some of which I think is avoidable. Essentially, when clicking on an NbAgg plot, with no tool active, the backend re-draws the dat...
X Description: I am running into performance issues when using the NbAgg backend, some of which I think is avoidable. Essentially, when clicking on an NbAgg plot, with no tool active, the backend re-draws the dat...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/13971
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Unnecessary drawing with NbAgg","articleBody":"I am running into performance issues when using the NbAgg backend, some of which I think is avoidable. Essentially, when clicking on an NbAgg plot, with no tool active, the backend re-draws the data, which can cause the kernel to hang if the plot is complex. Here is a demonstration - note the kernel activity in the circle in the top right. Every time I click on the plot, it is redrawn:\r\n\r\n\r\n\r\nJust to be clear, I totally expect plotting to be slow the first time the plot is shown, and if e.g. panning/zooming, but drawing when no tool is active doesn't seem right. This is causing issues for me because I am developing tools that respond to a click event in the plot and try and be nice by doing ``draw_idle`` to keep the UI responsive, but every mouse action also results in a full ``draw`` which slows things down a lot.\r\n\r\n**Matplotlib version**\r\n\r\n * Operating system: MacOS X 10.14.2\r\n * Matplotlib version: latest dev (557cdfaef1836a7e39d93e41c93810876c715016)\r\n * Matplotlib backend (`print(matplotlib.get_backend())`): NbAgg\r\n * Python version: 3.7.1\r\n * Jupyter version (if applicable): 4.4.0\r\n\r\n","author":{"url":"https://github.com/astrofrog","@type":"Person","name":"astrofrog"},"datePublished":"2019-04-16T10:20:59.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":20},"url":"https://github.com/13971/matplotlib/issues/13971"}
| 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:b7328c9d-e149-e97a-2717-73d2df5a986c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9582:1D19FE:11328E7:1760859:6A522C57 |
| html-safe-nonce | 0b2685fe3e9c466f7abb2354b2e883e7791fb756cef6f38556b369950e31361b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NTgyOjFEMTlGRToxMTMyOEU3OjE3NjA4NTk6NkE1MjJDNTciLCJ2aXNpdG9yX2lkIjoiMjgzNDAzMjkxMzYyMzk1MjQ3MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | d6b305a028eef706c7047a60f64cb3fc828330695c5883ae0570733197b13202 |
| hovercard-subject-tag | issue:433700317 |
| 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/13971/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9bcb39987afdac653ae8c8448ecea71cf411aad56dd2f5eab8b063e27f6d160e/matplotlib/matplotlib/issues/13971 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9bcb39987afdac653ae8c8448ecea71cf411aad56dd2f5eab8b063e27f6d160e/matplotlib/matplotlib/issues/13971 |
| og:image:alt | I am running into performance issues when using the NbAgg backend, some of which I think is avoidable. Essentially, when clicking on an NbAgg plot, with no tool active, the backend re-draws the dat... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | astrofrog |
| 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 | 7aed05249554b889eb33d002851a973eebcc7e91 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width