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

Method get_bbox

lib/matplotlib/offsetbox.py:1018–1022  ·  view source on GitHub ↗
(self, renderer)

Source from the content-addressed store, hash-verified

1016 return [self._child]
1017
1018 def get_bbox(self, renderer):
1019 # docstring inherited
1020 fontsize = renderer.points_to_pixels(self.prop.get_size_in_points())
1021 pad = self.pad * fontsize
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."""

Callers 1

drawMethod · 0.95

Calls 4

get_childMethod · 0.95
paddedMethod · 0.80
points_to_pixelsMethod · 0.45
get_bboxMethod · 0.45

Tested by

no test coverage detected