Skip to content

Commit 3e47cc2

Browse files
authored
Merge pull request matplotlib#27981 from timhoffm/doc-label
DOC: Fix label type specification in parameter descriptions
2 parents e4dc9a8 + 0f0efed commit 3e47cc2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/matplotlib/axes/_axes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3058,7 +3058,7 @@ def stem(self, *args, linefmt=None, markerfmt=None, basefmt=None, bottom=0,
30583058
bottom : float, default: 0
30593059
The y/x-position of the baseline (depending on *orientation*).
30603060
3061-
label : str, default: None
3061+
label : str, optional
30623062
The label to use for the stems in legends.
30633063
30643064
data : indexable object, optional
@@ -6834,7 +6834,7 @@ def hist(self, x, bins=None, range=None, density=False, weights=None,
68346834
Color or sequence of colors, one per dataset. Default (``None``)
68356835
uses the standard line color sequence.
68366836
6837-
label : str or None, default: None
6837+
label : str or list of str, optional
68386838
String, or sequence of strings to match multiple datasets. Bar
68396839
charts yield multiple patches per dataset, but only the first gets
68406840
the label, so that `~.Axes.legend` will work as expected.

lib/mpl_toolkits/mplot3d/axes3d.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3610,7 +3610,7 @@ def stem(self, x, y, z, *, linefmt='C0-', markerfmt='C0o', basefmt='C3-',
36103610
bottom : float, default: 0
36113611
The position of the baseline, in *orientation*-coordinates.
36123612
3613-
label : str, default: None
3613+
label : str, optional
36143614
The label to use for the stems in legends.
36153615
36163616
orientation : {'x', 'y', 'z'}, default: 'z'

0 commit comments

Comments
 (0)