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

Method set_interpolation

lib/matplotlib/image.py:1163–1173  ·  view source on GitHub ↗

Parameters ---------- s : {'nearest', 'bilinear'} or None If None, use :rc:`image.interpolation`.

(self, s)

Source from the content-addressed store, hash-verified

1161 raise NotImplementedError('Method not supported')
1162
1163 def set_interpolation(self, s):
1164 """
1165 Parameters
1166 ----------
1167 s : {'nearest', 'bilinear'} or None
1168 If None, use :rc:`image.interpolation`.
1169 """
1170 if s is not None and s not in ('nearest', 'bilinear'):
1171 raise NotImplementedError('Only nearest neighbor and '
1172 'bilinear interpolations are supported')
1173 super().set_interpolation(s)
1174
1175 def get_extent(self):
1176 if self._A is None:

Callers 1

__init__Method · 0.95

Calls 1

set_interpolationMethod · 0.45

Tested by

no test coverage detected