Skip to content

plot

plot

Plotter(model_cls: Optional[Type[Any]] = None, save: bool = False, save_dir: Optional[Path] = None)

plot(plot_fn: Callable[[], Dict[str, Any]], step: int) -> None

Submit an arbitrary plot function to be executed in the worker thread.

The callable is invoked on the worker thread where matplotlib is initialized and apply_theme() has already been called.

submit(intermediates: Any, step: int) -> None

Submit model intermediates for plotting (legacy API).

No-op when model_cls is None (model has no plot() override).

apply_theme(context: str = 'paper', font_scale: float = 1.35, palette: Optional[List[str]] = None, axes: Any = None) -> None

Apply theme globally.

Parameters

context : seaborn context string font_scale : font scale multiplier palette : list of hex colours; defaults to muted Jemoka palette axes : Axes or array of Axes to label (a), (b), (c)...