pyxpcm.plot.colorbar
- pyxpcm.plot.colorbar(m, cmap=None, **kwargs)[source]
Add a colorbar to the current plot with centered ticks on discrete colors
- Parameters:
- :class:`pyxpcm.models.pcm`
A PCM instance
- cmap:class:
matplotlib.colors.LinearSegmentedColormap
or :func:seaborn.color_palette
- Returns:
- :class:
matplotlib.pyplot.colorbar
- :class: