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

Skip to content

Changed pyplot.gca() and gcf() doc string #3878

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 3, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Changed pyplot.gca() and gcf() so doc string more explicity relates t…
…o function name
  • Loading branch information
niallrobinson committed Dec 3, 2014
commit c14de7f4c83163cfab49276f8cb1ab5976ddf30b
2 changes: 1 addition & 1 deletion lib/matplotlib/figure.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions lib/matplotlib/pyplot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down