import matplotlib.pyplot as plt
import numpy as np
img1 = np.load('abc.npy')
img2 = np.load('xyz.npy')
fig, ax = plt.subplots()
ax.imshow(img1)
ax.imshow(img2, alpha = 0.1)
I want to merge two numpy arrays to a single image using matplotlib. This piece of code just shows the last image img2. How can I create a image where img1 and img2 are overlaid.