Skip to content

Commit 87ff17c

Browse files
committed
Make some more kwargs be more explicit in docstrings.
1 parent 27da050 commit 87ff17c

File tree

5 files changed

+18
-18
lines changed

5 files changed

+18
-18
lines changed

lib/matplotlib/collections.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -920,12 +920,12 @@ def legend_elements(self, prop="colors", num="auto",
920920
the legend labels have the correct values;
921921
e.g. *func = np.exp(x, 10)*.
922922
kwargs : further parameters
923-
Allowed kwargs are *color* and *size*. E.g. it may be useful to
924-
set the color of the markers if *prop="sizes"* is used; similarly
925-
to set the size of the markers if *prop="colors"* is used.
926-
Any further parameters are passed onto the `.Line2D` instance.
927-
This may be useful to e.g. specify a different *markeredgecolor* or
928-
*alpha* for the legend handles.
923+
Allowed keyword arguments are *color* and *size*. E.g. it may be
924+
useful to set the color of the markers if *prop="sizes"* is used;
925+
similarly to set the size of the markers if *prop="colors"* is
926+
used. Any further parameters are passed onto the `.Line2D`
927+
instance. This may be useful to e.g. specify a different
928+
*markeredgecolor* or *alpha* for the legend handles.
929929
930930
Returns
931931
-------

lib/matplotlib/patches.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,7 @@ def __init__(self, patch, ox, oy, props=None, **kwargs):
600600
If *None*, the shadow will have have the same color as the face,
601601
but darkened.
602602
603-
kwargs are
603+
Valid keyword arguments are:
604604
605605
%(Patch)s
606606
"""
@@ -682,7 +682,7 @@ def __init__(self, xy, width, height, angle=0.0, **kwargs):
682682
683683
Notes
684684
-----
685-
Valid kwargs are:
685+
Valid keyword arguments are:
686686
687687
%(Patch)s
688688
"""
@@ -853,7 +853,7 @@ def __init__(self, xy, numVertices, radius=5, orientation=0,
853853
*orientation*
854854
rotates the polygon (in radians).
855855
856-
Valid kwargs are:
856+
Valid keyword arguments are:
857857
858858
%(Patch)s
859859
"""
@@ -931,7 +931,7 @@ def __init__(self, path, **kwargs):
931931
"""
932932
*path* is a :class:`matplotlib.path.Path` object.
933933
934-
Valid kwargs are:
934+
Valid keyword arguments are:
935935
936936
%(Patch)s
937937
"""
@@ -958,7 +958,7 @@ def __init__(self, xy, closed=True, **kwargs):
958958
If *closed* is *True*, the polygon will be closed so the
959959
starting and ending points are the same.
960960
961-
Valid kwargs are:
961+
Valid keyword arguments are:
962962
963963
%(Patch)s
964964
"""
@@ -1057,7 +1057,7 @@ def __init__(self, center, r, theta1, theta2, width=None, **kwargs):
10571057
then a partial wedge is drawn from inner radius *r* - *width*
10581058
to outer radius *r*.
10591059
1060-
Valid kwargs are:
1060+
Valid keyword arguments are:
10611061
10621062
%(Patch)s
10631063
"""
@@ -1316,7 +1316,7 @@ def __init__(self, xy, radius=5,
13161316
*resolution* sides. For a smoother circle drawn with splines,
13171317
see :class:`~matplotlib.patches.Circle`.
13181318
1319-
Valid kwargs are:
1319+
Valid keyword arguments are:
13201320
13211321
%(Patch)s
13221322
"""
@@ -1353,7 +1353,7 @@ def __init__(self, xy, width, height, angle=0, **kwargs):
13531353
13541354
Notes
13551355
-----
1356-
Valid keyword arguments are
1356+
Valid keyword arguments are:
13571357
13581358
%(Patch)s
13591359
"""
@@ -1431,7 +1431,7 @@ def __init__(self, xy, radius=5, **kwargs):
14311431
which is a polygonal approximation, this uses Bezier splines
14321432
and is much closer to a scale-free circle.
14331433
1434-
Valid kwargs are:
1434+
Valid keyword arguments are:
14351435
14361436
%(Patch)s
14371437
"""

lib/matplotlib/spines.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def __init__(self, axes, spine_type, path, **kwargs):
3838
- *spine_type* : a string specifying the spine type
3939
- *path* : the path instance used to draw the spine
4040
41-
Valid kwargs are:
41+
Valid keyword arguments are:
4242
4343
%(Patch)s
4444
"""

lib/matplotlib/table.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ def set_text_props(self, **kwargs):
171171
"""
172172
Update the text properties.
173173
174-
Valid kwargs are
174+
Valid keyword arguments are:
175175
176176
%(Text)s
177177
"""

lib/matplotlib/text.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def __init__(self,
135135
"""
136136
Create a `.Text` instance at *x*, *y* with string *text*.
137137
138-
Valid kwargs are
138+
Valid keyword arguments are:
139139
140140
%(Text)s
141141
"""

0 commit comments

Comments
 (0)