【问题标题】:`save_count` parameter animation matplotlib```save_count` 参数动画 matplotlib `
【发布时间】:2015-10-16 15:46:29
【问题描述】:

我在看matplotlib.animation.FuncAnimation的文档

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

save_count 是做什么的?

【问题讨论】:

    标签: python animation matplotlib


    【解决方案1】:

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

    In [7]: from matplotlib.animation import FuncAnimation
    In [8]: FuncAnimation??
    

    这带来了函数文档,比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
    

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

    【讨论】:

    • 不错的方式。谢谢@skywalker
    • 或者在python shell中help(FuncAnimation)
    【解决方案2】:

    matplotlib source 对此进行了解释,但文档中没有:

    为保存电影而保留的帧数据量。这只是 如果我们不知道会有多少帧,则使用:在没有的情况下 生成器或在可调用的情况下。

    【讨论】:

      猜你喜欢
      • 2014-01-08
      • 1970-01-01
      • 1970-01-01
      • 2021-02-01
      • 2018-10-29
      • 2016-11-26
      • 1970-01-01
      • 2021-01-09
      • 1970-01-01
      相关资源
      最近更新 更多