MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / set_interpolation

Method set_interpolation

lib/matplotlib/image.py:736–754  ·  view source on GitHub ↗

Set the interpolation method the image uses when resizing. If None, use :rc:`image.interpolation`. If 'none', the image is shown as is without interpolating. 'none' is only supported in agg, ps and pdf backends and will fall back to 'nearest' mode for other

(self, s)

Source from the content-addressed store, hash-verified

734 return self._interpolation
735
736 def set_interpolation(self, s):
737 """
738 Set the interpolation method the image uses when resizing.
739
740 If None, use :rc:`image.interpolation`. If 'none', the image is
741 shown as is without interpolating. 'none' is only supported in
742 agg, ps and pdf backends and will fall back to 'nearest' mode
743 for other backends.
744
745 Parameters
746 ----------
747 s : {'auto', 'nearest', 'bilinear', 'bicubic', 'spline16', \
748'spline36', 'hanning', 'hamming', 'hermite', 'kaiser', 'quadric', 'catrom', \
749'gaussian', 'bessel', 'mitchell', 'sinc', 'lanczos', 'none'} or None
750 """
751 s = mpl._val_or_rc(s, 'image.interpolation').lower()
752 _api.check_in_list(interpolations_names, interpolation=s)
753 self._interpolation = s
754 self.stale = True
755
756 def get_interpolation_stage(self):
757 """

Callers 3

__init__Method · 0.95
set_interpolationMethod · 0.45
apply_callbackFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected