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

Method get_window_extent

lib/matplotlib/lines.py:639–648  ·  view source on GitHub ↗
(self, renderer=None)

Source from the content-addressed store, hash-verified

637 return bbox
638
639 def get_window_extent(self, renderer=None):
640 bbox = Bbox([[0, 0], [0, 0]])
641 trans_data_to_xy = self.get_transform().transform
642 bbox.update_from_data_xy(trans_data_to_xy(self.get_xydata()),
643 ignore=True)
644 # correct for marker size, if any
645 if self._marker:
646 ms = (self._markersize / 72.0 * self.get_figure(root=True).dpi) * 0.5
647 bbox = bbox.padded(ms)
648 return bbox
649
650 def set_data(self, *args):
651 """

Callers

nothing calls this directly

Calls 6

update_from_data_xyMethod · 0.95
get_xydataMethod · 0.95
BboxClass · 0.85
paddedMethod · 0.80
get_transformMethod · 0.45
get_figureMethod · 0.45

Tested by

no test coverage detected