tausurv.plot.style
Named plotting styles for tausurv.
Four styles, opt-in:
publication— single-column journal default. Compact, restrained.presentation— slides and posters. Larger fonts, thicker lines.notebook— interactive analysis. Matplotlib defaults plus the Okabe-Ito palette and minor spine/grid cleanup.minimal— spineless, gridless. For embedding in mixed-media reports where surrounding context provides axes.
Apply with set_style(name) for a session-wide change or style_context(name)
as a scoped context manager. Both accept a palette name override.
Reference
Section titled “Reference”set_style function
Section titled “set_style ”set_style(name: StyleName = 'publication', palette: PaletteName = 'okabe_ito', **overrides) -> NoneApply a named tausurv style globally.
Parameters
Section titled “Parameters”name— minimal — Style preset.palette— tol_muted — Categorical palette drivingaxes.prop_cycle.**overrides— Additional rcParam keys, applied last.
Mutates matplotlib.rcParams for the active session. Use
style_context for a scoped alternative.
style_context function
Section titled “style_context ”style_context(name: StyleName = 'publication', palette: PaletteName = 'okabe_ito', **overrides) -> AbstractContextManager[None]Return a context manager scoping a tausurv style to a with block.
Parameters
Section titled “Parameters”name— minimalpalette— tol_muted**overrides— Additional rcParam keys, applied last.
Examples
Section titled “Examples”with ts.plot.style_context(“presentation”): … fig, ax = plt.subplots() … ax.plot(t, S)