pyxpcm.plot.cmap

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

Return categorical colormaps

Parameters:
name : str

Name of the colormap, ex: ‘Set2’

palette : bool

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
usage : str
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