import matplotlib.pyplot as plt
import numpy as np

data = np.linspace(0, 1, 200).reshape(20, 10)
fig, axs = plt.subplots(1, 2)
for i in range(2):
   m = axs[i].imshow(data * (i + 1), aspect="auto")
   axs[i].set_title("Left" if i == 0 else "Right")
   if i == 0:
      fig.colorbar(m, ax=axs[i])