uxarray.Grid.plot.mesh#
- Grid.plot.mesh(periodic_elements='exclude', backend=None, **kwargs)#
Plots the edges of a Grid.
This function plots the edges of the grid as geographical paths using hvplot. The plot can ignore, exclude, or split periodic elements based on the provided option. It automatically sets default values for rasterization, projection, and labeling, which can be overridden by passing additional keyword arguments. The backend for plotting can also be specified.
- Parameters:
periodic_elements (str, optional, default="exclude") – Specifies whether to include or exclude periodic elements in the grid. Options are: - “exclude”: Exclude periodic elements, - “ignore”: Include periodic elements without any corrections - “split”: Split periodic elements.
backend (str or None, optional) – Plotting backend to use. One of [‘matplotlib’, ‘bokeh’]. Equivalent to running holoviews.extension(backend)
engine (str, optional) – Engine to use for GeoDataFrame construction. One of [‘spatialpandas’, ‘geopandas’]
**kwargs (dict) – Additional keyword arguments passed to hvplot.paths. These can include: - “rasterize” (bool): Whether to rasterize the plot (default: False), - “projection” (ccrs.Projection): The map projection to use (default: ccrs.PlateCarree()), - “clabel” (str): Label for the edges (default: “edges”), - “crs” (ccrs.Projection): Coordinate reference system for the plot (default: ccrs.PlateCarree()). A full list can be found at https://hvplot.holoviz.org/user_guide/Customization.html
- Returns:
gdf.hvplot.paths – A paths plot of the edges of the unstructured grid
- Return type:
hvplot.paths