I'm using matplotlib to overlay images and show them, and it works great. Yet, how can I save this image to file instead of showing it?
plt.figure(figsize=(15,15))
plt.imshow(image_A, cmap='Reds', interpolation ='nearest', origin ='lower')
plt.imshow(image_B, cmap='Purples', interpolation ='nearest', origin ='lower', alpha=0.5)
Comment: since I need to save an overlayed (merged) image and not a single image imsave does not work for me.
Thanks!