register_cmaps¶
- register_cmaps(user=True, default=False)[source]¶
Register colormaps packaged with ProPlot or saved to the
~/.proplot/cmapsfolder. This is called on import. Colormaps are registered according to their filenames – for example,name.xyzwill be registered as'name'.Valid file extensions are as follows:
Extension
Description
.hexList of HEX strings in any format (comma-separated, separate lines, with double quotes… anything goes).
.xmlXML files with
<Point .../>tags specifyingx,r,g,b, and (optionally)oparameters, wherexis the coordinate and the rest are the red, blue, green, and opacity channel values..rgb,.txt3-4 column table of red, blue, green, and (optionally) opacity channel values, delimited by commas or spaces. If values larger than 1 are detected, they are assumed to be on the 0-255 scale and are divided by 255.
To visualize the registered colormaps, use
show_cmaps.- Parameters
user (bool, optional) – Whether to reload user colormaps. Default is
True.default (bool, optional) – Whether to reload default proplot colormaps. Default is
False.