 
    
  
      
    Axes.pcolormesh(*args, **kwargs)¶Plot a quadrilateral mesh.
Call signatures:
pcolormesh(C)
pcolormesh(X, Y, C)
pcolormesh(C, **kwargs)
Create a pseudocolor plot of a 2-D array.
pcolormesh is similar to pcolor(),
but uses a different mechanism and returns a different
object; pcolor returns a
PolyCollection but pcolormesh
returns a
QuadMesh.  It is much faster,
so it is almost always preferred for large arrays.
C may be a masked array, but X and Y may not.  Masked
array support is implemented via cmap and norm; in
contrast, pcolor() simply does not
draw quadrilaterals with masked colors or vertices.
Keyword arguments:
- cmap: [ None | Colormap ]
- A
matplotlib.colors.Colormapinstance. If None, use rc settings.- norm: [ None | Normalize ]
- A
matplotlib.colors.Normalizeinstance is used to scale luminance data to 0,1. If None, defaults tonormalize().- vmin/vmax: [ None | scalar ]
- vmin and vmax are used in conjunction with norm to normalize luminance data. If either is None, it is autoscaled to the respective min or max of the color array C. If not None, vmin or vmax passed in here override any pre-existing values supplied in the norm instance.
- shading: [ ‘flat’ | ‘gouraud’ ]
- ‘flat’ indicates a solid color for each quad. When ‘gouraud’, each quad will be Gouraud shaded. When gouraud shading, edgecolors is ignored.
- edgecolors: [None |
'None'|'face'| color |color sequence]
If None, the rc setting is used by default.
If
'None', edges will not be visible.If
'face', edges will have the same color as the faces.An mpl color or sequence of colors will set the edge color
- alpha:
0 <= scalar <= 1or None- the alpha blending value
Return value is a matplotlib.collections.QuadMesh
object.
kwargs can be used to control the
matplotlib.collections.QuadMesh properties:
Property Description agg_filterunknown alphafloat or None animated[True | False] antialiasedor antialiasedsBoolean or sequence of booleans arrayunknown axesan Axesinstanceclima length 2 sequence of floats clip_boxa matplotlib.transforms.Bboxinstanceclip_on[True | False] clip_path[ ( Path,Transform) |Patch| None ]cmapa colormap or registered colormap name colormatplotlib color arg or sequence of rgba tuples containsa callable function edgecoloror edgecolorsmatplotlib color spec or sequence of specs facecoloror facecolorsmatplotlib color spec or sequence of specs figurea matplotlib.figure.Figureinstancegidan id string hatch[ ‘/’ | ‘\’ | ‘|’ | ‘-‘ | ‘+’ | ‘x’ | ‘o’ | ‘O’ | ‘.’ | ‘*’ ] labelstring or anything printable with ‘%s’ conversion. linestyleor dashes or linestyles[‘solid’ | ‘dashed’, ‘dashdot’, ‘dotted’ | (offset, on-off-dash-seq) | '-'|'--'|'-.'|':'|'None'|' '|'']linewidthor linewidths or lwfloat or sequence of floats normunknown offset_positionunknown offsetsfloat or sequence of floats path_effectsunknown picker[None|float|boolean|callable] pickradiusunknown rasterized[True | False | None] sketch_paramsunknown snapunknown transformTransforminstanceurla url string urlsunknown visible[True | False] zorderany number 
See also
pcolor()Note
In addition to the above described arguments, this function can take a data keyword argument. If such a data argument is given, the following arguments are replaced by data[<arg>]: