xoa.core.plot.plot_box

Contents

xoa.core.plot.plot_box#

xoa.core.plot.plot_box(ax, lon, lat, transform=None, npts=50, **kwargs)[source]#

Plot a box of longitudes and latitudes, like the one of get_geosel()

Parameters:
  • ax (matplotlib.axes.Axes)

  • lon ((float, float)) – Ranges of longitudes, that may cross the dateline like (170, -170), and latitudes

  • lat ((float, float)) – Ranges of longitudes, that may cross the dateline like (170, -170), and latitudes

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

  • npts (int) – Number of points per side, so that the sides follow the meridians and parallels in any projection

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

Returns:

matplotlib.patches.Polygon