matplotlib invert colormap code example
Example: how to reverse a color in cmap
cmap = 'hot' # the color hot
cmap = 'hot_r' # the reverse of the color hot
cmap = 'hot' # the color hot
cmap = 'hot_r' # the reverse of the color hot