-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Add pause/resume methods to Animation baseclass #17689
Copy link
Copy link
Closed
Labels
Difficulty: Mediumhttps://matplotlib.org/devdocs/devel/contribute.html#good-first-issueshttps://matplotlib.org/devdocs/devel/contribute.html#good-first-issuesGood first issueOpen a pull request against these issues if there are no active ones!Open a pull request against these issues if there are no active ones!topic: animation
Milestone
Metadata
Metadata
Assignees
Labels
Difficulty: Mediumhttps://matplotlib.org/devdocs/devel/contribute.html#good-first-issueshttps://matplotlib.org/devdocs/devel/contribute.html#good-first-issuesGood first issueOpen a pull request against these issues if there are no active ones!Open a pull request against these issues if there are no active ones!topic: animation
As pointed out in #17685 while you can pause an animation by reaching in and calling methods on the event source, when using
Animationwith blitting that is not enough, you also have to flip the animated artists back to non-animated. This code (lightly modified from @Luluser question) is a proof-of-concept.This code should be generalized and used to put a
pauseandresumemethods onAnimation.