MCPcopy Create free account
hub / github.com/ColdGrub1384/Pyto / __init__

Method __init__

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

Source from the content-addressed store, hash-verified

1259
1260class OffsetImage(OffsetBox):
1261 def __init__(self, arr,
1262 zoom=1,
1263 cmap=None,
1264 norm=None,
1265 interpolation=None,
1266 origin=None,
1267 filternorm=1,
1268 filterrad=4.0,
1269 resample=False,
1270 dpi_cor=True,
1271 **kwargs
1272 ):
1273
1274 OffsetBox.__init__(self)
1275 self._dpi_cor = dpi_cor
1276
1277 self.image = BboxImage(bbox=self.get_window_extent,
1278 cmap=cmap,
1279 norm=norm,
1280 interpolation=interpolation,
1281 origin=origin,
1282 filternorm=filternorm,
1283 filterrad=filterrad,
1284 resample=resample,
1285 **kwargs
1286 )
1287
1288 self._children = [self.image]
1289
1290 self.set_zoom(zoom)
1291 self.set_data(arr)
1292
1293 def set_data(self, arr):
1294 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