File tree 2 files changed +11
-3
lines changed 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -1484,7 +1484,13 @@ def sca(self, a):
1484
1484
@docstring .dedent_interpd
1485
1485
def gca (self , ** kwargs ):
1486
1486
"""
1487
- Get the current Axes, creating one if necessary.
1487
+ Get the current Axes.
1488
+
1489
+ If there is currently no Axes on this Figure, a new one is created
1490
+ using `.Figure.add_subplot`. (To test whether there is currently an
1491
+ Axes on a Figure, check whether ``figure.axes`` is empty. To test
1492
+ whether there is currently a Figure on the pyplot figure stack, check
1493
+ whether `.pyplot.get_fignums()` is empty.)
1488
1494
1489
1495
The following kwargs are supported for ensuring the returned Axes
1490
1496
adheres to the given projection etc., and for Axes creation if
Original file line number Diff line number Diff line change @@ -819,8 +819,10 @@ def gcf():
819
819
"""
820
820
Get the current figure.
821
821
822
- If no current figure exists, a new one is created using
823
- `~.pyplot.figure()`.
822
+ If there is currently no figure on the pyplot figure stack, a new one is
823
+ created using `~.pyplot.figure()`. (To test whether there is currently a
824
+ figure on the pyplot figure stack, check whether `~.pyplot.get_fignums()`
825
+ is empty.)
824
826
"""
825
827
manager = _pylab_helpers .Gcf .get_active ()
826
828
if manager is not None :
You can’t perform that action at this time.
0 commit comments