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

Skip to content

Commit 557de7d

Browse files
committed
DOC: Fix numpydoc syntax, and parameters names.
Misc fixes for proper numpydoc parsing.
1 parent f5e3fac commit 557de7d

File tree

6 files changed

+5
-9
lines changed

6 files changed

+5
-9
lines changed

lib/matplotlib/axes/_axes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6077,7 +6077,7 @@ def pcolormesh(self, *args, alpha=None, norm=None, cmap=None, vmin=None,
60776077
snap : bool, default: False
60786078
Whether to snap the mesh to pixel boundaries.
60796079
6080-
rasterized: bool, optional
6080+
rasterized : bool, optional
60816081
Rasterize the pcolormesh when drawing vector graphics. This can
60826082
speed up rendering and produce smaller files for large data sets.
60836083
See also :doc:`/gallery/misc/rasterization_demo`.

lib/matplotlib/category.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ class StrCategoryLocator(ticker.Locator):
124124
def __init__(self, units_mapping):
125125
"""
126126
Parameters
127-
-----------
127+
----------
128128
units_mapping : dict
129129
Mapping of category names (str) to indices (int).
130130
"""

lib/matplotlib/cbook/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ def local_over_kwdict(local_var, kwargs, *keys):
345345
kwargs : dict
346346
Dictionary of keyword arguments; modified in place.
347347
348-
keys : str(s)
348+
*keys : str(s)
349349
Name(s) of keyword arguments to process, in descending order of
350350
priority.
351351

lib/matplotlib/contour.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1291,7 +1291,7 @@ def find_nearest_contour(self, x, y, indices=None, pixel=True):
12911291
12921292
Parameters
12931293
----------
1294-
x, y: float
1294+
x, y : float
12951295
The reference point.
12961296
indices : list of int or None, default: None
12971297
Indices of contour levels to consider. If None (the default), all

lib/matplotlib/mlab.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -187,10 +187,6 @@ def detrend_linear(y):
187187
y : 0-D or 1-D array or sequence
188188
Array or sequence containing the data
189189
190-
axis : int
191-
The axis along which to take the mean. See numpy.mean for a
192-
description of this argument.
193-
194190
See Also
195191
--------
196192
detrend_mean : Another detrend algorithm.

lib/matplotlib/patches.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ def set_antialiased(self, aa):
320320
321321
Parameters
322322
----------
323-
b : bool or None
323+
aa : bool or None
324324
"""
325325
if aa is None:
326326
aa = mpl.rcParams['patch.antialiased']

0 commit comments

Comments
 (0)