From c14de7f4c83163cfab49276f8cb1ab5976ddf30b Mon Sep 17 00:00:00 2001 From: Niall Robinson Date: Wed, 3 Dec 2014 11:34:54 +0000 Subject: [PATCH] Changed pyplot.gca() and gcf() so doc string more explicity relates to function name --- lib/matplotlib/figure.py | 2 +- lib/matplotlib/pyplot.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/matplotlib/figure.py b/lib/matplotlib/figure.py index 129dee3e88b9..db2428477f44 100644 --- a/lib/matplotlib/figure.py +++ b/lib/matplotlib/figure.py @@ -1226,7 +1226,7 @@ def _set_artist_props(self, a): @docstring.dedent_interpd def gca(self, **kwargs): """ - Return the current axes, creating one if necessary + Get the current axes, creating one if necessary The following kwargs are supported for ensuring the returned axes adheres to the given projection etc., and for axes creation if diff --git a/lib/matplotlib/pyplot.py b/lib/matplotlib/pyplot.py index 53ac1cf6761e..744cd15cd214 100644 --- a/lib/matplotlib/pyplot.py +++ b/lib/matplotlib/pyplot.py @@ -453,7 +453,7 @@ def make_active(event): def gcf(): - "Return a reference to the current figure." + "Get a reference to the current figure." figManager = _pylab_helpers.Gcf.get_active() if figManager is not None: @@ -809,7 +809,7 @@ def sca(ax): def gca(**kwargs): """ - Return the current :class:`~matplotlib.axes.Axes` instance on the + Get the current :class:`~matplotlib.axes.Axes` instance on the current figure matching the given keyword args, or create one. Examples