uxarray.UxDataArray.to_polycollection#
- UxDataArray.to_polycollection(override=False, cache=True, correct_antimeridian_polygons=True)#
Constructs a
matplotlib.collections.PolyCollectionobject with polygons representing the geometry of the unstructured grid, with polygons that cross the antimeridian split across the antimeridian.- Parameters:
override (bool) – Flag to recompute the
PolyCollectionstored under theuxgridif one is already cachedcache (bool) – Flag to indicate if the computed
PolyCollectionstored under theuxgridaccessor should be cachedcorrect_antimeridian_polygons (bool, Optional) – Parameter to select whether to correct and split antimeridian polygons
- Returns:
poly_collection – The output PolyCollection of polygons representing the geometry of the unstructured grid paired with a data variable.
- Return type: