LinearSegmentedColormap.save¶
-
LinearSegmentedColormap.save(path=None)[source]¶ Saves the colormap data to a file.
- Parameters
path (str, optional) – The output filename. If not provided, the colormap is saved under
~/.proplot/cmaps/name.jsonwherenameis the colormap name. Valid extensions are described in the below table.Extension
Description
.json(default)JSON database of the channel segment data.
.hexComma-delimited list of HEX strings.
.rgb,.txt3-column table of comma-delimited RGB values.
.rgbaAs with
.rgb, but with an opacity (or “alpha”) column.