mpl.image.AxesImage.set_interpolation

AxesImage.set_interpolation(s)

Set the interpolation method the image uses when resizing.

if None, use a value from rc setting. 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 backends.

ACCEPTS: [‘nearest’ | ‘bilinear’ | ‘bicubic’ | ‘spline16’ |
‘spline36’ | ‘hanning’ | ‘hamming’ | ‘hermite’ | ‘kaiser’ | ‘quadric’ | ‘catrom’ | ‘gaussian’ | ‘bessel’ | ‘mitchell’ | ‘sinc’ | ‘lanczos’ | ‘none’ |]