rockverse.dect.DECTGroup.view_pdfs#

DECTGroup.view_pdfs(figsize=(8, 9), bins=30, percentile_interval=(0.1, 99.9), plot_pdfs=True, plot_cdfs=True)[source]#

Convenience function for visualizing the probability density functions (PDFs) and cumulative density functions (CDFs) of calibration materials.

Parameters:
  • figsize (tuple of float, optional) – Size of the figure in inches, specified as (width, height). Default is (8, 9).

  • bins (int, optional) – Number of bins used to create histograms for Monte Carlo PDFs. Default is 30.

  • percentile_interval (tuple of float, optional) – Percentile interval to adjust the x-axis limits, specified as (percentile_min, percentile_max). Default is (0.1, 99.9).

  • plot_pdfs (bool, optional) – If True, the PDFs will be plotted on the graphs. Default is True.

  • plot_cdfs (bool, optional) – If True, the CDFs will be plotted on the graphs. Default is True.

Returns:

  • fig (matplotlib.figure.Figure) – The Figure object containing the generated plots.

  • axes (dict) – A dictionary containing the plot axes: - ‘ax_pdf’: The axes for the PDFs. - ‘ax_cdf’: The axes for the CDFs. - ‘ax_legend’: The axis containing the legend.

Examples

To visualize the PDFs and CDFs of the calibration materials:

>>> dectgroup.view_pdfs()

To customize the number of bins and disable the CDF plots:

>>> dectgroup.view_pdfs(bins=50, plot_cdfs=False)