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

Method get_bbox_to_anchor

lib/matplotlib/legend.py:1110–1115  ·  view source on GitHub ↗

Return the bbox that the legend will be anchored to.

(self)

Source from the content-addressed store, hash-verified

1108 draw_frame = set_frame_on # Backcompat alias.
1109
1110 def get_bbox_to_anchor(self):
1111 """Return the bbox that the legend will be anchored to."""
1112 if self._bbox_to_anchor is None:
1113 return self.parent.bbox
1114 else:
1115 return self._bbox_to_anchor
1116
1117 def set_bbox_to_anchor(self, bbox, transform=None):
1118 """

Callers 5

_findoffsetMethod · 0.95
drawMethod · 0.95
_find_best_positionMethod · 0.95
get_bboxMethod · 0.45
_update_locMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected