Skip to content

Commit 2b5ee9a

Browse files
committed
take hatch out of stackplot named parameters
1 parent 9d77726 commit 2b5ee9a

File tree

1 file changed

+11
-15
lines changed

1 file changed

+11
-15
lines changed

lib/matplotlib/stackplot.py

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616

1717
def stackplot(axes, x, *args,
18-
labels=(), colors=None, hatch=None, baseline='zero',
18+
labels=(), colors=None, baseline='zero',
1919
**kwargs):
2020
"""
2121
Draw a stacked area plot or a streamgraph.
@@ -54,26 +54,23 @@ def stackplot(axes, x, *args,
5454
5555
If not specified, the colors from the Axes property cycle will be used.
5656
57-
hatch : list of str, default: None
58-
A sequence of hatching styles. See
59-
:doc:`/gallery/shapes_and_collections/hatch_style_reference`.
60-
The sequence will be cycled through for filling the
61-
stacked areas from bottom to top.
62-
It need not be exactly the same length as the number
63-
of provided *y*, in which case the styles will repeat from the
64-
beginning.
65-
66-
.. versionadded:: 3.9
67-
Support for list input
68-
6957
data : indexable object, optional
7058
DATA_PARAMETER_PLACEHOLDER
7159
7260
**kwargs
7361
All other keyword arguments are passed to `.Axes.fill_between`. The
7462
following parameters additionally accept a sequence of values
7563
corresponding to the *y* datasets:
76-
*edgecolor(s)*, *facecolor(s)*, *linewidth(s)*, *linestyle(s)*.
64+
65+
- *hatch*
66+
67+
.. versionadded:: 3.9
68+
Allowing a sequence of strings for *hatch*
69+
70+
- *edgecolor*
71+
- *facecolor*
72+
- *linewidth*
73+
- *linestyle*
7774
7875
.. versionadded:: 3.11
7976
Allowing sequences of values in above listed `.Axes.fill_between`
@@ -92,7 +89,6 @@ def stackplot(axes, x, *args,
9289
if colors is None:
9390
colors = [axes._get_lines.get_next_color() for _ in y]
9491

95-
kwargs['hatch'] = hatch
9692
kwargs = cbook.normalize_kwargs(kwargs, collections.PolyCollection)
9793
kwargs.setdefault('facecolor', colors)
9894

0 commit comments

Comments
 (0)