MCPcopy
hub / github.com/matplotlib/matplotlib / __init__

Method __init__

lib/matplotlib/image.py:1351–1378  ·  view source on GitHub ↗

cmap is a colors.Colormap instance norm is a colors.Normalize instance to map luminance to 0-1 kwargs are an optional list of Artist keyword args

(self, fig,
                 *,
                 cmap=None,
                 norm=None,
                 colorizer=None,
                 offsetx=0,
                 offsety=0,
                 origin=None,
                 **kwargs
                 )

Source from the content-addressed store, hash-verified

1349 _interpolation = 'nearest'
1350
1351 def __init__(self, fig,
1352 *,
1353 cmap=None,
1354 norm=None,
1355 colorizer=None,
1356 offsetx=0,
1357 offsety=0,
1358 origin=None,
1359 **kwargs
1360 ):
1361 """
1362 cmap is a colors.Colormap instance
1363 norm is a colors.Normalize instance to map luminance to 0-1
1364
1365 kwargs are an optional list of Artist keyword args
1366 """
1367 super().__init__(
1368 None,
1369 norm=norm,
1370 cmap=cmap,
1371 colorizer=colorizer,
1372 origin=origin
1373 )
1374 self.set_figure(fig)
1375 self.ox = offsetx
1376 self.oy = offsety
1377 self._internal_update(kwargs)
1378 self.magnification = 1.0
1379
1380 def get_extent(self):
1381 """Return the image extent as tuple (left, right, bottom, top)."""

Callers

nothing calls this directly

Calls 3

_internal_updateMethod · 0.80
__init__Method · 0.45
set_figureMethod · 0.45

Tested by

no test coverage detected