def plot_animated_heatmap(windows, title, ax_props=None, more_props=None):
fig, im, footer = plot_heatmap(windows[0], title, ax_props, more_props)
axes = fig.get_axes()
ax1, ax2 = axes
redraws = [im, footer, ax1.xaxis, ax1.yaxis, ax2.xaxis, ax2.yaxis]
anim = animation.FuncAnimation(
fig,
update_animated_heatmap,
frames=windows,
fargs=(more_props['name'], axes, im, footer, redraws),
interval=250,
blit=True,
)
return anim,
评论列表
文章目录