sidpy.viz.plot_utils.cmap.get_cmap_object

sidpy.viz.plot_utils.cmap.get_cmap_object(cmap)[source]

Get the matplotlib.colors.LinearSegmentedColormap object regardless of the input

Parameters:

cmap (String, or matplotlib.colors.LinearSegmentedColormap object (Optional)) – Requested color map

Returns:

cmap – Requested / Default colormap object

Return type:

matplotlib.colors.LinearSegmentedColormap object