MCPcopy
hub / github.com/matplotlib/matplotlib / extents

Method extents

lib/matplotlib/widgets.py:3779–3787  ·  view source on GitHub ↗

Return (xmin, xmax, ymin, ymax) in data coordinates as defined by the bounding box before rotation.

(self)

Source from the content-addressed store, hash-verified

3777
3778 @property
3779 def extents(self):
3780 """
3781 Return (xmin, xmax, ymin, ymax) in data coordinates as defined by the
3782 bounding box before rotation.
3783 """
3784 x0, y0, width, height = self._rect_bbox
3785 xmin, xmax = sorted([x0, x0 + width])
3786 ymin, ymax = sorted([y0, y0 + height])
3787 return xmin, xmax, ymin, ymax
3788
3789 @extents.setter
3790 def extents(self, extents):

Callers

nothing calls this directly

Calls 4

_draw_shapeMethod · 0.95
set_dataMethod · 0.45
set_visibleMethod · 0.45
updateMethod · 0.45

Tested by

no test coverage detected