mescla.plotting.theme.Theme

class mescla.plotting.theme.Theme(name, surface, ink, ink_secondary, ink_muted, grid, axis, series, sequential, diverging, good, warning, critical, neutral)[source]

Bases: object

A validated set of colours for one background mode.

Parameters:
name: str
surface: str
ink: str
ink_secondary: str
ink_muted: str
grid: str
axis: str
series: tuple[str, ...]

Categorical slots. The first three are all-pairs colour-vision-safe.

sequential: tuple[str, ...]

Sequential ramp, light to dark, for magnitude.

diverging: tuple[str, str, str]

eigenvector loadings, and departures that are a source at one end and a sink at the other. Validated all-pairs in both modes (CVD Delta E 21.6 light / 19.2 dark).

Type:

Diverging poles with a neutral midpoint, for signed quantities

good: str

Status colours. Always paired with a text label – never colour alone.

warning: str
critical: str
neutral: str

Neutral for the sample cloud, which is context rather than a series.

property safe_series: tuple[str, ...]

The three slots that are colour-vision-safe for every pair in a scatter.