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

Method _draw_shape

lib/matplotlib/widgets.py:3024–3032  ·  view source on GitHub ↗
(self, vmin, vmax)

Source from the content-addressed store, hash-verified

3022 return False
3023
3024 def _draw_shape(self, vmin, vmax):
3025 if vmin > vmax:
3026 vmin, vmax = vmax, vmin
3027 if self.direction == 'horizontal':
3028 self._selection_artist.set_x(vmin)
3029 self._selection_artist.set_width(vmax - vmin)
3030 else:
3031 self._selection_artist.set_y(vmin)
3032 self._selection_artist.set_height(vmax - vmin)
3033
3034 def _set_active_handle(self, event):
3035 """Set active handle based on the location of the mouse event."""

Callers 1

_set_extentsMethod · 0.95

Calls 4

set_xMethod · 0.45
set_widthMethod · 0.45
set_yMethod · 0.45
set_heightMethod · 0.45

Tested by

no test coverage detected