I have some trouble to animate a 2D Array:
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 to animate this array like this: https://matplotlib.org/examples/animation/dynamic_image.html
Thanks have a nice weekend.