How to animate a heatmap in Plotly
问题 The Plotly documentation on heatmap animation is pretty difficult to understand. Could someone explain how to animate a heatmap? Here is my specific example. import numpy as np from plotly.offline import download_plotlyjs, init_notebook_mode, plot, iplot import plotly.graph_objs as go init_notebook_mode(connected=True) x = np.linspace(0, 1, 200) y = np.linspace(0, 1, 200) xx, yy = np.meshgrid(x, y) def plane_wave(phase): return np.sin(8*np.pi * (xx - phase)) zz = plane_wave(0) trace = go