I have a 3D numpy array x of size (100,64,64) where it contains 100 consecutive 64 by 64 2D array. I want to create a video of the heat maps of these 100 different matrices. How can I do this I python?
I know that I can create each heat map image by the following code:
figure, axes = plt.subplots()
c = axes.pcolormesh(x[i])
figure.colorbar(c)
plt.show()
where i is a number between 0 and 99. How can I create a video from these 100 consecutive images?