@@ -5703,7 +5703,7 @@ def imshow(self, X, cmap=None, norm=None, *, aspect=None,
5703
5703
"""
5704
5704
Display data as an image, i.e., on a 2D regular raster.
5705
5705
5706
- The input may either be actual RGB(A) data, or 2D scalar data, which
5706
+ The input may either be actual RGB(A) data, or 2D data, which
5707
5707
will be rendered as a pseudocolor image. For displaying a grayscale
5708
5708
image, set up the colormapping using the parameters
5709
5709
``cmap='gray', vmin=0, vmax=255``.
@@ -5724,24 +5724,25 @@ def imshow(self, X, cmap=None, norm=None, *, aspect=None,
5724
5724
- (M, N): an image with scalar data. The values are mapped to
5725
5725
colors using normalization and a colormap. See parameters *norm*,
5726
5726
*cmap*, *vmin*, *vmax*.
5727
+ - (K, M, N): multiple images with scalar data. Must be used
5728
+ with a multivariate or bivariate colormap. See *cmap*.
5727
5729
- (M, N, 3): an image with RGB values (0-1 float or 0-255 int).
5728
5730
- (M, N, 4): an image with RGBA values (0-1 float or 0-255 int),
5729
5731
i.e. including transparency.
5730
5732
5731
- The first two dimensions (M, N) define the rows and columns of
5732
- the image.
5733
+ Here M and N define the rows and columns of the image.
5733
5734
5734
5735
Out-of-range RGB(A) values are clipped.
5735
5736
5736
- %(cmap_doc )s
5737
+ %(multi_cmap_doc )s
5737
5738
5738
5739
This parameter is ignored if *X* is RGB(A).
5739
5740
5740
- %(norm_doc )s
5741
+ %(multi_norm_doc )s
5741
5742
5742
5743
This parameter is ignored if *X* is RGB(A).
5743
5744
5744
- %(vmin_vmax_doc )s
5745
+ %(multi_vmin_vmax_doc )s
5745
5746
5746
5747
This parameter is ignored if *X* is RGB(A).
5747
5748
@@ -6080,9 +6081,10 @@ def pcolor(self, *args, shading=None, alpha=None, norm=None, cmap=None,
6080
6081
6081
6082
Parameters
6082
6083
----------
6083
- C : 2D array-like
6084
+ C : 2D array-like or list of 2D array-like objects
6084
6085
The color-mapped values. Color-mapping is controlled by *cmap*,
6085
- *norm*, *vmin*, and *vmax*.
6086
+ *norm*, *vmin*, and *vmax*. Multiple arrays are only supported
6087
+ when a bivariate or mulivariate colormap is used, see *cmap*.
6086
6088
6087
6089
X, Y : array-like, optional
6088
6090
The coordinates of the corners of quadrilaterals of a pcolormesh::
@@ -6129,11 +6131,11 @@ def pcolor(self, *args, shading=None, alpha=None, norm=None, cmap=None,
6129
6131
See :doc:`/gallery/images_contours_and_fields/pcolormesh_grids`
6130
6132
for more description.
6131
6133
6132
- %(cmap_doc )s
6134
+ %(multi_cmap_doc )s
6133
6135
6134
- %(norm_doc )s
6136
+ %(multi_norm_doc )s
6135
6137
6136
- %(vmin_vmax_doc )s
6138
+ %(multi_vmin_vmax_doc )s
6137
6139
6138
6140
%(colorizer_doc)s
6139
6141
@@ -6320,12 +6322,13 @@ def pcolormesh(self, *args, alpha=None, norm=None, cmap=None, vmin=None,
6320
6322
- (M, N) or M*N: a mesh with scalar data. The values are mapped to
6321
6323
colors using normalization and a colormap. See parameters *norm*,
6322
6324
*cmap*, *vmin*, *vmax*.
6325
+ - (K, M, N): multiple images with scalar data. Must be used with
6326
+ a multivariate or bivariate colormap. See *cmap*.
6323
6327
- (M, N, 3): an image with RGB values (0-1 float or 0-255 int).
6324
6328
- (M, N, 4): an image with RGBA values (0-1 float or 0-255 int),
6325
6329
i.e. including transparency.
6326
6330
6327
- The first two dimensions (M, N) define the rows and columns of
6328
- the mesh data.
6331
+ Here M and N define the rows and columns of the image.
6329
6332
6330
6333
X, Y : array-like, optional
6331
6334
The coordinates of the corners of quadrilaterals of a pcolormesh::
@@ -6356,11 +6359,11 @@ def pcolormesh(self, *args, alpha=None, norm=None, cmap=None, vmin=None,
6356
6359
expanded as needed into the appropriate 2D arrays, making a
6357
6360
rectangular grid.
6358
6361
6359
- %(cmap_doc )s
6362
+ %(multi_cmap_doc )s
6360
6363
6361
- %(norm_doc )s
6364
+ %(multi_norm_doc )s
6362
6365
6363
- %(vmin_vmax_doc )s
6366
+ %(multi_vmin_vmax_doc )s
6364
6367
6365
6368
%(colorizer_doc)s
6366
6369
0 commit comments