From 743d57cff6616ea3ebee7109ace2a22e8f86ebf0 Mon Sep 17 00:00:00 2001 From: Ben Root Date: Tue, 6 Mar 2012 15:16:55 -0600 Subject: [PATCH] Fix some TimedAnimations "hiccup" at the end of a loop --- lib/matplotlib/animation.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/matplotlib/animation.py b/lib/matplotlib/animation.py index bec89f09640a..a2590bdbc68a 100644 --- a/lib/matplotlib/animation.py +++ b/lib/matplotlib/animation.py @@ -591,7 +591,8 @@ def _step(self, *args): self.event_source.add_callback(self._loop_delay) self.event_source.interval = self._repeat_delay self.frame_seq = self.new_frame_seq() - return True + # Try drawing again, but now at the beginning of the sequence + return Animation._step(self, *args) else: return still_going