@@ -5300,10 +5300,18 @@ def imshow(self, X, cmap=None, norm=None, aspect=None,
5300
5300
Display data as an image; i.e. on a 2D regular raster.
5301
5301
5302
5302
The input may either be actual RGB(A) data, or 2D scalar data, which
5303
- will be rendered as a pseudocolor image. Note: For actually displaying
5304
- a grayscale image set up the color mapping using the parameters
5303
+ will be rendered as a pseudocolor image. For displaying a grayscale
5304
+ image set up the color mapping using the parameters
5305
5305
``cmap='gray', vmin=0, vmax=255``.
5306
5306
5307
+ The number of pixels used to render an image is set by the axes size
5308
+ and the *dpi* of the figure. This can lead to aliasing artifacts when
5309
+ the image is resampled because the displayed image size will usually
5310
+ not match the size of *X* (see
5311
+ :doc:`/gallery/images_contours_and_fields/image_antialiasing`).
5312
+ The resampling can be controlled via the *interpolation* parameter
5313
+ and/or :rc:`image.interpolation`.
5314
+
5307
5315
Parameters
5308
5316
----------
5309
5317
X : array-like or PIL image
@@ -5433,7 +5441,7 @@ def imshow(self, X, cmap=None, norm=None, aspect=None,
5433
5441
The filter radius for filters that have a radius parameter, i.e.
5434
5442
when interpolation is one of: 'sinc', 'lanczos' or 'blackman'.
5435
5443
5436
- resample : bool, optional
5444
+ resample : bool, default: :rc:`image.resample`
5437
5445
When *True*, use a full resampling method. When *False*, only
5438
5446
resample when the output image is larger than the input image.
5439
5447
0 commit comments