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

Method corners

lib/matplotlib/transforms.py:644–652  ·  view source on GitHub ↗

Return the corners of this rectangle as an array of points. Specifically, this returns the array ``[[x0, y0], [x0, y1], [x1, y0], [x1, y1]]``.

(self)

Source from the content-addressed store, hash-verified

642 return Bbox(self._points + (tx, ty))
643
644 def corners(self):
645 """
646 Return the corners of this rectangle as an array of points.
647
648 Specifically, this returns the array
649 ``[[x0, y0], [x0, y1], [x1, y0], [x1, y1]]``.
650 """
651 (x0, y0), (x1, y1) = self.get_points()
652 return np.array([[x0, y0], [x0, y1], [x1, y0], [x1, y1]])
653
654 def rotated(self, radians):
655 """

Callers 1

rotatedMethod · 0.95

Calls 1

get_pointsMethod · 0.95

Tested by

no test coverage detected