uxarray.Grid.to_polycollection

uxarray.Grid.to_polycollection#

Grid.to_polycollection(override=False, cache=True, correct_antimeridian_polygons=True)#

Constructs a matplotlib.collections.PolyCollection object with polygons representing the geometry of the unstructured grid, with polygons that cross the antimeridian split.

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

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

Returns:

  • polycollection (matplotlib.collections.PolyCollection) – The output PolyCollection containing faces represented as polygons

  • corrected_to_original_faces (list) – Original indices used to map the corrected polygon shells to their entries in face nodes