pyxpcm.plot.cmap

pyxpcm.plot.cmap(m, name, palette=False, usage='class')[source]

Return categorical colormaps

Parameters:
namestr

Name of the colormap, ex: ‘Set2’

palettebool

Whether to return a Seaborn color palette or not.

  • False (default): function returns a :class:matplotlib.colors.LinearSegmentedColormap

  • True: function returns a :func:seaborn.color_palette

usagestr
The intended usage of the colormap, this can be:
  • ‘class’ (default): one color per class

  • ‘robustness’ : a 5-colors for probability ranges

Returns:
:class:matplotlib.colors.LinearSegmentedColormap or :func:seaborn.color_palette