Matplotlib animations - how to export them to a format to use in a presentation?

后端 未结 2 389
执念已碎
执念已碎 2020-12-30 15:09

So, I learned how to make cute little animations in matplotlib. For example, this:

import numpy as np
import matplotlib
import matplotlib.pyplot as plt

plt.         


        
2条回答
  •  悲&欢浪女
    2020-12-30 15:20

    In short, no there is no other way besides using an external tool. There is a new module in 1.1.0 that helps you do animations and save them to mpeg4 format. It uses an external tool to automatically do this conversion, from many frames to a single movie. You can make your gif using imagemagick's convert or use ffmpeg or mencoder, which are the two options provided by the new animation module.

提交回复
热议问题