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

Method extents

lib/matplotlib/widgets.py:3074–3087  ·  view source on GitHub ↗

(float, float) The values, in data coordinates, for the start and end points of the current selection. If there is no selection then the start and end values will be the same.

(self)

Source from the content-addressed store, hash-verified

3072
3073 @property
3074 def extents(self):
3075 """
3076 (float, float)
3077 The values, in data coordinates, for the start and end points of the current
3078 selection. If there is no selection then the start and end values will be
3079 the same.
3080 """
3081 if self.direction == 'horizontal':
3082 vmin = self._selection_artist.get_x()
3083 vmax = vmin + self._selection_artist.get_width()
3084 else:
3085 vmin = self._selection_artist.get_y()
3086 vmax = vmin + self._selection_artist.get_height()
3087 return vmin, vmax
3088
3089 @extents.setter
3090 def extents(self, extents):

Callers

nothing calls this directly

Calls 5

_set_extentsMethod · 0.95
get_xMethod · 0.45
get_widthMethod · 0.45
get_yMethod · 0.45
get_heightMethod · 0.45

Tested by

no test coverage detected