matplotlib.pyplot.gca
-
matplotlib.pyplot.gca(**kwargs)
-
Get the current
Axes
instance on the current figure matching the given keyword args, or create one.See also
-
matplotlib.figure.Figure.gca
- The figure’s gca method.
Examples
To get the current polar axes on the current figure:
plt.gca(projection='polar')
If the current axes doesn’t exist, or isn’t a polar one, the appropriate axes will be created and then returned.
-
Examples using matplotlib.pyplot.gca
© 2012–2017 Matplotlib Development Team. All rights reserved.
Licensed under the Matplotlib License Agreement.
http://matplotlib.org/2.1.0/api/_as_gen/matplotlib.pyplot.gca.html