Title: Migrate `BlitManager` from docs to library · Issue #22183 · matplotlib/matplotlib · GitHub
Open Graph Title: Migrate `BlitManager` from docs to library · Issue #22183 · matplotlib/matplotlib
X Title: Migrate `BlitManager` from docs to library · Issue #22183 · matplotlib/matplotlib
Description: @tacaswell wrote: Had some thoughts about hardening BlitManager a bit more and putting into the library, but was not sure where to put it and starting in a tutorial seems like a lower-stakes place to start. That BlitManager class looks p...
Open Graph Description: @tacaswell wrote: Had some thoughts about hardening BlitManager a bit more and putting into the library, but was not sure where to put it and starting in a tutorial seems like a lower-stakes place ...
X Description: @tacaswell wrote: Had some thoughts about hardening BlitManager a bit more and putting into the library, but was not sure where to put it and starting in a tutorial seems like a lower-stakes place ...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/22183
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Migrate `BlitManager` from docs to library","articleBody":"@tacaswell wrote:\r\n\u003e Had some thoughts about hardening `BlitManager` a bit more and putting into the library, but was not sure _where_ to put it and starting in a tutorial seems like a lower-stakes place to start.\r\n\r\nThat `BlitManager` class looks pretty useful for 'live' plots that are not timed (e.g. we want to plot at the rate that data becomes available). Maybe the class could be put in `matplotlib.animation`?\r\n\r\n_Originally posted by @joukewitteveen in https://github.com/matplotlib/matplotlib/issues/10187#issuecomment-1008855976_\r\n\r\n`BlitManager` is a class that was written for pedagogical and documentation reasons in #10187. When I wrote it I had an idea that it would be generally useful, but was not sure (and did not put in the work to harden / test the code). We now have a user who asking for it so this seems like a good time to re-consider!\r\n\r\nThe use case that @joukewitteveen has is being on the receive side of a push notification that there is new data, but I think this would make sense anytime that a user wants more control over the timing of the animation (you could also do this with clever use of concurrency + generators but that gets complicated fast). \r\n\r\nThe work that needs to be done:\r\n\r\n1. review the API (it should take a figure not a canvas I think)\r\n2. add tests\r\n3. think through event loop integration (do we want to call `canvas.flush_events`?)\r\n4. make sure it works on all backends that support blitting (I think the OSX related issues are now fixed, but would be good to check).\r\n5. write a tutorial on using it / adapt the existing section to be about it.\r\n\r\nWe may want to do this in the main repo, but I could also see this fitting in mpl-gui ( https://github.com/tacaswell/mpl-gui) at least to start","author":{"url":"https://github.com/tacaswell","@type":"Person","name":"tacaswell"},"datePublished":"2022-01-10T19:09:59.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/22183/matplotlib/issues/22183"}
| 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:79a5c123-abae-c7e5-7956-3c284f08da57 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9174:97529:BC9A15:101A3FE:6A520E52 |
| html-safe-nonce | 710b486f8da83f6aee041ae072949e7ce3737f7f40511de21381fa6094177b8c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MTc0Ojk3NTI5OkJDOUExNToxMDFBM0ZFOjZBNTIwRTUyIiwidmlzaXRvcl9pZCI6IjMzNjQyOTUzMTQwNjQ0MTIyNDIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 697750d0b941353e66b819a205657f6ea688d4cae07a26d6e69610f26f331feb |
| hovercard-subject-tag | issue:1098271120 |
| 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/22183/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1f35dddb7bf8d0be79c0b0aff406b4eccc13943cdb8cc36168e618e41857e554/matplotlib/matplotlib/issues/22183 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1f35dddb7bf8d0be79c0b0aff406b4eccc13943cdb8cc36168e618e41857e554/matplotlib/matplotlib/issues/22183 |
| og:image:alt | @tacaswell wrote: Had some thoughts about hardening BlitManager a bit more and putting into the library, but was not sure where to put it and starting in a tutorial seems like a lower-stakes place ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | tacaswell |
| 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