Skip to content

Commit f66687c

Browse files
authored
Merge pull request #10437 from dstansby/fix-sphinx
Add docstring to set_interpolation
2 parents 5bffbc3 + dfcf928 commit f66687c

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)