On this page
matplotlib.pyplot.gca
- matplotlib.pyplot.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.axes
is empty. To test whether there is currently a Figure on the pyplot figure stack, check whetherpyplot.get_fignums()
is empty.)
Examples using matplotlib.pyplot.gca
© 2012–2023 Matplotlib Development Team. All rights reserved.
Licensed under the Matplotlib License Agreement.
https://matplotlib.org/stable/api/_as_gen/matplotlib.pyplot.gca.html