Provide a collection of palettes for color mapping.
Palettes are simple plain Python lists of (hex) RGB colors. This module
containts the following sets of palettes:
All Brewer palettes
Magma
Inferno
Plasma
Viridis
Every pre-built palette is available as a module attributes, e.g.
bokeh.palettes.YlGn3 or bokeh.palettes.Viridis256. The name of every
all pre-built palettes can be found in the __palettes__ module attribute.
There are functions magma(),
inferno(), plasma(),
viridis() that can generate lists of colors of arbitrary
size from those palettes.
The Brewer palettes are also collected and grouped by name in a
brewer dictionary, e.g.: brewer['Spectral'][6]
Finally, all “small” palettes (i.e. excluding the 256 color ones) are
collected and grouped similarly in a small_palettes attribute.
The complete contents of small_palettes is show below.