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

Method get_extent

lib/matplotlib/image.py:1380–1384  ·  view source on GitHub ↗

Return the image extent as tuple (left, right, bottom, top).

(self)

Source from the content-addressed store, hash-verified

1378 self.magnification = 1.0
1379
1380 def get_extent(self):
1381 """Return the image extent as tuple (left, right, bottom, top)."""
1382 numrows, numcols = self.get_size()
1383 return (-0.5 + self.ox, numcols-0.5 + self.ox,
1384 -0.5 + self.oy, numrows-0.5 + self.oy)
1385
1386 def make_image(self, renderer, magnification=1.0, unsampled=False):
1387 # docstring inherited

Callers

nothing calls this directly

Calls 1

get_sizeMethod · 0.45

Tested by

no test coverage detected