uvex_transients.utils.summary_report.SummaryReport.plot_detection_counts#

SummaryReport.plot_detection_counts(groups: Mapping[str, Sequence[str]] | None = None, mask: NDArray[bool] | None = None, max_detections: int = 100, fig_size: tuple[float, float] = (11, 7)) → Figure[source]#

Plot the percentage of events detected at least \(N\) times, one panel per group of populations.

This is how repeatable the detections are. An event detected once is a snapshot, while one detected many times has a light curve to work with.

Parameters:
  • groups (Mapping of str to Sequence of str, optional) – The populations in each panel, by populations key. Populations that are not being reported are skipped. The default is POPULATION_GROUPS.

  • mask (numpy.ndarray of bool, optional) – The events to count, one entry per row of the table. The default is selected.

  • max_detections (int, optional) – The largest \(N\) on the x axis. The default is 100.

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

Returns:

The panels, two to a row.

Return type:

matplotlib.figure.Figure

Raises:

ValueError – If mask is not a boolean array with one entry per row, or groups has none of the reported populations.