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

Method corners

lib/matplotlib/widgets.py:3745–3755  ·  view source on GitHub ↗

Corners of rectangle in data coordinates from lower left, moving clockwise.

(self)

Source from the content-addressed store, hash-verified

3743
3744 @property
3745 def corners(self):
3746 """
3747 Corners of rectangle in data coordinates from lower left,
3748 moving clockwise.
3749 """
3750 x0, y0, width, height = self._rect_bbox
3751 xc = x0, x0 + width, x0 + width, x0
3752 yc = y0, y0, y0 + height, y0 + height
3753 transform = self._get_rotation_transform()
3754 coords = transform.transform(np.array([xc, yc]).T).T
3755 return coords[0], coords[1]
3756
3757 @property
3758 def edge_centers(self):

Callers

nothing calls this directly

Calls 2

transformMethod · 0.45

Tested by

no test coverage detected