uxarray.UxDataArray.plot.points#
- UxDataArray.plot.points(backend=None, *args, **kwargs)#
Generate a point plot based on the specified grid element type (nodes, faces, or edges) shaded with the data mapped to those elements.
This function retrieves longitude and latitude values for the specified element type from the grid (e.g., node, face, or edge locations), converts them into a pandas DataFrame, and creates a point plot using hvplot. The points are shaded with the data that is mapped to the selected element.
- Parameters:
backend (str or None, optional) – Plotting backend to use. One of [‘matplotlib’, ‘bokeh’]. Equivalent to running holoviews.extension(backend)
**kwargs (dict) – Additional keyword arguments passed to hvplot.points. For a full list of supported arguments, please refer to https://hvplot.holoviz.org/user_guide/Customization.html
- Returns:
gdf.hvplot.points – A shaded point plot
- Return type:
hvplot.points
- Raises:
ValueError – If the data is not mapped to the nodes, edges, or faces.