- Figure.gca()[source]#
Get the current Axes.
If there is currently no Axes on this Figure, a new one is created using
Figure.add_subplot. (To test whether there is currently an Axes on a Figure, check whetherfigure.axesis empty. To test whether there is currently a Figure on the pyplot figure stack, check whetherpyplot.get_fignums()is empty.)
matplotlib.figure.Figure.gca — Matplotlib 3.11.0.dev1920+g51a1ab6c6 documentation