Set the current Axes to *ax* and the current Figure to the parent of *ax*.
(ax: Axes)
| 1462 | |
| 1463 | |
| 1464 | def sca(ax: Axes) -> None: |
| 1465 | """ |
| 1466 | Set the current Axes to *ax* and the current Figure to the parent of *ax*. |
| 1467 | """ |
| 1468 | # Mypy sees ax.figure as potentially None, |
| 1469 | # but if you are calling this, it won't be None |
| 1470 | # Additionally the slight difference between `Figure` and `FigureBase` mypy catches |
| 1471 | fig = ax.get_figure(root=False) |
| 1472 | figure(fig) |
| 1473 | fig.sca(ax) # type: ignore[union-attr] |
| 1474 | |
| 1475 | |
| 1476 | def cla() -> None: |
nothing calls this directly
no test coverage detected