, alpha=True)[source]

Save the colormap data to a file.

  • path (path-like, optional) – The output filename. If not provided, the colormap is saved in the cmaps subfolder in user_folder under the filename name.json (where name is the colormap name). Valid extensions are shown in the below table.




    JSON database of the channel segment data.


    Comma-delimited list of HEX strings.

    .rgb, .txt

    3-4 column table of channel values.

  • alpha (bool, optional) – Whether to include an opacity column for .rgb and .txt files.