PlotFunction¶
- class probly.plot.PlotFunction(*args, **kwargs)[source]¶
Bases:
Protocol[DataT_contra]Protocol for typed, composable plotting functions.
Implementations must accept the data as the first positional-only argument, followed by keyword-only arguments for title, config, and show. Each implementation is responsible for creating its own figure and axes internally.
- __call__(data: DataT_contra, *, title: str | None = None, config: PlotConfig | None = None, show: bool = False) Axes[source]¶
A callable plotting function.
- Parameters:
data – The data to plot (positional-only; implementations may use any name).
title – Title of the plot.
config – Configuration for plotting.
show – Whether to call plt.show() after plotting.