Skip to content

Minor docstring fixes #11626

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
Jul 13, 2018
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
2 changes: 1 addition & 1 deletion lib/matplotlib/axes/_axes.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ def get_legend_handles_labels(self, legend_handler_map=None):
@docstring.dedent_interpd
def legend(self, *args, **kwargs):
"""
Places a legend on the axes.
Place a legend on the axes.

Call signatures::

Expand Down
10 changes: 8 additions & 2 deletions lib/matplotlib/pyplot.py
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ def setp(obj, *args, **kwargs):

def xkcd(scale=1, length=100, randomness=2):
"""
Turns on `xkcd <https://xkcd.com/>`_ sketch-style drawing mode.
Turn on `xkcd <https://xkcd.com/>`_ sketch-style drawing mode.
This will only have effect on things drawn after this function is
called.

Expand Down Expand Up @@ -410,7 +410,7 @@ def figure(num=None, # autoincrement if None, else integer from 1-N
**kwargs
):
"""
Creates a new figure.
Create a new figure.

Parameters
----------
Expand Down Expand Up @@ -575,6 +575,7 @@ def gcf():


def fignum_exists(num):
"""Return whether the figure with the given id exists."""
return _pylab_helpers.Gcf.has_fignum(num) or num in get_figlabels()


Expand All @@ -591,6 +592,11 @@ def get_figlabels():


def get_current_fig_manager():
"""
Return the figure manager of the active figure.

If there is currently no active figure, a new one is created.
"""
figManager = _pylab_helpers.Gcf.get_active()
if figManager is None:
gcf() # creates an active figure as a side effect
Expand Down
2 changes: 1 addition & 1 deletion lib/matplotlib/stackplot.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def stackplot(axes, x, *args,
labels=(), colors=None, baseline='zero',
**kwargs):
"""
Draws a stacked area plot.
Draw a stacked area plot.

Parameters
----------
Expand Down
2 changes: 1 addition & 1 deletion lib/matplotlib/streamplot.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def streamplot(axes, x, y, u, v, density=1, linewidth=None, color=None,
cmap=None, norm=None, arrowsize=1, arrowstyle='-|>',
minlength=0.1, transform=None, zorder=None, start_points=None,
maxlength=4.0, integration_direction='both'):
"""Draws streamlines of a vector flow.
"""Draw streamlines of a vector flow.

*x*, *y* : 1d arrays
an *evenly spaced* grid.
Expand Down