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

Method _add_box

lib/matplotlib/widgets.py:4127–4141  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

4125 return self._selection_artist.get_bbox()
4126
4127 def _add_box(self):
4128 self._box = RectangleSelector(self.ax,
4129 useblit=self._useblit,
4130 grab_range=self.grab_range,
4131 handle_props=self._box_handle_props,
4132 props=self._box_props,
4133 interactive=True)
4134 self._box._state_modifier_keys.pop('rotate')
4135 self._box.connect_event('motion_notify_event', self._scale_polygon)
4136 self._update_box()
4137 # Set state that prevents the RectangleSelector from being created
4138 # by the user
4139 self._box._allow_creation = False
4140 self._box._selection_completed = True
4141 self._draw_polygon()
4142
4143 def _remove_box(self):
4144 if self._box is not None:

Callers 2

_releaseMethod · 0.95
vertsMethod · 0.95

Calls 5

_update_boxMethod · 0.95
_draw_polygonMethod · 0.95
RectangleSelectorClass · 0.85
connect_eventMethod · 0.80
popMethod · 0.45

Tested by

no test coverage detected