uvex_transients.phase_space.plotting.map.plot_map#

uvex_transients.phase_space.plotting.map.plot_map(grid: Table, points: Table, path: str | Path | None = None, title: str | None = None, overlays: Sequence[Table] | None = None, show_points: bool = False, reference_rate: Quantity | None = None, reference_label: str = 'local CCSN rate')[source]#

Draw the recovery fraction, the all-sky efficiency, the rate needed to recover one event, and the uncertainty.

The third panel is the volumetric rate at which the survey would recover one event on average, as a fraction of a reference rate, \(1/(f\,\mathcal V T\,R_\mathrm{ref})\): a class at least that fraction as common as the reference yields an event, so the lower the number the better the survey does there. If the table has expected_recoveries, its contours are drawn on that panel.

Parameters:
  • grid (astropy.table.Table) – The output of grid_table().

  • points (astropy.table.Table) – The measured points (table).

  • path (str or pathlib.Path, optional) – Where to write the figure. If omitted, the figure is not saved.

  • title (str, optional) – A suptitle.

  • overlays (sequence of astropy.table.Table, optional) – Measurements of populations to shade on the map, as returned by measure_class(). Each is the smallest region holding 68% of its draws, in its own colour, named in a legend.

  • show_points (bool, optional) – Whether to mark the simulated points, as circles that grow with the number of events simulated.

  • reference_rate (Quantity, optional) – The rate the third panel is relative to, in events per volume per time. By default the local core-collapse supernova rate, core_collapse_rate_coefficient().

  • reference_label (str, optional) – What to call the reference rate in the colour bar.

Returns:

The figure, left open so that it can be adjusted or shown.

Return type:

matplotlib.figure.Figure