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

Method _update_box

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

Source from the content-addressed store, hash-verified

4146 self._box = None
4147
4148 def _update_box(self):
4149 # Update selection box extents to the extents of the polygon
4150 if self._box is not None:
4151 bbox = self._get_bbox()
4152 self._box.extents = [bbox.x0, bbox.x1, bbox.y0, bbox.y1]
4153 # Save a copy
4154 self._old_box_extents = self._box.extents
4155
4156 @_call_with_reparented_event
4157 def _scale_polygon(self, event):

Callers 2

_add_boxMethod · 0.95

Calls 1

_get_bboxMethod · 0.95

Tested by

no test coverage detected