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

Function delaxes

lib/matplotlib/pyplot.py:1455–1461  ·  view source on GitHub ↗

Remove an `~.axes.Axes` (defaulting to the current Axes) from its figure.

(ax: matplotlib.axes.Axes | None = None)

Source from the content-addressed store, hash-verified

1453
1454
1455def 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
1464def sca(ax: Axes) -> None:

Callers

nothing calls this directly

Calls 2

gcaFunction · 0.85
removeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…