403Webshell
Server IP : 35.80.110.71  /  Your IP : 216.73.216.170
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/tests/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

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

G8�cp��N�dZddlZddlZddlZddlZddlZddlZddlmZ	ddl
mZmZdd�Z
ejjddd	d
ddd
ej dddeeg��dej ddde��g	�d��Zejjdddg�d��Zy)z
Test output reproducibility.
�N)�pyplot)�needs_ghostscript�needs_usetex�mhic	�v�tj|�tjjd|d��t	j
�}d|vr�|j
ddd�}td�}|j|dgdzd��|j|d	gdzd
��|j|dgdzd��|j|d
gdzd��|j|dgdzd��d|vr�|j
ddd	�}|jtdd�tdd��|jtdd�dgd
ztdd���z}|jgd��d}t||�D]\}	}
|	j|
��d|vr�gd�gd�gd�g}|j
ddd�j|d��gd�gd�gd�g}|j
ddd
�j|d��gd�gd�gd�g}|j
ddd�j|d��td�}|j
ddd�}|j||�|jd�|jd�|j!d�t#t$j&d t$j&�}
|j)|
|�!�y)"N�asdf)zsvg.hashsaltztext.usetex�m���
�D)�marker��x��^��H��v�h)�bottom)g�?g@g@g@)�-�+r�\�*�o�O�.�i)r
rr)rrr
)rr
r�nearest)�
interpolation)r
rr�bilinear)rr
r�bicubiczA string $1+2+\sigma$�buffer)�format)�mpl�use�rcParams�update�plt�figure�add_subplot�range�plot�bar�
set_xticks�zip�	set_hatch�imshow�	set_title�
set_xlabel�
set_ylabel�getattr�sys�stdout�savefig)�objects�fmt�usetex�fig�ax1r�ax2�bars�patternsr0�pattern�A�axr:s              �C/usr/lib/python3/dist-packages/matplotlib/tests/test_determinism.py�_save_figurerHsb���G�G�C�L��L�L�����G�H�

�*�*�,�C�
�g�~��o�o�a��A�&���"�I������Q�C�"�H�S��)�����Q�C�"�H�S��)�����Q�C�"�H�S��)�����Q�C�"�H�S��)�����Q�C�"�H�S��)�
�g�~��o�o�a��A�&������a���U�1�a�[�1�����a���a�S�1�W�U�1�a�[��A�B�����+�,�<����h�/�	#�L�C���M�M�'�"�	#��g�~�
�	�9�-������1�a� �'�'���'�C�
�	�9�-������1�a� �'�'���'�D�
�	�9�-������1�a� �'�'���'�C�
�a��A�	����A�q�	!�B��G�G�A�q�M��L�L�)�*��M�M�*�+��M�M�*�+�
�S�Z�Z��3�:�:�
6�F��K�K��s�K�#�zobjects, fmt, usetex)��pdfF)r	rKF)rrKF)r rKF)rrKF)r�psFrLT)�marks)r�svgFrNc�>�td�D�cgc]J}tjtjddd|�d|�d|�d�git
j�ddd	���
���L}}|ddD]2}|d
k(r!|r||dk7s�tjd��)||dk(r�2J�ycc}w)a?
    Output three times the same graphs and checks that the outputs are exactly
    the same.

    Parameters
    ----------
    objects : str
        Objects to be included in the test document: 'm' for markers, 'h' for
        hatch patterns, 'i' for images.
    fmt : {"pdf", "ps", "svg"}
        Output format.
    r�-R�-czHfrom matplotlib.tests.test_determinism import _save_figure;_save_figure(z, �)�	946684800�Agg��SOURCE_DATE_EPOCH�
MPLBACKEND��envr
NrLrz+failed, maybe due to ghostscript timestamps)	r.�
subprocess�check_outputr9�
executable�os�environ�pytest�skip)r<r=r>�_�plots�ps      rG�test_determinism_checkrd@s���D�q��
�
�
	���
�^�^�T�4��$�K�r�#���6�(�!�=�
>�&�2�:�:�&�K�$�&�		'�
�E�
��1�2�Y�!���$�;�6��E�!�H�}����I�J���a��=� �=�!��
s�ABzfmt, string)rKs!/CreationDate (D:20000101000000Z))rLs(%%CreationDate: Sat Jan 01 00:00:00 2000c��tjtjddd|�d�gitj
�ddd����}||vsJ�y	)
a�
    Test SOURCE_DATE_EPOCH support. Output a document with the environment
    variable SOURCE_DATE_EPOCH set to 2000-01-01 00:00 UTC and check that the
    document contains the timestamp that corresponds to this date (given as an
    argument).

    Parameters
    ----------
    fmt : {"pdf", "ps", "svg"}
        Output format.
    string : bytes
        Timestamp string for 2000-01-01 00:00 UTC.
    rPrQzMfrom matplotlib.tests.test_determinism import _save_figure; _save_figure('', rRrSrTrUrXN)rZr[r9r\r]r^)r=�string�bufs   rG�"test_determinism_source_date_epochrhls]��0�
!�
!�	����t�� �G�1�
&�	'�
"�r�z�z�
"�� �
"�	#�C��S�=��=rI)�__doc__r]rZr9r_�
matplotlibr'�matplotlib.testing.comparerr+�matplotlib.testing._markersrrrH�mark�parametrize�paramrdrh�rIrG�<module>rqs����
��
�
��!�$�G�,$�^�����������������4��l�4E�%F�	H������U�E�4�|�<��
�!�
�!�<������5�
	<�
�	��	�rI

Youez - 2016 - github.com/yon3zu
LinuXploit