uvex_transients.utils.plotting.plot_footprints#

uvex_transients.utils.plotting.plot_footprints(footprints: Mapping[str, SurveyFootprint | MOC], *, nside: int = 128, title: str | None = None, colors: Sequence | None = None, fig: Figure | None = None, ax: Axes | None = None, fig_size: tuple = (10, 6.5), s: float = 4) → tuple[Figure, Axes][source]#

Aitoff map of several survey footprints, each in its own color with its area in the legend.

Footprints are drawn in the order given, so later ones sit on top of earlier ones. Each is sampled on a HEALPix grid, so regions much smaller than a pixel will not show.

Parameters:
  • footprints (mapping of str to SurveyFootprint or mocpy.MOC) – Legend label for each footprint.

  • nside (int, optional) – HEALPix resolution of the sampling grid. Default 128 (~0.46 degree pixels).

  • title (str, optional) – Axes title.

  • colors (sequence of color, optional) – One color per footprint. Defaults to get_categorical_colors.

  • fig (matplotlib.figure.Figure, matplotlib.axes.Axes, optional) – Existing figure/axes to draw onto, via resolve_fig_axes; ax, if given, must already carry an "aitoff" projection.

  • ax (matplotlib.figure.Figure, matplotlib.axes.Axes, optional) – Existing figure/axes to draw onto, via resolve_fig_axes; ax, if given, must already carry an "aitoff" projection.

  • fig_size (tuple, optional) – Passed to resolve_fig_axes when creating a new figure.

  • s (float, optional) – Marker size, forwarded to ~matplotlib.axes.Axes.scatter.

Returns: