Method
__init__
(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 | |
| 1260 | class 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
Tested by
no test coverage detected