plot_samples#

pymc_marketing.plot.plot_samples(curve, non_grid_names, n=10, rng=None, axes=None, subplot_kwargs=None, plot_kwargs=None, same_axes=False, colors=None, legend=False, sel_to_string=None)[source]#

Plot n samples of the curve across coords.

Parameters:
curvexr.DataArray

Curve to plot

non_grid_namesstr | set[str]

The names to exclude from the grid. chain and draw are excluded automatically

nint, optional

Number of samples to plot

rngnp.random.Generator, optional

Random number generator

axesnpt.NDArray[plt.Axes], optional

Axes to plot on

subplot_kwargsdict, optional

Additional kwargs to while creating the fig and axes

plot_kwargsdict, optional

Kwargs for the plot function

same_axesbool

All of the plots in the same axis

Returns:
tuple[plt.Figure, npt.NDArray[plt.Axes]]

Figure and the axes