tools
Plotting tools for visualization
General Attributes and Methods
- IceAdvect.tools.from_cpt(filename, use_extremes=True, **kwargs)[source]
Reads GMT color palette table files and registers the colormap to be recognizable by
plt.cm.get_cmap()Can import HSV (hue-saturation-value) or RGB values
- Parameters:
- filename: str
color palette table file
- use_extremes: bool, default True
use the under, over and bad values from the cpt file
- kwargs: dict
optional arguments for LinearSegmentedColormap