FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Animation widgets for Pause/Rewind/etc. · Issue #20564 · matplotlib/matplotlib · GitHub

Repository navigation

Animation widgets for Pause/Rewind/etc. #20564

Closed as not planned
Closed as not planned

Description

Problem

It would be useful if matplotlib had an animation class pre-programed with widgets, similar to the one on presented on the matplotlib website:
https://matplotlib.org/stable/gallery/animation/simple_anim.html#sphx-glr-gallery-animation-simple-anim-py

Nearly all the animations I'm working on would benefit greatly from the ability to pause/rewind/step forward/etc. as shown in the example - it was sad to see these features couldn't be implemented using the example code.
It would be possible to recreate these widgets, but the process is finicky and quite involved, definitely not something the average user could easily step into.

A pre-built animation with widgets class could take a lot of the hassle out of implementing some of these features.
Baring that, having an example that recreated the website widgets in python would also save a lot of troubleshooting.

Activity

  1. mikaeltulldahl commented on Nov 23, 2022

    This could be a good starting point
    https://stackoverflow.com/a/46327978/3949028
    I have been improving this Player class for my own purpose, could share it when it is done. I also found some more bugs with animation class in the pause() & resume() methods which will need fixing too

  2. tacaswell commented on Nov 23, 2022

    Member

    That is a good example (as is most things @ImportanceOfBeingErnest has writte).

    In the docs we have pre-rendererd the full animation and the html UI is effective a movie player. Doing it on top of a live figure gets a bit more interesting because we have a lot more degrees of freedom!

    The choice to parameterize the animation only by i is a reasonable simplification.

  3. timhoffm commented on Nov 24, 2022

    Member

    I'm a bit sceptical that we're driving the widget thing too far. Yes, it basically works and has the advantage of being backend-independent. On the other hand, it has some serious limitations: non-native look&feel, layout issues (does this work with constrained layout?), resizing/scaling issues, non-accessibility, ...

    Maybe we'd be better off by creating an animation widget for each of the GUI toolkits and provide that similar to the toolbar. - After all it's only a set of buttons and a slider, which should be quite easy to create.

  4. mikaeltulldahl commented on Nov 27, 2022

    It's up to matplotlib community to decide. I just realized that I was not alone looking for this functionality so I decided do share my work

  5. github-actions commented on Jan 19, 2026

    This issue has been marked "inactive" because it has been 365 days since the last comment. If this issue is still present in recent Matplotlib releases, or the feature request is still wanted, please leave a comment and this label will be removed. If there are no updates in another 30 days, this issue will be automatically closed, but you are free to re-open or create a new issue if needed. We value issue reports, and this procedure is meant to help us resurface and prioritize issues that have not been addressed yet, not make them disappear. Thanks for your help!

  6. added
    status: closed as inactiveIssues closed by the "Stale" Github Action. Please comment on any you think should still be open.
    on Feb 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions


      Back | FazBrowse Home | New Git URL