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

Method get_corners

lib/matplotlib/patches.py:955–961  ·  view source on GitHub ↗

Return the corners of the rectangle, moving anti-clockwise from (x0, y0).

(self)

Source from the content-addressed store, hash-verified

953 return self._x0, self._y0
954
955 def get_corners(self):
956 """
957 Return the corners of the rectangle, moving anti-clockwise from
958 (x0, y0).
959 """
960 return self.get_patch_transform().transform(
961 [(0, 0), (1, 0), (1, 1), (0, 1)])
962
963 def get_center(self):
964 """Return the centre of the rectangle."""

Callers 1

test_corner_centerFunction · 0.95

Calls 2

get_patch_transformMethod · 0.95
transformMethod · 0.45

Tested by 1

test_corner_centerFunction · 0.76