Skip to content
colormaps

colormaps

Mojo module 🡭

colormaps

Perceptually uniform sequential colormaps.

Each function returns a List[Color] for Theme.color_ramp, which ColorScale.from_theme spreads evenly over [0, 1]:

from dataviz.core.colormaps import viridis
from dataviz.core.theme import Theme

var theme = Theme(color_ramp=viridis())

Each map contains 64 stops sampled from matplotlib’s CC0 tables.

Functions