Python - animation with matplotlib.pyplot

前端 未结 3 811
心在旅途
心在旅途 2020-12-13 14:25

How can one create animated diagrams using popular matplotlib library? I am particularly interested in animated gifs.

3条回答
  •  有刺的猬
    2020-12-13 15:08

    Update in 2017

    Matplotlib has the animation module, and in it you find the ImageMagickFileWriter class. It is advertised as "File-based animated gif writer."

    Documentation: http://matplotlib.org/api/_as_gen/matplotlib.animation.ImageMagickFileWriter.html#matplotlib.animation.ImageMagickFileWriter

提交回复
热议问题