Overview#

Here is a quick presentation of the colorsets and colormaps available. For details on how and when to use them, see the dedicated pages.

Colorsets#

Note

More details at Colorsets.

These are various sets of colors that can be used for lines, markers, qualitative maps, etc. All colorsets are given as named tuples. You can then access the colors by index or by name:

>>> cset = tc.bright
>>> cset.blue
'#4477AA'

Each colorset is available as a module attribute (tc.bright) and in the dictionnary tol_colors.colorsets. This is a special mapping that will accepts both hyphen and underscore versions (tc.colorsets["high-contrast"] and tc.colorsets["high_contrast"] will both work).

_images/csets_condensed.svg

Note

An additional set land-cover (not shown above) is available for global land classification.

Colormaps#

Note

More details at Colormaps.

Colormaps are available as module attributes (tc.sunset), stored in a dictionnary tol_colors.colormaps (tc.colormaps["sunset"]), and registered in Matplotlib with the prefix “tol.” (plt.imshow(..., cmap="tol.sunset")). Reversed variants are available by appending “_r” to the colormap name.

A discrete rainbow colormap is available by specifying the number of colors between 1 and 23 (tc.get_colormap("rainbow_discrete", n_colors=14)).

_images/cmaps_condensed.svg