uvex_transients.phase_space.sampling.canonical.CanonicalSampler.draw_map#

classmethod CanonicalSampler.draw_map(grid: Table, points: Table, path: str | Path, title: str, *, overlay: Table | None = None, show_points: bool = False, fields: Sequence[str] | None = None)[source]#

Draw the canonical map, with its four panels and the shipped classes shaded if there is an overlay.

With fields the panels are the ones asked for, drawn by the default figure.

Parameters:
  • grid (astropy.table.Table) – The fitted map (map.ecsv).

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

  • path (str or pathlib.Path) – Where to save the figure.

  • title (str) – The suptitle.

  • overlay (astropy.table.Table, optional) – The measurements of measure_overlay() (overlay.ecsv).

  • show_points (bool, optional) – Whether to mark the measured points.

  • fields (sequence of str, optional) – The columns to draw, one panel each, in place of the four of the canonical figure.

Returns:

The figure, which the caller closes.

Return type:

matplotlib.figure.Figure