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

Method get_extent

lib/matplotlib/image.py:991–1001  ·  view source on GitHub ↗

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

(self)

Source from the content-addressed store, hash-verified

989 self.stale = True
990
991 def get_extent(self):
992 """Return the image extent as tuple (left, right, bottom, top)."""
993 if self._extent is not None:
994 return self._extent
995 else:
996 sz = self.get_size()
997 numrows, numcols = sz
998 if self.origin == 'upper':
999 return (-0.5, numcols-0.5, numrows-0.5, -0.5)
1000 else:
1001 return (-0.5, numcols-0.5, -0.5, numrows-0.5)
1002
1003 def get_cursor_data(self, event):
1004 """

Callers 10

make_imageMethod · 0.95
get_cursor_dataMethod · 0.95
imshowMethod · 0.95
containsMethod · 0.45
_update_image_limitsMethod · 0.45
test_specgram_fs_noneFunction · 0.45
test_rotate_imageFunction · 0.45
plot_imshow_with_labelsFunction · 0.45
do_plotFunction · 0.45
viewlims.pyFile · 0.45

Calls 1

get_sizeMethod · 0.45

Tested by 2

test_specgram_fs_noneFunction · 0.36
test_rotate_imageFunction · 0.36