@@ -1251,13 +1251,15 @@ def imshow(self, X,
12511251IMSHOW(X, cmap=None, norm=None, aspect=None, interpolation=None,
12521252 alpha=1.0, vmin=None, vmax=None, origin=None, extent=None)
12531253
1254- IMSHOW(X) - plot image in array X to current axes, resampling to scale
1255- to axes size
1254+ IMSHOW(X) - plot image X to current axes, resampling to scale to axes
1255+ size (X may be numarray/Numeric array or PIL image)
12561256
12571257IMSHOW(X, **kwargs) - Use keyword args to control image scaling,
12581258colormapping etc. See below for details
12591259
1260- Display the image in float array X; X can have the following shapes
1260+
1261+ Display the image in X to current axes. X may be a float array or a
1262+ PIL image. If X is a float array, X can have the following shapes
12611263
12621264 MxN : luminance (grayscale)
12631265
@@ -1270,7 +1272,7 @@ def imshow(self, X,
12701272The following kwargs are allowed:
12711273
12721274 * cmap is a cm colormap instance, eg cm.jet. If None, default to rc
1273- image.cmap value
1275+ image.cmap value (Ignored when X has RGB(A) information)
12741276
12751277 * aspect is one of: free or preserve. if None, default to rc
12761278 image.aspect value
@@ -1280,7 +1282,8 @@ def imshow(self, X,
12801282 If None, default to rc image.interpolation
12811283
12821284 * norm is a matplotlib.colors.normalize instance; default is
1283- normalization(). This scales luminance -> 0-1.
1285+ normalization(). This scales luminance -> 0-1 (Ignored when X is
1286+ PIL image).
12841287
12851288 * vmin and vmax are used to scale a luminance image to 0-1. If
12861289 either is None, the min and max of the luminance values will be
@@ -1308,8 +1311,7 @@ def imshow(self, X,
13081311 if norm is None :
13091312 im .set_clim (vmin , vmax )
13101313
1311-
1312- im .set_array (X )
1314+ im .set_data (X )
13131315 im .set_alpha (alpha )
13141316
13151317 xmin , xmax , ymin , ymax = im .get_extent ()
0 commit comments