import numpy as np
import ultraplot as uplt

data = np.linspace(0, 1, 200).reshape(20, 10)
fig, axs = uplt.subplots(ncols = 2)
for idx, ax in enumerate(np.ravel(axs), start=1):
   m = ax.imshow(data * idx)
   fig.colorbar(m, ax=ax, loc="r", width="6mm")
axs.format(title=["Left", "Right"])