'mkdocstrings-python', 'natsort', ] test_min = ["pytest>=6.0"] test = ["cmap[test_min]", "pytest-cov"] test_thirdparty = [ "cmap[test]", "bokeh", "colorspacious", "colour", "matplotlib", "napari>=0.4.19; python_version<'3.13'", ...
def list_of_hex_colours(N, base_cmap): """ Return a list of colors from a colourmap as hex codes Arguments: cmap: colormap instance, eg. cm.jet. N: number of colors. Author: FJC """ cmap = _cm.get_cmap(base_cmap, N) hex_codes = [] for i in range(cmap.N): rgb = cma...
def list_of_hex_colours(N, base_cmap): """ Return a list of colors from a colourmap as hex codes Arguments: cmap: colormap instance, eg. cm.jet. N: number of colors. Author: FJC """ cmap = _cm.get_cmap(base_cmap, N) hex_codes = [] for i in range(cmap.N): rgb = cma...