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)
| 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 | """ |
no outgoing calls
no test coverage detected