envtoolkit.colors

Functions/classes relative to colors.

Functions

make_boundary_norm(ncolors, boundaries)

Normalisation of colormaps for “discrete” mapping.

make_percentile_cmap(array, perc)

Returns colormaps limits using percentiles.

subspan_default_cmap(cmapname, nbcol)

Function that allows to generate a colormap containing nbcol colors from the default colormap data mapping dictionnaries (cf the datad dictionnary in the matplotlib._cm module)

Classes

FancyCmap(input_cmap[, smooth, reverse, …])

Class for generating fancy colormaps.