`save_count` 参数动画 matplotlib``

Abh*_*thi 5 python animation matplotlib

我正在查看的文档matplotlib.animation.FuncAnimation

http://matplotlib.org/api/animation_api.html

有什么save_count作用?

wgw*_*gwz 2

查找此信息的一种方法是使用IPython. 例如,我在会话中执行了以下操作:

In [7]: from matplotlib.animation import FuncAnimation
In [8]: FuncAnimation??
Run Code Online (Sandbox Code Playgroud)

这会显示函数文档,该文档比 Web api 上发布的内容更详细。

    # Amount of framedata to keep around for saving movies. This is only
    # used if we don't know how many frames there will be: in the case
    # of no generator or in the case of a callable.
    self.save_count = save_count
Run Code Online (Sandbox Code Playgroud)

这是查找一般文档的好方法。我希望这有帮助!