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

Method get_center

lib/matplotlib/patches.py:963–965  ·  view source on GitHub ↗

Return the centre of the rectangle.

(self)

Source from the content-addressed store, hash-verified

961 [(0, 0), (1, 0), (1, 1), (0, 1)])
962
963 def get_center(self):
964 """Return the centre of the rectangle."""
965 return self.get_patch_transform().transform((0.5, 0.5))
966
967 def get_width(self):
968 """Return the width 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