ExperimentDesigner.plot_saturation_curve#
- ExperimentDesigner.plot_saturation_curve(channel, n_samples=500, spend_levels=None, ax=None, color=None, figsize=None)[source]#
Plot the saturation curve with posterior uncertainty.
Shows the posterior mean curve with a 94% HDI band.
- Parameters:
- channel
str Channel name.
- n_samples
int Number of posterior draws to subsample for the HDI band.
- spend_levels
list[float] |None Optional fractional spend levels to mark. E.g.
[0.2, 0.5]marks +20% and +50% of current spend.- ax
matplotlib.axes.Axes|None Pre-existing axes to draw on. If
Nonea new figure is created.- color
str|None Matplotlib color for this channel’s curve and band. Falls back to
"C0"whenNone.- figsize
tuple[float,float] |None (width, height)when creating a new figure. Defaults to(10, 4).
- channel
- Returns:
tuple[Figure,Axes]