Title: Make Widget.useblit robust against underlying canvas changes · Issue #30503 · matplotlib/matplotlib · GitHub
Open Graph Title: Make Widget.useblit robust against underlying canvas changes · Issue #30503 · matplotlib/matplotlib
X Title: Make Widget.useblit robust against underlying canvas changes · Issue #30503 · matplotlib/matplotlib
Description: As noted in #30490 (comment) (and #30485, the original issue, also #25075), Widget.canvas, which is typically initialized as self.useblit = useblit and canvas.supports_blit, is fragile against changes in the underlying canvas (the most c...
Open Graph Description: As noted in #30490 (comment) (and #30485, the original issue, also #25075), Widget.canvas, which is typically initialized as self.useblit = useblit and canvas.supports_blit, is fragile against chan...
X Description: As noted in #30490 (comment) (and #30485, the original issue, also #25075), Widget.canvas, which is typically initialized as self.useblit = useblit and canvas.supports_blit, is fragile against chan...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/30503
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Make Widget.useblit robust against underlying canvas changes","articleBody":"As noted in https://github.com/matplotlib/matplotlib/pull/30490#discussion_r2312635485 (and #30485, the original issue, also #25075), Widget.canvas, which is typically initialized as `self.useblit = useblit and canvas.supports_blit`, is fragile against changes in the underlying canvas (the most common case in practice being a temporarily switch from a canvas that supports blitting to one that doesn't, when saving to vector output).\n@tacaswell wrote some code to handle that in #25085, but some further fixes were necessary in #30490 which uses a different approach; a unified way of handling the issue would be nice to have.\n\n**Status:**\n\n- [x] Button\n- [x] _SelectorWidget\n- [x] SpanSelector\n- [x] ToolLineHandles\n- [x] ToolHandles\n- [x] RectangleSelector\n- [x] LassoSelector\n- [x] PolygonSelector\n\nNot supported yet:\n\n- [ ] CheckButtons\n- [ ] RadioButtons\n- [ ] Cursor\n- [ ] MultiCursor\n- [ ] Lasso\n","author":{"url":"https://github.com/anntzer","@type":"Person","name":"anntzer"},"datePublished":"2025-09-02T09:26:54.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":8},"url":"https://github.com/30503/matplotlib/issues/30503"}
| 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:3050da08-3bcd-8aa7-46cc-b89fb4ef996e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 856C:28E279:AE2441A:B1A46CD:6A50BFBD |
| html-safe-nonce | bcbe9479b42904f81ed40a896c739a549b4d4d3ae8b76609012a5b239003abb2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NTZDOjI4RTI3OTpBRTI0NDFBOkIxQTQ2Q0Q6NkE1MEJGQkQiLCJ2aXNpdG9yX2lkIjoiNjc2ODM5NTM5NTQwMTgyNjIzNyIsInJlZ2lvbl9lZGdlIjoic2VhIiwicmVnaW9uX3JlbmRlciI6InNlYSJ9 |
| visitor-hmac | 407a746fb308eefd3091200deed46ea5d15479c37ec74116a948e02e1a4a83e6 |
| hovercard-subject-tag | issue:3375191865 |
| 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/30503/issue_layout |
| twitter:image | https://opengraph.githubassets.com/166520c89e16c94be17562f5cab8dfaf88dec2f520a5d1678217446716847822/matplotlib/matplotlib/issues/30503 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/166520c89e16c94be17562f5cab8dfaf88dec2f520a5d1678217446716847822/matplotlib/matplotlib/issues/30503 |
| og:image:alt | As noted in #30490 (comment) (and #30485, the original issue, also #25075), Widget.canvas, which is typically initialized as self.useblit = useblit and canvas.supports_blit, is fragile against chan... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | anntzer |
| hostname | github.com |
| expected-hostname | github.com |
| None | 72b13e0e8d0319acdd27a145cfe73f4f06c791713d0ac4690e41fb68ad28cac0 |
| 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 | 08e79d53fc070870d5b168356afebb1e286a2ffe |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width