@@ -5425,15 +5425,21 @@ def imshow(self, X, cmap=None, norm=None, aspect=None,
5425
5425
origin = None , extent = None , shape = None , filternorm = 1 ,
5426
5426
filterrad = 4.0 , imlim = None , resample = None , url = None , ** kwargs ):
5427
5427
"""
5428
- Display an image, i.e. data on a 2D regular raster.
5428
+ Display data as an image; i.e. on a 2D regular raster.
5429
+
5430
+ The input may either be actual RGB(A) data, or 2D scalar data, which
5431
+ will be rendered as a pseudocolor image. Note: For actually displaying
5432
+ a grayscale image set up the color mapping using the parameters
5433
+ ``cmap='gray', vmin=0, vmax=255``.
5429
5434
5430
5435
Parameters
5431
5436
----------
5432
5437
X : array-like or PIL image
5433
5438
The image data. Supported array shapes are:
5434
5439
5435
- - (M, N): an image with scalar data. The data is visualized
5436
- using a colormap.
5440
+ - (M, N): an image with scalar data. The values are mapped to
5441
+ colors using normalization and a colormap. See parameters *norm*,
5442
+ *cmap*, *vmin*, *vmax*.
5437
5443
- (M, N, 3): an image with RGB values (0-1 float or 0-255 int).
5438
5444
- (M, N, 4): an image with RGBA values (0-1 float or 0-255 int),
5439
5445
i.e. including transparency.
0 commit comments