register_cycles
- register_cycles(*args, user=None, local=None, default=False)[source]
Register named color cycles. This is called on import.
- Parameters:
*args (
path-specorDiscreteColormap, optional) – The color cycles to register. These can be file paths containing RGB data orDiscreteColormapinstances. By default, if positional arguments are passed, thenuseris set toFalse.Valid file extensions are listed in the below table. Note that color cycles are registered according to their filenames – for example,
name.xyzwill be registered as'name'.Extension
Description
.hexComma-delimited list of HEX strings.
.rgb,.txt3-4 column table of channel values.
user (
bool, optional) – Whether to reload color cycles fromuser_folder. Default isFalseif positional arguments were passed andTrueotherwise.local (
bool, optional) – Whether to reload color cycles fromlocal_folders. Default isFalseif positional arguments were passed andTrueotherwise.default (
bool, default:False) – Whether to reload the default color cycles packaged with ultraplot. Default is alwaysFalse.