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 theplot.mesh_min_spacingoptionedges (bool) – Draw the edges and the centers
centers (bool) – Draw the edges and the centers
transform (None, cartopy.crs.CRS) – Coordinate system of
lonandlatedge_kw (None, dict) – Parameters passed to
matplotlib.collections.LineCollectioncenter_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