Skip to content

Commit d2ec53b

Browse files
committed
Minor docstring fixes
1 parent ff059c0 commit d2ec53b

File tree

4 files changed

+11
-5
lines changed

4 files changed

+11
-5
lines changed

lib/matplotlib/axes/_axes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ def get_legend_handles_labels(self, legend_handler_map=None):
273273
@docstring.dedent_interpd
274274
def legend(self, *args, **kwargs):
275275
"""
276-
Places a legend on the axes.
276+
Place a legend on the axes.
277277
278278
Call signatures::
279279

lib/matplotlib/pyplot.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ def setp(obj, *args, **kwargs):
341341

342342
def xkcd(scale=1, length=100, randomness=2):
343343
"""
344-
Turns on `xkcd <https://xkcd.com/>`_ sketch-style drawing mode.
344+
Turn on `xkcd <https://xkcd.com/>`_ sketch-style drawing mode.
345345
This will only have effect on things drawn after this function is
346346
called.
347347
@@ -410,7 +410,7 @@ def figure(num=None, # autoincrement if None, else integer from 1-N
410410
**kwargs
411411
):
412412
"""
413-
Creates a new figure.
413+
Create a new figure.
414414
415415
Parameters
416416
----------
@@ -575,6 +575,7 @@ def gcf():
575575

576576

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

580581

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

592593

593594
def get_current_fig_manager():
595+
"""
596+
Return the figure manager of the active figure.
597+
598+
If there is currently no active figure, a new one is created.
599+
"""
594600
figManager = _pylab_helpers.Gcf.get_active()
595601
if figManager is None:
596602
gcf() # creates an active figure as a side effect

lib/matplotlib/stackplot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def stackplot(axes, x, *args,
1515
labels=(), colors=None, baseline='zero',
1616
**kwargs):
1717
"""
18-
Draws a stacked area plot.
18+
Draw a stacked area plot.
1919
2020
Parameters
2121
----------

lib/matplotlib/streamplot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def streamplot(axes, x, y, u, v, density=1, linewidth=None, color=None,
2020
cmap=None, norm=None, arrowsize=1, arrowstyle='-|>',
2121
minlength=0.1, transform=None, zorder=None, start_points=None,
2222
maxlength=4.0, integration_direction='both'):
23-
"""Draws streamlines of a vector flow.
23+
"""Draw streamlines of a vector flow.
2424
2525
*x*, *y* : 1d arrays
2626
an *evenly spaced* grid.

0 commit comments

Comments
 (0)