From dfcf92829a0e875ab3177799fe17db576347b88f Mon Sep 17 00:00:00 2001 From: David Stansby Date: Mon, 12 Feb 2018 21:51:00 +0000 Subject: [PATCH] Add docstring to set_interpolation --- lib/matplotlib/image.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/matplotlib/image.py b/lib/matplotlib/image.py index 0f874d46f277..d7607c368231 100644 --- a/lib/matplotlib/image.py +++ b/lib/matplotlib/image.py @@ -964,6 +964,12 @@ def set_array(self, *args): raise NotImplementedError('Method not supported') def set_interpolation(self, s): + """ + Parameters + ---------- + s : str, None + Either 'nearest', 'bilinear', or ``None``. + """ if s is not None and s not in ('nearest', 'bilinear'): raise NotImplementedError('Only nearest neighbor and ' 'bilinear interpolations are supported')