I would like to ask how can i stream the z axis of a heatmap using a function for the update.
I suppose i should use the extendTraces. But since the z axis is a two dimensional array, I am a little confused of what the function should return.
Is there an example of a heatmap streaming the z axis?
something like:
function rand() {
return Math.random();
}
return Plotly.extendTraces(gd, {
z: [[[rand()]]]
}, [0])
But this is not working. What is the correct way to do it?