AbstractStaticdivergingCreates a Diverging scale centered on a neutral value.
Maps [min, center] -> 0.0-0.5 and [center, max] -> 0.5-1.0.
Useful when the domain is not symmetric (e.g. -10 to +50, center 0).
The data domain [min, center, max].
A diverging interpolator (e.g. DataViz.diverging(...)).
StaticlinearCreates a Linear scale. Maps the domain [min, max] linearly to the interpolator [0, 1].
The data domain [min, max].
The color function (e.g. DataViz.sequential('viridis')).
A function that takes a data value and returns a Color.
StaticlogCreates a Logarithmic scale. Useful for data with exponential distribution (e.g. population density, earthquake magnitude).
The data domain [min, max]. Both must be > 0.
The color function.
StaticpowerCreates a Power scale (e.g. Sqrt). Useful for balancing data sets. Sqrt (exponent=0.5) is visually distinct.
The data domain [min, max].
The color function.
The exponent (default 0.5 for Square Root).
Utilities to map arbitrary data domains to color scales. Bridges the gap between raw data (e.g. temperature -20 to 40) and normalized color interpolators (0 to 1).