mosaic.polypcolor

Contents

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. See mosaic.Descriptor for an explanation of what the mesh_dataset has to be.

Parameters:
ax :

An Axes or GeoAxes where the pseduocolor plot will be added

descriptorDescriptor

An already created Descriptor object

cxarray.DataArray

The color values to plot. Must have a dimension named either nCells, nEdges, or nVertices.

other_parameters

All other parameters including the kwargs are the same as for matplotlib.pyplot.pcolor().