Heatmap animation stops after pausing

I have a figure with a mix of Heatmaps, and 3D plots. I also have play and pause buttons which control the animations. When I pause the animations once and press play, all the 3D surface plots continue but heatmaps don’t change. If I don’t press pause, the heatmaps continue to update.

Any idea what might be the cause of this?


@lordlycastle In order to express an opinion I have to see your code, because you can animate the subplots in two ways: either simultaneously or alternately. Please paste here the code for updatemenus, too.

Here is the animations and updatemenus code.

I think I would like them to update simultaneously. What’s the difference in both modes?

Here is an example where the two subplots are animated successively: http://nbviewer.jupyter.org/gist/empet/b3022ffccdddf80a9ad5589f66573f14. Notice how some frames update the traces [0,1] and other the traces [2,3].

Here the subplots are animated simultaneously: https://plot.ly/~empet/14189. Inspect the code https://plot.ly/~empet/14189#code, choosing Python from the dropdown menu,
to see that the frames are defined such that frames[k][‘data’] contains 4 dicts that update the traces [0,1,2,3]

@empet I’ve added the traces key but the heatmaps still don’t update after pausing.

I’ve added the full code.

Try to set redraw=True in the two dicts with label ‘Play’ and ‘Pause’ in the list buttons, inserted in updatemenus (always when you animate heatmaps or contour plots redraw must be True, not False, as in the case of any other trace type) .

I didn’t run your code because its copy-and-paste led to the insertion of non-unicode characters.