Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitca858b7

Browse files
committed
BUG: Fix animation test
Lack of saving the animation caused it to never run the callbacks.
1 parent3227ed1 commitca858b7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

‎lib/matplotlib/tests/test_animation.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,8 @@ def animate(i):
162162

163163
anim=animation.FuncAnimation(fig,animate,init_func=init,
164164
frames=iter(range(5)))
165+
writer=NullMovieWriter()
166+
anim.save('unused.null',writer=writer)
165167

166168

167169
deftest_movie_writer_registry():

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp