Skip to content

Commit 4f5791a

Browse files
committed
fix bug in tranimate with new version of matplotlib
1 parent 650881e commit 4f5791a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spatialmath/base/animate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ def update(frame, animation):
249249
# animation and wait for its callback to be deregistered.
250250
while True:
251251
plt.pause(0.25)
252-
if len(_ani.event_source.callbacks) == 0:
252+
if _ani.event_source is None or len(_ani.event_source.callbacks) == 0:
253253
break
254254

255255
def __repr__(self):

0 commit comments

Comments
 (0)