8000 Merge pull request #25589 from meeseeksmachine/auto-backport-of-pr-25… · matplotlib/matplotlib@c95ac10 · GitHub
[go: up one dir, main page]

Skip to content

Commit c95ac10

Browse files
authored
Merge pull request #25589 from meeseeksmachine/auto-backport-of-pr-25585-on-v3.7.x
Backport PR #25585 on branch v3.7.x (DOC: improve interpolation kwarg doc in imshow [ci doc])
2 parents 76b479f + 8427c29 commit c95ac10

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

lib/matplotlib/axes/_axes.py

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5531,11 +5531,15 @@ def imshow(self, X, cmap=None, norm=None, *, aspect=None,
55315531
'kaiser', 'quadric', 'catrom', 'gaussian', 'bessel', 'mitchell',
55325532
'sinc', 'lanczos', 'blackman'.
55335533
5534-
If *interpolation* is 'none', then no interpolation is performed
5535-
on the Agg, ps, pdf and svg backends. Other backends will fall back
5536-
to 'nearest'. Note that most SVG renderers perform interpolation at
5537-
rendering and that the default interpolation method they implement
5538-
may differ.
5534+
The data *X* is resampled to the pixel size of the image on the
5535+
figure canvas, using the interpolation method to either up- or
5536+
downsample the data.
5537+
5538+
If *interpolation* is 'none', then for the ps, pdf, and svg
5539+
backends no down- or upsampling occurs, and the image data is
5540+
passed to the backend as a native image. Note that different ps,
5541+
pdf, and svg viewers may display these raw pixels differently. On
5542+
other backends, 'none' is the same as 'nearest'.
55395543
55405544
If *interpolation* is the default 'antialiased', then 'nearest'
55415545
interpolation is used if the image is upsampled by more than a

0 commit comments

Comments
 (0)
0