xoa.core.plot.plot_mesh

Contents

xoa.core.plot.plot_mesh#

xoa.core.plot.plot_mesh(ax, lon, lat, stride='auto', min_spacing=None, edges=True, centers=True, transform=None, edge_kw=None, center_kw=None)[source]#

Plot the edges and centers of a grid

Parameters:
  • ax (matplotlib.axes.Axes)

  • lon (array_like(ny, nx)) – Longitudes and latitudes of the centers in degrees

  • lat (array_like(ny, nx)) – Longitudes and latitudes of the centers in degrees

  • stride (str, int, tuple(int)) – Under-sampling strides. See get_strides().

  • min_spacing (None, float) – Minimal spacing in pixels for the "auto" stride, which defaults to the plot.mesh_min_spacing option

  • edges (bool) – Draw the edges and the centers

  • centers (bool) – Draw the edges and the centers

  • transform (None, cartopy.crs.CRS) – Coordinate system of lon and lat

  • edge_kw (None, dict) – Parameters passed to matplotlib.collections.LineCollection

  • center_kw (None, dict) – Parameters passed to matplotlib.axes.Axes.plot()

Returns:

  • matplotlib.collections.LineCollection, None – The edges if drawn

  • matplotlib.lines.Line2D, None – The centers if drawn

See also

get_mesh, get_strides