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

Skip to content

Commit dc3276d

Browse files
authored
Merge pull request #10438 from matplotlib/auto-backport-of-pr-10437
Backport PR #10437 on branch v2.2.x
2 parents 0092c2b + a7591f9 commit dc3276d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/matplotlib/image.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -964,6 +964,12 @@ def set_array(self, *args):
964964
raise NotImplementedError('Method not supported')
965965

966966
def set_interpolation(self, s):
967+
"""
968+
Parameters
969+
----------
970+
s : str, None
971+
Either 'nearest', 'bilinear', or ``None``.
972+
"""
967973
if s is not None and s not in ('nearest', 'bilinear'):
968974
raise NotImplementedError('Only nearest neighbor and '
969975
'bilinear interpolations are supported')

0 commit comments

Comments
 (0)