I have an array of shape (7,4,100,100) which means 7 images of size 100x100 with depth 4. I want to display all of them on a single plot. I tried following using matplotlib:
input_arr=numpy.load(r'C:\Users\x\samples.npy')
for i, el in enumerate(input_arr):
#moving axis to use plt: i.e [4,100,100] to [100,100,4]
array2= numpy.moveaxis(input_arr[i],0,-1)
plt.subplot(3,3, i + 1), plt.imshow(array2[i])
plt.show()
But it squeezes the images in the plot as shown in the figure below where image at left is a single image and other one is the plot of multiple images. any solution or any other approach?

input_arrplt.subplot(3, 3, i+1)instead.