1515
1616
1717def 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