@@ -5326,10 +5326,18 @@ def imshow(self, X, cmap=None, norm=None, aspect=None,
5326
5326
Display data as an image; i.e. on a 2D regular raster.
5327
5327
5328
5328
The input may either be actual RGB(A) data, or 2D scalar data, which
5329
- will be rendered as a pseudocolor image. Note: For actually displaying
5330
- a grayscale image set up the color mapping using the parameters
5329
+ will be rendered as a pseudocolor image. For displaying a grayscale
5330
+ image set up the color mapping using the parameters
5331
5331
``cmap='gray', vmin=0, vmax=255``.
5332
5332
5333
+ The number of pixels used to render an image is set by the axes size
5334
+ and the *dpi* of the figure. This can lead to aliasing artifacts when
5335
+ the image is resampled because the displayed image size will usually
5336
+ not match the size of *X* (see
5337
+ :doc:`/gallery/images_contours_and_fields/image_antialiasing`).
5338
+ The resampling can be controlled via the *interpolation* parameter
5339
+ and/or :rc:`image.interpolation`.
5340
+
5333
5341
Parameters
5334
5342
----------
5335
5343
X : array-like or PIL image
@@ -5459,7 +5467,7 @@ def imshow(self, X, cmap=None, norm=None, aspect=None,
5459
5467
The filter radius for filters that have a radius parameter, i.e.
5460
5468
when interpolation is one of: 'sinc', 'lanczos' or 'blackman'.
5461
5469
5462
- resample : bool, optional
5470
+ resample : bool, default: :rc:`image.resample`
5463
5471
When *True*, use a full resampling method. When *False*, only
5464
5472
resample when the output image is larger than the input image.
5465
5473
0 commit comments