uxarray.Grid.to_linecollection

uxarray.Grid.to_linecollection#

Grid.to_linecollection(override=False, cache=True)#

Constructs a matplotlib.collections.LineCollection object with line segments representing the geometry of the unstructured grid, corrected near the antimeridian.

Parameters:
  • override (bool) – Flag to recompute the LineCollection if one is already cached

  • cache (bool) – Flag to indicate if the computed LineCollection should be cached

Returns:

line_collection – The output LineCollection containing faces represented as polygons

Return type:

matplotlib.collections.LineCollection