当前位置:   article > 正文

MovieWriter imagemagick unavailable. Trying to use pillow instead._moviewriter imagemagick unavailable; using pillow

moviewriter imagemagick unavailable; using pillow instead.

问题背景

当使用matplotlib的下列代码时,提示警告:

from matplotlib import animation

anim = animation.FuncAnimation(plt.gcf(), animate, frames = len(frames), interval=50)
anim.save(path + filename, writer='imagemagick', fps=60)

  • 1
  • 2
  • 3
  • 4
  • 5

提示警告如下:

MovieWriter imagemagick unavailable. Trying to use pillow instead.
  • 1

解决办法

将 writer 的 “imagemagick” 改为 “pillow”,如下:

anim.save(path + filename, writer='pillow', fps=60)
  • 1
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/你好赵伟/article/detail/522202
推荐阅读
相关标签
  

闽ICP备14008679号