Title: [ENH]: Start Animation in a paused state · Issue #31883 · matplotlib/matplotlib · GitHub
Open Graph Title: [ENH]: Start Animation in a paused state · Issue #31883 · matplotlib/matplotlib
X Title: [ENH]: Start Animation in a paused state · Issue #31883 · matplotlib/matplotlib
Description: Problem Currently when creating an animation, the event source is started by a callback that runs Animation._start() during the first 'draw_event'. This prevents any attempt of starting an animation in a paused state short of tampering w...
Open Graph Description: Problem Currently when creating an animation, the event source is started by a callback that runs Animation._start() during the first 'draw_event'. This prevents any attempt of starting an animatio...
X Description: Problem Currently when creating an animation, the event source is started by a callback that runs Animation._start() during the first 'draw_event'. This prevents any attempt of starting an ...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/31883
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[ENH]: Start Animation in a paused state","articleBody":"### Problem\n\nCurrently when creating an animation, the event source is started by a callback that runs `Animation._start()` during the first `'draw_event'`. This prevents any attempt of starting an animation in a paused state short of tampering with private parts of the API. Additionally, the user should be able to query the state of the event source. The `EventSourceProtocol` has no method that returns if it has been started or stopped.\n\n### Proposed solution\n\nInstead the constructor could specify with a keyword argument if the animation should start in a paused state or not. That boolean could then be used to guard the call to `event_source.start()` which could be called later in a callback provided by the user. Additionally a method that returns a boolean should be added to all event sources and the `EventSourceProtcol` that returns if it is stopped or started.","author":{"url":"https://github.com/dbs4261","@type":"Person","name":"dbs4261"},"datePublished":"2026-06-12T20:00:41.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/31883/matplotlib/issues/31883"}
| 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:30541360-bc6e-f901-7413-bfa00705400c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8102:399A66:8EC7C5:C32F06:6A539134 |
| html-safe-nonce | 1ea6069df866584b4940c7c62c59e28ba1df1a86f0fe00682dab9150ccff67c0 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MTAyOjM5OUE2Njo4RUM3QzU6QzMyRjA2OjZBNTM5MTM0IiwidmlzaXRvcl9pZCI6IjcyODUzNjI2NjAxNTMyMDA5NDkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 51ec94e291e5b17d8b136c6f204ec28ba5515b13b62596e7d6da5b08f703f5c3 |
| hovercard-subject-tag | issue:4652219929 |
| 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/31883/issue_layout |
| twitter:image | https://opengraph.githubassets.com/47538baea628948e7d1242290699abdccd3550ab4acb3f63470219583085e285/matplotlib/matplotlib/issues/31883 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/47538baea628948e7d1242290699abdccd3550ab4acb3f63470219583085e285/matplotlib/matplotlib/issues/31883 |
| og:image:alt | Problem Currently when creating an animation, the event source is started by a callback that runs Animation._start() during the first 'draw_event'. This prevents any attempt of starting an animatio... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dbs4261 |
| 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