DiscreteColormap.from_file¶
- classmethod DiscreteColormap.from_file(path, *, warn_on_failure=False)[source]¶
Load color cycle from a file.
- Parameters
path (path-like) – The file path. Valid file extensions are shown in the below table.
Extension
Description
.hexComma-delimited list of HEX strings.
.rgb,.txt3-4 column table of channel values.
warn_on_failure (
bool, optional) – IfTrue, issue a warning when loading fails instead of raising an error.
See also