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

Method _axes_pos

lib/matplotlib/backend_tools.py:537–553  ·  view source on GitHub ↗

Return the original and modified positions for the specified Axes. Parameters ---------- ax : matplotlib.axes.Axes The `.Axes` to get the positions for. Returns ------- original_position, modified_position A tuple of

(self, ax)

Source from the content-addressed store, hash-verified

535 self.positions[figure].push(pos)
536
537 def _axes_pos(self, ax):
538 """
539 Return the original and modified positions for the specified Axes.
540
541 Parameters
542 ----------
543 ax : matplotlib.axes.Axes
544 The `.Axes` to get the positions for.
545
546 Returns
547 -------
548 original_position, modified_position
549 A tuple of the original and modified positions.
550 """
551
552 return (ax.get_position(True).frozen(),
553 ax.get_position().frozen())
554
555 def update_home_views(self, figure=None):
556 """

Callers 1

push_currentMethod · 0.95

Calls 2

frozenMethod · 0.45
get_positionMethod · 0.45

Tested by

no test coverage detected