uxarray.Grid.to_linecollection

uxarray.Grid.to_linecollection#

Grid.to_linecollection(periodic_elements='exclude', projection=None, cache=True, override=False)#

Converts a Grid to a matplotlib.collections.LineCollection, representing each edge as a line.

Parameters:
  • periodic_elements (str) – Method for handling elements that cross the antimeridian. One of [‘include’, ‘exclude’, ‘split’]

  • projection (ccrs.Projection) – Cartopy geographic projection to use

  • cache (bool) – Flag to indicate whether to cache the computed PolyCollection

  • override (bool) – Flag to indicate whether to override a cached PolyCollection, if it exists