1
我用matplotlib.animation和FuncAnimation做了一个动画。 我知道我可以将重复设置为True/False来重放动画,但是在FuncAnimation返回后还有一种重放动画的方法吗?Python matplotlib动画重复
anim = FuncAnimation(fig, update, frames= range(0,nr_samples_for_display), blit=USE_BLITTING, interval=5,repeat=False)
plt.show()
playvideo = messagebox.askyesno("What to do next?", "Play Video again?")
我可以使用动画对象来重放动画或做另一个plt.show()吗?
预先感谢你的答案 与亲切的问候, 杰拉德
完美的,我没想到还没有这种方法,但它现在最好的解决方案。谢谢! – Grard