Title: Speed up canvas redraw for GTK3Agg backend. by akhilman · Pull Request #12030 · matplotlib/matplotlib · GitHub
Open Graph Title: Speed up canvas redraw for GTK3Agg backend. by akhilman · Pull Request #12030 · matplotlib/matplotlib
X Title: Speed up canvas redraw for GTK3Agg backend. by akhilman · Pull Request #12030 · matplotlib/matplotlib
Description: PR Summary Move _render_figure() call out of on_draw_event handler in FigureCanvasGTK3Agg class and call it from overloaded draw() method. Fixes #12010 Gtk triggers draw event not only when actual plot redraw required but also when any another widget drawn over canvas. This makes application with embided plot unresponsive in cases when popover or popup menu are drawn over plot. You may try example provided in #12010. Moving actual plot redraw out of on_draw_event() makes GUI much more responsive. This changes tested with: animation from examples/ directory interacive pan and zoom cursor widget with bliting calling draw_idle() to update interactive chart PR Checklist Has Pytest style unit tests Code is Flake 8 compliant New features are documented, with examples if plot related Documentation is sphinx and numpydoc compliant Added an entry to doc/users/next_whats_new/ if major new feature (follow instructions in README.rst there) Documented in doc/api/api_changes.rst if API changed in a backward-incompatible way
Open Graph Description: PR Summary Move _render_figure() call out of on_draw_event handler in FigureCanvasGTK3Agg class and call it from overloaded draw() method. Fixes #12010 Gtk triggers draw event not only when actual ...
X Description: PR Summary Move _render_figure() call out of on_draw_event handler in FigureCanvasGTK3Agg class and call it from overloaded draw() method. Fixes #12010 Gtk triggers draw event not only when actual ...
Opengraph URL: https://github.com/matplotlib/matplotlib/pull/12030
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:358f3e37-d070-fc6b-7b89-8e27a66f9f2e |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | DF3C:37AC61:5F7991:842640:6A5850E4 |
| html-safe-nonce | e9e516eeb3421e9ba77342cf3b639fd82cc3eff0bfa4a484f699fc6a4c3505a9 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERjNDOjM3QUM2MTo1Rjc5OTE6ODQyNjQwOjZBNTg1MEU0IiwidmlzaXRvcl9pZCI6IjEyNzI5MjY3MjM3NTIwODc3ODEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 23ab337ebc1859e15bf5bb819107aa087e9ed825351a552815ba9fb0f7307197 |
| hovercard-subject-tag | pull_request:213468863 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,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/matplotlib/matplotlib/pull/12030/files |
| twitter:image | https://avatars.githubusercontent.com/u/180812?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/180812?s=400&v=4 |
| og:image:alt | PR Summary Move _render_figure() call out of on_draw_event handler in FigureCanvasGTK3Agg class and call it from overloaded draw() method. Fixes #12010 Gtk triggers draw event not only when actual ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f2a0c7865178af3d91dd9f13b0cdfc3c73a2529c873d2780bb4c01271a57ec6 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| 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 | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8aae7b8d6caacacf5c66eaeb2702d8dc88d85b4a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width