cmap = mpl.cm.jet
cmap_r = reverse_colourmap(cmap)
fig = plt.figure(figsize=(8, 2))
ax1 = fig.add_axes([0.05, 0.8, 0.9, 0.15])
ax2 = fig.add_axes([0.05, 0.475, 0.9, 0.15])
norm = mpl.colors.Normalize(vmin=0, vmax=1)
cb1 = mpl.colorbar.ColorbarBase(ax1, cmap=cmap, norm=norm, orientation=
    'horizontal')
cb2 = mpl.colorbar.ColorbarBase(ax2, cmap=cmap_r, norm=norm, orientation=
    'horizontal')
Инвертировать палитру в matplotlib