I have got couple of images stored as an array using cv2.imread from the folder. I want to now display couple of images from the folder using subplots. Here is what I tried
w=10
h=10
fig=plt.figure(figsize=(8, 8))
columns = 4
rows = 5
for i in range(1, columns*rows +1):
img = malaria_images[i]
fig.add_subplot(rows, columns, i)
plt.imshow(img)
plt.show()
The result however looks like this. I am not sure where I went wrong . Any help would be appreciated. Thank you

plt.imshow