discontinuum.plot#
Plotting functions
Classes
Mixin plotting functions for Model class |
- class discontinuum.plot.BasePlotMixin#
Mixin plotting functions for Model class
- plot(covariates: Dataset, ci: float = 0.95, x: str | None = None, ax: Axes | None = None)#
Plot predicted data.
- Parameters:
covariates (Dataset) – Covariates.
ci (float, optional) – Confidence interval. The default is 0.95.
x (str, optional) – The coordinate to plot on the x axis.
ax (Axes, optional) – Pre-defined matplotlib axes.
- Returns:
ax – Generated matplotlib axes.
- Return type:
Axes
- plot_observations(ax: Axes | None = None, **kwargs)#
Plot observations.
- Parameters:
ax (Axes, optional) – Pre-defined matplotlib axes.
- Returns:
ax – Generated matplotlib axes.
- Return type:
Axes
- static setup_plot(ax: Axes | None = None)#
Sets up figure and axes for plot.
- Parameters:
ax (Axes, optional) – Pre-defined matplotlib axes.
- Returns:
ax – Generated matplotlib axes.
- Return type:
Axes