tud_lbm.io.plotting.base
Abstract base class for plot operators.
Classes
Base class for a single-panel plotting operator. |
|
Base class for analysis plots computed from saved snapshot history. |
Module Contents
- class tud_lbm.io.plotting.base.PlotOperator(config: tud_lbm.config.SimulationConfig, data_dir: str | pathlib.Path | None = None)[source]
Bases:
abc.ABCBase class for a single-panel plotting operator.
- class tud_lbm.io.plotting.base.AnalysisPlot(config: tud_lbm.config.SimulationConfig | None = None)[source]
Bases:
abc.ABCBase class for analysis plots computed from saved snapshot history.
- abstractmethod compute(files: list[pathlib.Path]) dict[str, numpy.ndarray][source]
Compute time-series arrays from snapshot files.
- abstractmethod render(ax: matplotlib.axes.Axes, precomputed: dict[str, numpy.ndarray]) None[source]
Render the full analysis plot from precomputed arrays.
- abstractmethod render_figure(files: list[pathlib.Path]) matplotlib.figure.Figure[source]
Build and return a complete standalone figure.
Only called when
is_multi_panelis True; overrides the compute()/render(ax) flow used by single-panel analysis plots.
- prime(files: list[pathlib.Path]) None[source]
Cache axis limits from the full dataset so animation frames use fixed axes.
- update(ax: matplotlib.axes.Axes, files: list[pathlib.Path]) None[source]
Render a prefix of snapshot files with fixed (primed) axis limits.