sky_polygon

gdt.core.plot.lib.sky_polygon(x, y, ax, face_color=None, edge_color=None, edge_alpha=1.0, face_alpha=0.3, flipped=True, frame='equatorial', **kwargs)[source]

Plot single polygon on a sky map, wrapping at the meridian.

Parameters:
  • x (float) – The azimuthal coordinates, in degrees

  • y (float) – The polar coordinates, in degrees

  • ax (matplotlib.axes) – Plot axes object

  • face_color (str, optional) – The color of the polygon fill

  • face_alpha (float, optional) – The alpha of the polygon fill

  • edge_color (str, optional) – The color of the polygon edge

  • edge_alpha (float, optional) – The alpha of the polygon edge

  • frame (str, optional) – Either ‘equatorial’, ‘galactic’, or ‘spacecraft’. Default is ‘equatorial’

  • flipped (bool, optional) – If True, the azimuthal axis is flipped, following the equatorial convention

  • **kwargs – Other plotting options

Returns:

(list of matplotlib.lines.Line2D and matplotlib.patches.Polygon)