plot_samples#
- pymc_marketing.mmm.plot.plot_samples(curve, non_grid_names, n=10, rng=None, axes=None, subplot_kwargs=None, plot_kwargs=None)[source]#
Plot n samples of the curve across coords.
- Parameters:
- curve
xr.DataArray
Curve to plot
- non_grid_names
set
[str
] The names to exclude from the grid. chain and draw are excluded automatically
- n
int
, optional Number of samples to plot
- rng
np.random.Generator
, optional Random number generator
- axes
npt.NDArray
[plt.Axes
], optional Axes to plot on
- subplot_kwargs
dict
, optional Additional kwargs to while creating the fig and axes
- plot_kwargs
dict
, optional Kwargs for the plot function
- curve
- Returns:
tuple
[plt.Figure
,npt.NDArray
[plt.Axes
]]Figure and the axes