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

Skip to content

Commit dfcf928

Browse files
committed
Add docstring to set_interpolation
1 parent 5bffbc3 commit dfcf928

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)