register_cmaps¶
-
register_cmaps()[source]¶ Add colormaps packaged with ProPlot or saved to the
~/.proplot/cmapsfolder. This is called on import. Maps are registered according to their filenames – for example,name.xyzwill be registered as'name'.This is called on import. Use
show_cmapsto generate a table of the registered colormapsValid extensions are listed in the below table.
Extension
Description
.hexList of HEX strings in any format (comma-separated, separate lines, with double quotes… anything goes).
.xmlXML files with
<Point .../>entries specifyingx,r,g,b, and optionally,avalues, wherexis the colormap coordinate and the rest are the RGB and opacity (or “alpha”) values..rgb3-column table delimited by commas or consecutive spaces, each column indicating red, blue and green color values.
.xrgbAs with
.rgb, but with 4 columns. The first column indicates the colormap coordinate..rgba,.xrgbaAs with
.rgb,.xrgb, but with a trailing opacity (or “alpha”) column.