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

Method finalize_offset

lib/matplotlib/legend.py:77–81  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

75 super().__init__(legend, legend._legend_box, use_blit=use_blit)
76
77 def finalize_offset(self):
78 if self._update == "loc":
79 self._update_loc(self.get_loc_in_canvas())
80 elif self._update == "bbox":
81 self._update_bbox_to_anchor(self.get_loc_in_canvas())
82
83 def _update_loc(self, loc_in_canvas):
84 bbox = self.legend.get_bbox_to_anchor()

Callers

nothing calls this directly

Calls 3

_update_locMethod · 0.95
get_loc_in_canvasMethod · 0.80

Tested by

no test coverage detected