plot_model_pdf#
- zfit.plot.plot_model_pdf(model, *, plotfunc=None, extended=None, obs=None, scale=None, ax=None, num=None, full=None, linestyle=None, plotkwargs=None)[source]#
Plot the 1 dimensional density of a model, possibly scaled by the yield if extended.
- Parameters:
model (
ZfitPDF) – An unbinned ZfitPDF.plotfunc (
Callable|None) – A plotting function that takes theaxto plot on, and x, y, and additional arguments. Default isax.plot.extended (
bool|None) – If True, plot the extended pdf. If False, plot the pdf.obs (
Union[str,Iterable[str],Space]) – The observable to plot the pdf for. If None, the model’s space is used.scale (
float|int|None) – An overall scale factor to apply to the pdf.num (
int|None) – The number of points to evaluate the pdf at. Default is 300.full (
bool|None) – If True, set the x and y labels and the legend. Default is True.linestyle – A linestyle to use for the pdf.
plotkwargs – Additional keyword arguments to pass to the plotting function.
Returns: