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

Method get_tightbbox

lib/matplotlib/offsetbox.py:1473–1479  ·  view source on GitHub ↗
(self, renderer=None)

Source from the content-addressed store, hash-verified

1471 for child in self.get_children()])
1472
1473 def get_tightbbox(self, renderer=None):
1474 # docstring inherited
1475 if renderer is None:
1476 renderer = self.get_figure(root=True)._get_renderer()
1477 self.update_positions(renderer)
1478 return Bbox.union([child.get_tightbbox(renderer)
1479 for child in self.get_children()])
1480
1481 def update_positions(self, renderer):
1482 """Update pixel positions for the annotated point, the text, and the arrow."""

Callers

nothing calls this directly

Calls 5

update_positionsMethod · 0.95
get_childrenMethod · 0.95
unionMethod · 0.80
_get_rendererMethod · 0.45
get_figureMethod · 0.45

Tested by

no test coverage detected