plot_model_pdfV1#
- zfit.plot.plot_model_pdfV1(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 the
axto 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 (ztyping.ObsTypeInput) – 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.
ax (plt.Axes | None) – A matplotlib Axes object to plot on.
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: