Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2fc0fb6

Browse files
committed
Merge pull request #3878 from niallrobinson/explicit_gca_gcf_docs
Changed pyplot.gca() and gcf() doc string
2 parents 5eed665 + c14de7f commit 2fc0fb6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/matplotlib/figure.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1226,7 +1226,7 @@ def _set_artist_props(self, a):
12261226
@docstring.dedent_interpd
12271227
def gca(self, **kwargs):
12281228
"""
1229-
Return the current axes, creating one if necessary
1229+
Get the current axes, creating one if necessary
12301230
12311231
The following kwargs are supported for ensuring the returned axes
12321232
adheres to the given projection etc., and for axes creation if

lib/matplotlib/pyplot.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ def make_active(event):
453453

454454

455455
def gcf():
456-
"Return a reference to the current figure."
456+
"Get a reference to the current figure."
457457

458458
figManager = _pylab_helpers.Gcf.get_active()
459459
if figManager is not None:
@@ -809,7 +809,7 @@ def sca(ax):
809809

810810
def gca(**kwargs):
811811
"""
812-
Return the current :class:`~matplotlib.axes.Axes` instance on the
812+
Get the current :class:`~matplotlib.axes.Axes` instance on the
813813
current figure matching the given keyword args, or create one.
814814
815815
Examples

0 commit comments

Comments
 (0)