dotools_py.utility.get_hex_colormaps

dotools_py.utility.get_hex_colormaps#

dotools_py.utility.get_hex_colormaps(colormap)[source]#

Get a list with Hexa IDs for a colormap.

Parameters:
colormap str

colormap name.

Return type:

list

Returns:

list with Hexa IDs.

Example

>>> import dotools_py as do
>>> hex_list = do.utility.get_hex_colormaps("Reds")
>>> hex_list[:5]
['#fff5f0', '#fff4ef', '#fff4ee', '#fff3ed', '#fff2ec']