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

Method add

lib/matplotlib/figure.py:97–100  ·  view source on GitHub ↗

Add an Axes to the stack, ignoring it if already present.

(self, a)

Source from the content-addressed store, hash-verified

95 self._axes[a] = next(self._counter)
96
97 def add(self, a):
98 """Add an Axes to the stack, ignoring it if already present."""
99 if a not in self._axes:
100 self._axes[a] = next(self._counter)
101
102 def current(self):
103 """Return the active Axes, or None if the stack is empty."""

Callers 2

_add_axes_internalMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected