uvex_transients.utils.summary_report.SummaryReport.plot_yields#

SummaryReport.plot_yields(mask: NDArray[bool] | None = None, fig_size: tuple[float, float] = (10, 4.5)) → Figure[source]#

Plot the expected number of events of each population as a bar chart, with both uncertainties.

The bars are ~uvex_transients.simulation.rates.estimate_yield of the rows in mask. As in plot_funnel, the black error bars are the Monte Carlo (Clopper-Pearson) uncertainty and the pale band is the rate uncertainty. A population with no events in mask gets only an upper limit.

Parameters:
  • mask (numpy.ndarray of bool, optional) – The events to count, one entry per row of the table. The default is selected; pass detected for every detection.

  • fig_size (tuple of float, optional) – Figure size in inches. The default is (10, 4.5).

Returns:

The bar chart.

Return type:

matplotlib.figure.Figure

Raises:

ValueError – If mask is not a boolean array with one entry per row.