invert colormap python code example Example: python invert colormap cmap_reversed = matplotlib.cm.get_cmap('autumn_r')