Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c81d517

Browse files
committed
DOC: Add blackman to list of imshow interpolations
It is implemented but was left out of the list of methods the interpolation parameter for imshow() and AxesImage().
1 parent ff15ca9 commit c81d517

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/matplotlib/axes/_axes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5298,7 +5298,7 @@ def imshow(self, X, cmap=None, norm=None, aspect=None,
52985298
Supported values are 'none', 'antialiased', 'nearest', 'bilinear',
52995299
'bicubic', 'spline16', 'spline36', 'hanning', 'hamming', 'hermite',
53005300
'kaiser', 'quadric', 'catrom', 'gaussian', 'bessel', 'mitchell',
5301-
'sinc', 'lanczos'.
5301+
'sinc', 'lanczos', 'blackman'.
53025302
53035303
If *interpolation* is 'none', then no interpolation is performed
53045304
on the Agg, ps, pdf and svg backends. Other backends will fall back

lib/matplotlib/image.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -855,7 +855,7 @@ class AxesImage(_ImageBase):
855855
Supported values are 'none', 'antialiased', 'nearest', 'bilinear',
856856
'bicubic', 'spline16', 'spline36', 'hanning', 'hamming', 'hermite',
857857
'kaiser', 'quadric', 'catrom', 'gaussian', 'bessel', 'mitchell',
858-
'sinc', 'lanczos'.
858+
'sinc', 'lanczos', 'blackman'.
859859
origin : {'upper', 'lower'}, default: :rc:`image.origin`
860860
Place the [0, 0] index of the array in the upper left or lower left
861861
corner of the axes. The convention 'upper' is typically used for

0 commit comments

Comments
 (0)