uvex_transients.phase_space.plotting.core.draw_overlay#

uvex_transients.phase_space.plotting.core.draw_overlay(axes, overlay: Table, color)[source]#

Shade the region of the map that one measured population occupies, on every panel.

The region is the smallest one that holds _REGION_MASS of the draws, from a kernel density estimate. A population too small or degenerate for one is shown as the box between the 16th and 84th percentiles of its two quantities.

Parameters:
  • axes (numpy.ndarray) – The axes to shade on, such as the four panels of plot_map().

  • overlay (astropy.table.Table) – The measurements, with log_luminosity, log_half_time and measured columns, and the class name in meta["class"].

  • color (str or tuple) – The colour of the region.

Returns:

A legend handle for the region, or None if the population has no measured draw.

Return type:

matplotlib.patches.Patch or None