+
    i                     F    R t ^ RIt^ RIt^ RIHt R.tRR
RRRRRR/R	 ltR# )z
Stacked area plot for 1D arrays inspired by Douglas Y'barbo's stackoverflow
answer:
https://stackoverflow.com/q/2225995/

(https://stackoverflow.com/users/66549/doug)
N)_api	stackplotlabelscolorshatchbaselinezeroc                 a  \         P                  ! V4      p\        V4      pVe   \        P                  ! V4      pMV 3R lV 4       pVe   \        V\        4      '       d   \        P                  ! V.4      pM\        P                  ! V4      p\         P                  ! V^ \         P                  ! VP                  \         P                  4      R7      p	\        P                  ! . ROVR7       VR8X  d   R	p
EMVR8X  d1   \         P                  ! V^ 4      ) R
,          p
WR,          ,          p	EM\VR8X  df   VP                  ^ ,          pWR
,
          \         P                  ! V4      R,          ,
          ,          P                  ^ 4      p
W) ,          p
W,          p	MVR8X  d   \         P                  ! V^ 4      p\         P                   ! V4      pV^ 8  pRW,          ,          W&   \         P"                  ! VR,          \         P$                  ! V4      34      pW,
          pVR
V,          ,          pVV,          pR
VR&   VR
,
          V,          p\         P                  ! VP                  ^ 4      4      pVR
V,          ,
          p
W,          p	S P&                  ! VX
V	R,          3R\)        V4      R\)        V4      R\)        VR4      /VB p^ .VP*                  P,                  R&   V.p\/        \1        V4      ^,
          4       Fa  pVP3                  S P&                  ! WVR3,          V	V^,           R3,          3R\)        V4      R\)        V4      R\)        VR4      /VB 4       Kc  	  V# )a/  
Draw a stacked area plot or a streamgraph.

Parameters
----------
x : (N,) array-like

y : (M, N) array-like
    The data can be either stacked or unstacked. Each of the following
    calls is legal::

        stackplot(x, y)  # where y has shape (M, N) e.g. y = [y1, y2, y3, y4]
        stackplot(x, y1, y2, y3, y4)  # where y1, y2, y3, y4 have length N

baseline : {'zero', 'sym', 'wiggle', 'weighted_wiggle'}
    Method used to calculate the baseline:

    - ``'zero'``: Constant zero baseline, i.e. a simple stacked plot.
    - ``'sym'``:  Symmetric around zero and is sometimes called
      'ThemeRiver'.
    - ``'wiggle'``: Minimizes the sum of the squared slopes.
    - ``'weighted_wiggle'``: Does the same but weights to account for
      size of each layer. It is also called 'Streamgraph'-layout. More
      details can be found at http://leebyron.com/streamgraph/.

labels : list of str, optional
    A sequence of labels to assign to each data series. If unspecified,
    then no labels will be applied to artists.

colors : list of :mpltype:`color`, optional
    A sequence of colors to be cycled through and used to color the stacked
    areas. The sequence need not be exactly the same length as the number
    of provided *y*, in which case the colors will repeat from the
    beginning.

    If not specified, the colors from the Axes property cycle will be used.

hatch : list of str, default: None
    A sequence of hatching styles.  See
    :doc:`/gallery/shapes_and_collections/hatch_style_reference`.
    The sequence will be cycled through for filling the
    stacked areas from bottom to top.
    It need not be exactly the same length as the number
    of provided *y*, in which case the styles will repeat from the
    beginning.

    .. versionadded:: 3.9
       Support for list input

data : indexable object, optional
    DATA_PARAMETER_PLACEHOLDER

**kwargs
    All other keyword arguments are passed to `.Axes.fill_between`.

Returns
-------
list of `.PolyCollection`
    A list of `.PolyCollection` instances, one for each element in the
    stacked area plot.
Nc              3   X   <"   T F  pSP                   P                  4       x  K!  	  R # 5i)N)
_get_linesget_next_color).0_axess   & t/Users/tonyclaw/.openclaw/workspace/skills/math-calculator/venv/lib/python3.14/site-packages/matplotlib/stackplot.py	<genexpr>stackplot.<locals>.<genexpr>Y   s!     >Aq$//0022As   '*)axisdtyper   symwiggleweighted_wiggle)r   g        g      ?NNNg      ?	facecolorr   label)r   r   r   r   )Nr   )r   N)r   :       N)r   r   )r   r   )npvstackiter	itertoolscycle
isinstancestrcumsumpromote_typesr   float32r   check_in_listsumshapearange
zeros_likehstackdifffill_betweennextsticky_edgesyrangelenappend)r   xr   r   r   r   argskwargsr1   stack
first_linemtotal	inv_totalmaskincrease
below_sizemove_upcentercollris   f&$$$$*,              r   r   r      s   B 			$A&\F(>A>}
5#..(& IIaar'7'7'LMEC (*6
	U	ffQl]S(
G$$	X	GGAJs7RYYq\'%::;@@C
b
	&	&q!MM%(	qy+	99ai45]
cAg
y(C-8+6::a=)cEk)
 Q
E$K ''+F|'#';' $(#5'  &	'D
  SD	A 3q6A:	""1AqDk5Q? --1&\-)-e- *.fd);- &,	- 	.  H     )__doc__r    numpyr   
matplotlibr   __all__r   rF   rE   r   <module>rK      sF      -AA $A,0A;AArE   