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

Method __init__

lib/matplotlib/image.py:1041–1053  ·  view source on GitHub ↗

Parameters ---------- ax : `~matplotlib.axes.Axes` The Axes the image will belong to. interpolation : {'nearest', 'bilinear'}, default: 'nearest' The interpolation scheme used in the resampling. **kwargs All other keyword a

(self, ax, *, interpolation='nearest', **kwargs)

Source from the content-addressed store, hash-verified

1039 """
1040
1041 def __init__(self, ax, *, interpolation='nearest', **kwargs):
1042 """
1043 Parameters
1044 ----------
1045 ax : `~matplotlib.axes.Axes`
1046 The Axes the image will belong to.
1047 interpolation : {'nearest', 'bilinear'}, default: 'nearest'
1048 The interpolation scheme used in the resampling.
1049 **kwargs
1050 All other keyword arguments are identical to those of `.AxesImage`.
1051 """
1052 super().__init__(ax, **kwargs)
1053 self.set_interpolation(interpolation)
1054
1055 def _check_unsampled_image(self):
1056 """Return False. Do not use unsampled image."""

Callers

nothing calls this directly

Calls 2

set_interpolationMethod · 0.95
__init__Method · 0.45

Tested by

no test coverage detected