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

Method reset_position

lib/matplotlib/axes/_base.py:1217–1227  ·  view source on GitHub ↗

Reset the active position to the original position. This undoes changes to the active position (as defined in `.set_position`) which may have been performed to satisfy fixed-aspect constraints.

(self)

Source from the content-addressed store, hash-verified

1215 self.stale = True
1216
1217 def reset_position(self):
1218 """
1219 Reset the active position to the original position.
1220
1221 This undoes changes to the active position (as defined in
1222 `.set_position`) which may have been performed to satisfy fixed-aspect
1223 constraints.
1224 """
1225 for ax in self._twinned_axes.get_siblings(self):
1226 pos = ax.get_position(original=True)
1227 ax.set_position(pos, which='active')
1228
1229 def set_axes_locator(self, locator):
1230 """

Callers

nothing calls this directly

Calls 3

get_siblingsMethod · 0.45
get_positionMethod · 0.45
set_positionMethod · 0.45

Tested by

no test coverage detected