I'm trying to animate a numpy array using matplotlib:
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.animation as animation
arr = []
for i in range(100):
c = np.random.rand(10, 10)
arr.append(c)
plt.imshow(arr[45])
I don't get it how I should animate an array like this: https://matplotlib.org/examples/animation/dynamic_image.html