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

Function restore_bbox

lib/matplotlib/_tight_bbox.py:39–52  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

37 ax.apply_aspect = lambda pos=None: None
38
39 def restore_bbox():
40 for ax, loc, aspect in zip(fig.axes, locator_list, old_aspect):
41 ax.set_axes_locator(loc)
42 if aspect is sentinel:
43 # delete our no-op function which un-hides the original method
44 del ax.apply_aspect
45 else:
46 ax.apply_aspect = aspect
47
48 fig.bbox = origBbox
49 fig.bbox_inches = origBboxInches
50 fig.transFigure._boxout = _boxout
51 fig.transFigure.invalidate()
52 fig.patch.set_bounds(0, 0, 1, 1)
53
54 if fixed_dpi is None:
55 fixed_dpi = fig.dpi

Callers 2

print_figureMethod · 0.85

Calls 3

set_axes_locatorMethod · 0.45
invalidateMethod · 0.45
set_boundsMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…