I know how to plot a single numpy array
import matplotlib.pyplot as plt
plt.imshow(np.array)
But is there any way to plot multiple numpy array in one figure? I know plt.subplots()
can display multiple pictures. But it seems hard in my case. I have tried to use a for
loop.
fig, ax = plt.subplots()
for i in range(10):
ax.imshow(np.array) # i_th numpy array
This seems to plot a single numpy array one by one. Is there any ways to plot all my 10 numpy arrays in one figure?
PS: Here each my 2d numpy array represents the pixel of a picture. plot
seems to plot lines which is not suitable in my case.