Add an `.Axes` to the Axes' children; return the child Axes. This is the lowlevel version. See `.axes.Axes.inset_axes`.
(self, ax)
| 2357 | return a |
| 2358 | |
| 2359 | def add_child_axes(self, ax): |
| 2360 | """ |
| 2361 | Add an `.Axes` to the Axes' children; return the child Axes. |
| 2362 | |
| 2363 | This is the lowlevel version. See `.axes.Axes.inset_axes`. |
| 2364 | """ |
| 2365 | |
| 2366 | # normally Axes have themselves as the Axes, but these need to have |
| 2367 | # their parent... |
| 2368 | # Need to bypass the getter... |
| 2369 | ax._axes = self |
| 2370 | ax.stale_callback = martist._stale_axes_callback |
| 2371 | |
| 2372 | self.child_axes.append(ax) |
| 2373 | ax._remove_method = functools.partial( |
| 2374 | self.get_figure(root=False)._remove_axes, owners=[self.child_axes]) |
| 2375 | self.stale = True |
| 2376 | return ax |
| 2377 | |
| 2378 | def add_collection(self, collection, autolim=True): |
| 2379 | """ |
no test coverage detected