问题遇到的现象和发生背景
想绘制一个竞赛图,但是显示不出来,animator = animation.FuncAnimation(fig, draw_bar, frames=time())
draw_bar是制图函数
frames那里传值只能是整形么
问题相关代码,请勿粘贴截图
fig, ax = plt.subplots(figsize=(15, 8))
animator = animation.FuncAnimation(fig, draw_bar, frames=time())
HTML(animator.to_jshtml())
运行结果及报错内容
我想要达到的结果
绘制出一个柱形竞赛图