xoa.core.plot.plot_polygon

Contents

xoa.core.plot.plot_polygon#

xoa.core.plot.plot_polygon(ax, polygon, transform=None, **kwargs)[source]#

Plot a polygon, like the one of get_geosel()

Parameters:
  • ax (matplotlib.axes.Axes)

  • polygon (array_like(n, 2)) – Vertices as (lon, lat) pairs in degrees, that may cross the dateline. The sides are straight lines in longitude and latitude.

  • transform (None, cartopy.crs.CRS) – Coordinate system of the positions, which defaults to plate carrée for a map

  • kwargs – Extra parameters are passed to matplotlib.patches.Polygon. The polygon is an outline by default.

Returns:

matplotlib.patches.Polygon