Below is my code, as mentioned above.
import ultraplot as uplt
cmap = uplt.Colormap("plasma_r")
fig, ax = uplt.subplots()
for i, loc in enumerate(['b', 'l', 'r', 't']):
ax.colorbar(cmap, loc=loc, label="label", labelloc="right", labelrotation=90 * i)
uplt.show(block=1)