我一直在尋找的matplotlib.animation.FuncAnimation
`save_count`參數動畫matplotlib``
的文檔在http://matplotlib.org/api/animation_api.html。
save_count
是做什麼用的?
我一直在尋找的matplotlib.animation.FuncAnimation
`save_count`參數動畫matplotlib``
的文檔在http://matplotlib.org/api/animation_api.html。
save_count
是做什麼用的?
找到此信息的一種方法是使用IPython
。例如,我在執行我的會話執行以下操作:
In [7]: from matplotlib.animation import FuncAnimation
In [8]: FuncAnimation??
這帶來了功能的文檔,這是更詳細的又是什麼張貼在網頁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
這是一般查找文檔的好方法。我希望這有幫助!
這在matplotlib source解釋,但沒有在文檔中:
framedata量保持周圍保存電影。如果我們不知道將會有多少幀:在沒有 生成器的情況下,或者在可調用的情況下,這隻用於 。
這很酷。謝謝@羅伊 –
好方法。謝謝@skywalker –