Remove an `~.axes.Axes` (defaulting to the current Axes) from its figure.
(ax: matplotlib.axes.Axes | None = None)
| 1453 | |
| 1454 | |
| 1455 | def delaxes(ax: matplotlib.axes.Axes | None = None) -> None: |
| 1456 | """ |
| 1457 | Remove an `~.axes.Axes` (defaulting to the current Axes) from its figure. |
| 1458 | """ |
| 1459 | if ax is None: |
| 1460 | ax = gca() |
| 1461 | ax.remove() |
| 1462 | |
| 1463 | |
| 1464 | def sca(ax: Axes) -> None: |