【发布时间】:2014-08-06 13:15:53
【问题描述】:
我正在尝试使用animation.FuncAnimation 制作最简单的matplotlib 动画。我不在乎效率。我不想跟踪绘制的线并更新它们的数据(在我想要的应用程序中这会很烦人),我只是想在为每一帧设置动画之前擦除绘图。我认为这样的事情应该可以工作,但它不是..
import matplotlib.animation as animation
fig = Figure()
def updatefig(i):
clf()
p = plot(rand(100))
draw()
anim = animation.FuncAnimation(fig, updatefig, range(10))
【问题讨论】:
标签: python animation matplotlib