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 (Optional[Callable]) – A plotting function that takes the ax to plot on, and x, y, and additional arguments. Default is ax.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.

  • ax (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: