matplotlib.pyplot.get_cmap#
- matplotlib.pyplot.get_cmap(name=None, lut=None)[source]#
 Get a colormap instance, defaulting to rc values if name is None.
- Parameters:
 - name
Colormapor str or None, default: None If a
Colormapinstance, it will be returned. Otherwise, the name of a colormap known to Matplotlib, which will be resampled by lut. The default, None, meansrcParams["image.cmap"](default:'viridis').- lutint or None, default: None
 If name is not already a Colormap instance and lut is not None, the colormap will be resampled to have lut entries in the lookup table.
- name
 - Returns:
 - Colormap