Return the image extent as tuple (left, right, bottom, top).
(self)
| 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 | """ |