From f44c4e613934e0507932891f2373a1e2da116788 Mon Sep 17 00:00:00 2001 From: Georg Raiser Date: Thu, 9 Apr 2020 14:56:02 +0100 Subject: [PATCH 1/2] Update animation_api.rst --- doc/api/animation_api.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/api/animation_api.rst b/doc/api/animation_api.rst index dd4bad8f0518..a579c0653508 100644 --- a/doc/api/animation_api.rst +++ b/doc/api/animation_api.rst @@ -212,9 +212,9 @@ at a time and ``finish()`` finalizes the movie and writes the output file to disk. For example :: moviewriter = MovieWriter(...) - moviewriter.setup(fig=fig, 'my_movie.ext', dpi=100) + moviewriter.setup(fig, 'my_movie.ext', dpi=100) for j in range(n): - update_figure(n) + update_figure(j) moviewriter.grab_frame() moviewriter.finish() From 18b3d7a28168a9778a3a04217b9c294ff57dda83 Mon Sep 17 00:00:00 2001 From: Georg Raiser Date: Thu, 9 Apr 2020 18:07:42 +0100 Subject: [PATCH 2/2] Update animation_api.rst --- doc/api/animation_api.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/animation_api.rst b/doc/api/animation_api.rst index a579c0653508..89341db8d915 100644 --- a/doc/api/animation_api.rst +++ b/doc/api/animation_api.rst @@ -223,7 +223,7 @@ strongly encouraged to use the `~MovieWriter.saving` context manager :: with moviewriter.saving(fig, 'myfile.mp4', dpi=100): for j in range(n): - update_figure(n) + update_figure(j) moviewriter.grab_frame() to ensures that setup and cleanup are performed as necessary.