otter.plotting.set_style

otter.plotting.set_style(profile: str = 'docs', palette: str = 'nature', figsize: str | Sequence[float] | None = None) None[source]

Apply the Otter style globally to subsequent Matplotlib figures.

Library and Sphinx-Gallery code should generally prefer style_context(), which cannot leak settings to unrelated figures.

Examples using set_style

Carbon structure factors: Otter PA-HNC and DFT-MD

Carbon structure factors: Otter PA-HNC and DFT-MD

Polypropylene (PP/CH2): HNC versus same-potential MD

Polypropylene (PP/CH2): HNC versus same-potential MD

Two-temperature aluminium: Johnson et al. (2025)

Two-temperature aluminium: Johnson et al. (2025)

Equilibrium aluminium structure factors: Schörner et al. (2022)

Equilibrium aluminium structure factors: Schörner et al. (2022)

Single-species Starrett–Saumon ion-structure benchmarks

Single-species Starrett--Saumon ion-structure benchmarks