I am doing some image processing in Python and I would like to plot 4 images (they are all 224x224x3 np arrays) in one figure, add some titles and save the whole figure as png.
Obviously, I can do this using plt and subplot:
f, axs = plt.subplots(2, 2)
ax = axs[0, 0]
ax.imshow(img1)
ax.axis('off')
ax.set_title('original')
ax = axs[1, 0]
ax.imshow(img2)
ax.axis('off')
ax.set_title('blur + noise')
ax = axs[0, 1]
ax.imshow(img3)
ax.axis('off')
ax.set_title('restored a')
ax = axs[1, 1]
ax.imshow(img4)
ax.axis('off')
ax.set_title('restored b')
However this will apply scaling to the different images and I would like to display the images in their original resolution without any interpolation being applied. Is there any way to achieve this behaviour in plt? I found some other thread that asked a similar question, however it only answers how to display one single image without scaling.
Thanks for your help, Max