xoa.core.plot.plot_vectors

Contents

xoa.core.plot.plot_vectors#

xoa.core.plot.plot_vectors(ax, lon, lat, u, v, stride=(1, 1), c=None, transform=None, **kwargs)[source]#

Plot vectors on a grid as arrows, possibly under-sampled

Parameters:
  • ax (matplotlib.axes.Axes)

  • lon (array_like(ny, nx)) – Positions of the vectors

  • lat (array_like(ny, nx)) – Positions of the vectors

  • u (array_like(ny, nx)) – Components of the vectors

  • v (array_like(ny, nx)) – Components of the vectors

  • stride (int, tuple(int)) – Under-sampling strides along y and x, see get_strides()

  • c (None, array_like(ny, nx)) – Values that are used to color the arrows

  • transform (None, cartopy.crs.CRS) – Coordinate system of the positions, in which the vectors are also defined

  • kwargs – Extra parameters are passed to matplotlib.axes.Axes.quiver(). The arrows are centered on their position and thin by default.

Returns:

matplotlib.quiver.Quiver