demo
import matplotlib.pyplot as plt
fig=plt.figure()
ax=fig.add_subplot(221)
ax.imshow(img1)
ax=fig.add_subplot(222)
ax.imshow(img2)
ax.fig.add_subplot(223)
ax.show(img)
demo
import matplotlib.pyplot as plt
fig=plt.figure()
ax=fig.add_subplot(221)
ax.imshow(img1)
ax=fig.add_subplot(222)
ax.imshow(img2)
ax.fig.add_subplot(223)
ax.show(img)