mosaic.polypcolor#
- mosaic.polypcolor(ax: Axes, descriptor: Descriptor, c: DataArray, alpha: float = 1.0, norm: str | Normalize | None = None, cmap: str | Normalize | None = None, vmin: float | None = None, vmax: float | None = None, facecolors: Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | bool | int | float | complex | str | bytes | _NestedSequence[bool | int | float | complex | str | bytes] | None = None, **kwargs) PolyCollection #
Create a pseudocolor plot of a unstructured MPAS grid.
Call signatures:
polypcolor(ax, descriptor, c, *, ...)
The unstructued grid can be specified either by passing a
mosaic.Descriptor
object as the second parameter, or by passing the mesh datatset. Seemosaic.Descriptor
for an explanation of what themesh_dataset
has to be.- Parameters:
- ax :
An Axes or GeoAxes where the pseduocolor plot will be added
- descriptor
Descriptor
An already created
Descriptor
object- c
xarray.DataArray
The color values to plot. Must have a dimension named either
nCells
,nEdges
, ornVertices
.- other_parameters
All other parameters including the
kwargs
are the same as formatplotlib.pyplot.pcolor()
.