Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 4fe70f7

Browse filesBrowse files
committed
DOC: improve interpolation kwarg doc in imshow [ci doc]
1 parent e305953 commit 4fe70f7
Copy full SHA for 4fe70f7

File tree

Expand file treeCollapse file tree

1 file changed

+9
-5
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+9
-5
lines changed

‎lib/matplotlib/axes/_axes.py

Copy file name to clipboardExpand all lines: lib/matplotlib/axes/_axes.py
+9-5Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5508,11 +5508,15 @@ def imshow(self, X, cmap=None, norm=None, *, aspect=None,
55085508
'kaiser', 'quadric', 'catrom', 'gaussian', 'bessel', 'mitchell',
55095509
'sinc', 'lanczos', 'blackman'.
55105510
5511-
If *interpolation* is 'none', then no interpolation is performed
5512-
on the Agg, ps, pdf and svg backends. Other backends will fall back
5513-
to 'nearest'. Note that most SVG renderers perform interpolation at
5514-
rendering and that the default interpolation method they implement
5515-
may differ.
5511+
The data *X* is resampled to the pixel size of the image on the
5512+
figure canvas, using the interpolation method to either up- or
5513+
downsample the data.
5514+
5515+
If *interpolation* is 'none', then for the ps, pdf, and svg
5516+
backends no down- or upsampling occurs, and the image data is
5517+
passed to the backend as a native image. Note that different ps,
5518+
pdf, and svg viewers may display these raw pixels differently. On
5519+
other backends, 'none' is the same as 'nearest'.
55165520
55175521
If *interpolation* is the default 'antialiased', then 'nearest'
55185522
interpolation is used if the image is upsampled by more than a

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.