ListedColormap.save¶
-
ListedColormap.
save
(path=None)[source]¶ Save the colormap data to a file.
- Parameters
path (str, optional) – The output filename. If not provided, the colormap is saved under
~/.proplot/cycles/name.hex
wherename
is the colormap name. Valid extensions are described in the below table.Extension
Description
.hex
(default)Comma-delimited list of HEX strings.
.rgb
,.txt
3-column table of comma-delimited RGB values.
.rgba
As with
.rgb
, but with an opacity (or “alpha”) column.