uvex_transients.utils.plotting.plot_detection_horizon#

uvex_transients.utils.plotting.plot_detection_horizon(transient, curve, grid, *, mag_limit: float = 24.5, n_lines: int = 150, fig: Figure | None = None) → Figure[source]#

Plot how the redshift limit of a transient class follows from its SED.

Takes the output of get_detection_horizon() and draws two panels. The left shows each sampled event’s peak magnitude against redshift: an event is detectable out to where its line crosses the magnitude limit, and the class’s redshift limit should lie beyond nearly all of those crossings. The right shows the redshift limit the SED supports as a function of the magnitude limit, next to the class’s actual redshift limit.

Parameters:
  • transient (ExtragalacticTransient) – The population. Its redshift_limit is drawn as the limit in use.

  • curve (QTable) – The magnitude-limit table returned by get_detection_horizon.

  • grid (EffectivePeakGrid) – The grid returned by get_detection_horizon.

  • mag_limit (float, optional) – The magnitude limit to highlight. The default is 24.5.

  • n_lines (int, optional) – Number of sampled events to draw as lines on the left panel. The default is 150.

  • fig (matplotlib.figure.Figure, optional) – An existing figure to draw two new panels on. If None, one is created.

Returns:

The figure.

Return type:

matplotlib.figure.Figure