403Webshell
Server IP : 35.80.110.71  /  Your IP : 216.73.216.221
Web Server : Apache/2.4.58 (Ubuntu)
System : Linux ip-172-31-21-44 6.17.0-1019-aws #19~24.04.1-Ubuntu SMP Tue Jun 23 18:53:06 UTC 2026 x86_64
User : ubuntu ( 1000)
PHP Version : 8.3.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/matplotlib/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/matplotlib/__pycache__/stackplot.cpython-312.pyc
�

G8�c]��:�dZddlZddlZddlmZdgZdddd�d�Zy)	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��zero)�labels�colors�baselinec�V��tj|�}t|�}|�tj|�}n�fd�|D�}tj
|dtj|jtj���}tjgd�|��|dk(rd}	�nH|d	k(r(tj|d�d
z}	||	ddd�fz
}�n|dk(rO|jd}
||
d
z
tj|
�dd�dfz
zjd�}	|	|
z}	||	z
}n�|dk(r�tj|d�}tj|�}|dkD}
d
||
z||
<tj|dd�dd�ftj |�f�}||z
}|d
|zz
}||z}d
|dd�df<|d
z
|z}tj
|jd��}|d
|zz
}	||	z
}�j"|	|ddd�fft%|�t%|d�d�|��}dg|j&j(dd|g}t+t-|�dz
�D]M}|j/�j"|||dd�f||dzdd�fft%|�t%|d�d�|����O|S)a�
    Draw a stacked area plot.

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

    y : (M, N) array-like
        The data is assumed to be unstacked. Each of the following
        calls is legal::

            stackplot(x, y)           # where y has shape (M, N)
            stackplot(x, y1, y2, y3)  # 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 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.

    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.
    Nc3�R�K�|]}�jj���� y�w)N)�
_get_lines�get_next_color)�.0�_�axess  ��6/usr/lib/python3/dist-packages/matplotlib/stackplot.py�	<genexpr>zstackplot.<locals>.<genexpr>Ms�����>�q�$�/�/�0�0�2�>�s�$'r)�axis�dtype)r�sym�wiggle�weighted_wiggle)r	rgrg�?rrg�?�)�	facecolor�label)�np�	row_stack�iter�	itertools�cycle�cumsum�
promote_typesr�float32r�
check_in_list�sum�shape�arange�
zeros_like�hstack�diff�fill_between�next�sticky_edges�y�range�len�append)r�xrrr	�args�kwargsr-�stack�
first_line�m�total�	inv_total�mask�increase�
below_size�move_up�center�coll�r�is`                    rrrs����j	���T��A�
�&�\�F�
������(��>�A�>��
�I�I�a�a�r�'7�'7�������'L�M�E����C� (�*��6���
�	�U�	��f�f�Q��l�]�S�(�
�
��D�!�G�$�$��	�X�	�
�G�G�A�J���1�s�7�R�Y�Y�q�\�!�T�'�%:�:�;�@�@��C�
��q�b��
�
����	�&�	&����q�!����M�M�%�(�	��q�y����d��+�	�$���9�9�a��1�Q�3��i������4�5���U�]�
��c�A�g��
��y�(�����1��
��C�-�8�+�����6�:�:�a�=�)���c�E�k�)�
�
�����4���Q�
�E�!�Q�$�K�'�'+�F�|�4���;M�'�%�'�D� �S�D�������	
��A��3�q�6�A�:�
�.��	���"��"�"�1�e�A�q�D�k�5��Q����?�-�-1�&�\�)-�f�d�);�-�&,�-�	.�.�

�H�)�__doc__r�numpyr�
matplotlibr�__all__rrrAr�<module>rFs+�������-����v�m
rA

Youez - 2016 - github.com/yon3zu
LinuXploit