8000 Merge pull request #18344 from anntzer/names · brunobeltran/matplotlib@8413b23 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8413b23

Browse files
authored
Merge pull request matplotlib#18344 from anntzer/names
More nouns/imperative forms in docs.
2 parents 65986ff + 5900b3e commit 8413b23

File tree

4 files changed

+10
-11
lines changed

4 files changed

+10
-11
lines changed

lib/matplotlib/artist.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -673,7 +673,7 @@ def get_sketch_params(self):
673673

674674
def set_sketch_params(self, scale=None, length=None, randomness=None):
675675
"""
676-
Sets the sketch parameters.
676+
Set the sketch parameters.
677677
678678
Parameters
679679
----------

lib/matplotlib/axes/_axes.py

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3641,14 +3641,13 @@ def boxplot(self, x, notch=None, sym=None, vert=None, whis=None,
36413641
parameters (e.g., *bootstrap*).
36423642
36433643
positions : array-like, optional
3644-
Sets the positions of the boxes. The ticks and limits are
3644+
The positions of the boxes. The ticks and limits are
36453645
automatically set to match the positions. Defaults to
36463646
``range(1, N+1)`` where N is the number of boxes to be drawn.
36473647
36483648
widths : float or array-like
3649-
Sets the width of each box either with a scalar or a
3650-
sequence. The default is 0.5, or ``0.15*(distance between
3651-
extreme positions)``, if that is smaller.
3649+
The widths of the boxes. The default is 0.5, or ``0.15*(distance
3650+
between extreme positions)``, if that is smaller.
36523651
36533652
patch_artist : bool, default: False
36543653
If `False` produces boxes with the Line2D artist. Otherwise,
@@ -3673,7 +3672,7 @@ def boxplot(self, x, notch=None, sym=None, vert=None, whis=None,
36733672
True. Otherwise, means will be shown as points.
36743673
36753674
zorder : float, default: ``Line2D.zorder = 2``
3676-
Sets the zorder of the boxplot.
3675+
The zorder of the boxplot.
36773676
36783677
Returns
36793678
-------
@@ -3887,7 +3886,7 @@ def bxp(self, bxpstats, positions=None, widths=None, vert=True,
38873886
this will be used a tick label for the boxplot
38883887
38893888
positions : array-like, default: [1, 2, ..., n]
3890-
Sets the positions of the boxes. The ticks and limits
3889+
The positions of the boxes. The ticks and limits
38913890
are automatically set to match the positions.
38923891
38933892
widths : array-like, default: None
@@ -7832,7 +7831,7 @@ def violinplot(self, dataset, positions=None, vert=True, widths=0.5,
78327831
The input data.
78337832
78347833
positions : array-like, default: [1, 2, ..., n]
7835-
Sets the positions of the violins. The ticks and limits are
7834+
The positions of the violins. The ticks and limits are
78367835
automatically set to match the positions.
78377836
78387837
vert : bool, default: True.
@@ -7951,7 +7950,7 @@ def violin(self, vpstats, positions=None, vert=True, widths=0.5,
79517950
for this violin's dataset.
79527951
79537952
positions : array-like, default: [1, 2, ..., n]
7954-
Sets the positions of the violins. The ticks and limits are
7953+
The positions of the violins. The ticks and limits are
79557954
automatically set to match the positions.
79567955
79577956
vert : bool, default: True.

lib/matplotlib/axis.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1882,7 +1882,7 @@ def zoom(self, direction):
18821882

18831883
def axis_date(self, tz=None):
18841884
"""
1885-
Sets up axis ticks and labels to treat data along this Axis as dates.
1885+
Set up axis ticks and labels to treat data along this Axis as dates.
18861886
18871887
Parameters
18881888
----------

lib/matplotlib/legend.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ def _update_bbox_to_anchor(self, loc_in_canvas):
173173
default font size. This argument is only used if *prop* is not specified.
174174
175175
labelcolor : str or list
176-
Sets the color of the text in the legend. Can be a valid color string
176+
The color of the text in the legend. Either a valid color string
177177
(for example, 'red'), or a list of color strings. The labelcolor can
178178
also be made to match the color of the line or marker using 'linecolor',
179179
'markerfacecolor' (or 'mfc'), or 'markeredgecolor' (or 'mec').

0 commit comments

Comments
 (0)
0