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

Method get_bbox_to_anchor

lib/matplotlib/offsetbox.py:1024–1033  ·  view source on GitHub ↗

Return the bbox that the box is anchored to.

(self)

Source from the content-addressed store, hash-verified

1022 return self.get_child().get_bbox(renderer).padded(pad)
1023
1024 def get_bbox_to_anchor(self):
1025 """Return the bbox that the box is anchored to."""
1026 if self._bbox_to_anchor is None:
1027 return self.axes.bbox
1028 else:
1029 transform = self._bbox_to_anchor_transform
1030 if transform is None:
1031 return self._bbox_to_anchor
1032 else:
1033 return TransformedBbox(self._bbox_to_anchor, transform)
1034
1035 def set_bbox_to_anchor(self, bbox, transform=None):
1036 """

Callers 1

get_offsetMethod · 0.95

Calls 1

TransformedBboxClass · 0.90

Tested by

no test coverage detected