You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Conversion to Matplotlib PolyCollection Method (to_PolyCollection) #365
Representing our unstructured grid data as a matplotlib.collection.PolyCollection is useful for visualization with Matplotlib. The PolyCollection will contain geometric data representing the polygons in the grid, and may optionally have an array of values to color the polygons.
Implementation
Grid.to_PolyCollection
Implementation here will construct and organize the polygons that will represent only the unstructured grid (no data variables) and return a PolyCollection. It should handle all data-cleaning (Antimeridian Splitting, Coordinate Verification, Coordinate Transforms, etc.)
UxDataArray.to_PolyCollection
Will internally call Grid.to_PolyCollection to construct or return the cached version of the PolyCollection with the grid representation already populated. Additionally will set the array of the PolyCollection with a 1D entry representing the values we want to shade each Polygon (Face) with.
Activity