@@ -178,11 +178,11 @@ def update(frame):
178
178
# ========================================== ===========================
179
179
# Writer Supported Formats
180
180
# ========================================== ===========================
181
- # `~matplotlib.animation.PillowWriter` .gif, .apng
181
+ # `~matplotlib.animation.PillowWriter` .gif, .apng, .webp
182
182
# `~matplotlib.animation.HTMLWriter` .htm, .html, .png
183
- # `~matplotlib.animation.FFMpegWriter` All formats supported by
184
- # *ffmpeg*
185
- # `~matplotlib.animation.ImageMagickWriter` .gif
183
+ # `~matplotlib.animation.FFMpegWriter` All formats supported by *ffmpeg*
184
+ # `~matplotlib.animation.ImageMagickWriter` All formats supported by
185
+ # *imagemagick*
186
186
# ========================================== ===========================
187
187
#
188
188
# To save animations using any of the writers, we can use the
@@ -218,6 +218,11 @@ def update(frame):
218
218
# Imagemagick writers::
219
219
#
220
220
# ani.save(filename="/tmp/imagemagick_example.gif", writer="imagemagick")
221
+ # ani.save(filename="/tmp/imagemagick_example.webp", writer="imagemagick")
222
+ # ani.save(filename="apng:/tmp/imagemagick_example.apng",
223
+ # writer="imagemagick", extra_args=["-quality", "100"])
224
+ #
225
+ # (the ``extra_args`` for apng are needed to reduce filesize by ~10x)
221
226
#
222
227
# Since the frames are piped out to *ffmpeg* or *imagemagick*,
223
228
# ``writer="ffmpeg"`` and ``writer="imagemagick"`` support all formats
0 commit comments