inverse colorbar code example Example: how to reverse a color in cmap cmap = 'hot' # the color hot cmap = 'hot_r' # the reverse of the color hot