【发布时间】:2015-11-12 14:52:19
【问题描述】:
自从更新到 matplotlib 1.5.0,
matplotlib.animation.FuncAnimation(fig, func, init_func=func,
frames=frames,
interval=1100,repeat_delay=2000,
blit=True)
结果
AttributeError: 'NoneType' 对象没有属性 'set_animated'
在 matplotlib/animation.py 第 1134 行,即
TimedAnimation.__init__(self, fig, **kwargs)
我需要设置blit=False 才能继续没有错误。
无论我如何更改 fig、func 等的值,都会发生这种情况,无论如何,这些值在 1.5.0 之前都可以正常工作。
1.5.0 中是否发生了导致此问题的更改?有什么我可以继续使用blit=True 的吗?
【问题讨论】:
-
在 2.0 中仍然如此吗?
-
@Seanny123:是的。
标签: python python-2.7 matplotlib