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

Method __init__

lib/matplotlib/offsetbox.py:1223–1252  ·  view source on GitHub ↗
(self, arr, *,
                 zoom=1,
                 cmap=None,
                 norm=None,
                 interpolation=None,
                 origin=None,
                 filternorm=True,
                 filterrad=4.0,
                 resample=False,
                 dpi_cor=True,
                 **kwargs
                 )

Source from the content-addressed store, hash-verified

1221
1222 """
1223 def __init__(self, arr, *,
1224 zoom=1,
1225 cmap=None,
1226 norm=None,
1227 interpolation=None,
1228 origin=None,
1229 filternorm=True,
1230 filterrad=4.0,
1231 resample=False,
1232 dpi_cor=True,
1233 **kwargs
1234 ):
1235 super().__init__()
1236 self._dpi_cor = dpi_cor
1237
1238 self.image = BboxImage(bbox=self.get_window_extent,
1239 cmap=cmap,
1240 norm=norm,
1241 interpolation=interpolation,
1242 origin=origin,
1243 filternorm=filternorm,
1244 filterrad=filterrad,
1245 resample=resample,
1246 **kwargs
1247 )
1248
1249 self._children = [self.image]
1250
1251 self.set_zoom(zoom)
1252 self.set_data(arr)
1253
1254 def set_data(self, arr):
1255 self._data = np.asarray(arr)

Callers

nothing calls this directly

Calls 4

set_zoomMethod · 0.95
set_dataMethod · 0.95
BboxImageClass · 0.90
__init__Method · 0.45

Tested by

no test coverage detected