| 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 : |
�
G8�c� � �n � d dl mZ d dlmZ d dlZd dlmZ d dlmZm Z
edgd�� d � � Zd
� Zd� Z
y)� )�BytesIO)�PathN)�image_comparison)�cm�pyplotzpngsuite.pngg���Q��?)�tolc �2 � t t t � j dz j d� � } t j t | � df�� t | � D ]Z \ }}t j |� }d }|j dk( rt j }t j |||dz ddg|�� �\ t j � j j! d� t j � 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�datar s �;/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 �
� | j d� }t |j d� � }t |j d� � }t j |� t |d� 5 }|j
� }d d d � t |d� 5 }|j d d � d d d � t j t � 5 t j |� d d d � y # 1 sw Y �jxY w# 1 sw Y �MxY w# 1 sw Y y xY w)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 � } t j | � | j d� t | j d� � }|j d� t j t � 5 t j |� d d d � y # 1 sw Y y xY w)Nr r* ) r r r. �seekr0 r2 r3 r4 r )�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 �pathlibr r2 �matplotlib.testing.decoratorsr �
matplotlibr r r r$ r; r@ � r% r# �<module>rF s<