Saves the colormap data to a file.


path (str, optional) – The output filename. If not provided, the colormap is saved under ~/.proplot/cmaps/name.json where name is the colormap name. Valid extensions are described in the below table.



.json (default)

JSON database of the channel segment data.


Comma-delimited list of HEX strings.

.rgb, .txt

3-column table of comma-delimited RGB values.


As with .rgb, but with an opacity (or “alpha”) column.