diff --git a/examples/animation/dynamic_image.py b/examples/animation/dynamic_image.py index d82e62f62af6..57d193ceae26 100644 --- a/examples/animation/dynamic_image.py +++ b/examples/animation/dynamic_image.py @@ -36,8 +36,8 @@ def f(x, y): # # or # -# from matplotlib.animation import FFMpegWriter -# writer = FFMpegWriter(fps=15, metadata=dict(artist='Me'), bitrate=1800) +# writer = animation.FFMpegWriter( +# fps=15, metadata=dict(artist='Me'), bitrate=1800) # ani.save("movie.mp4", writer=writer) plt.show() diff --git a/examples/animation/simple_anim.py b/examples/animation/simple_anim.py index 59552cd1cfa7..507d878bd183 100644 --- a/examples/animation/simple_anim.py +++ b/examples/animation/simple_anim.py @@ -34,8 +34,8 @@ def animate(i): # # or # -# from matplotlib.animation import FFMpegWriter -# writer = FFMpegWriter(fps=15, metadata=dict(artist='Me'), bitrate=1800) +# writer = animation.FFMpegWriter( +# fps=15, metadata=dict(artist='Me'), bitrate=1800) # ani.save("movie.mp4", writer=writer) plt.show()