| Server IP : 202.61.199.114 / Your IP : 216.73.217.139 Web Server : nginx/1.22.1 System : Linux de.arni-solutions.de 6.1.0-49-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.174-1 (2026-05-26) x86_64 User : web20 ( 1018) PHP Version : 8.4.23 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/local/lib/python3.9/dist-packages/matplotlib/__pycache__/ |
Upload File : |
a
���h�
� @ s0 d Z ddlmZmZmZ ddd�Zd dd�ZdS )
zE
Helper module for the *bbox_inches* parameter in `.Figure.savefig`.
� )�Bbox�TransformedBbox�Affine2DNc
sz �j ��j��jj� g �g �t� ��jD ]~}|�� }|durL|�||d�� ��|� |j dd��
� }|�|fdd�� d|jv r���|j� n
���� ddd�|_q(� ������fdd �}|du rΈj
}t� �|�}|�j
}tjd
d
g|j�R � �_|�|j�\} }
�j j| \}}t�| |
||��j_�j�� t�j|��_ �j�| | |
| �j j| �j j| � |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 s |S �N� )�a�r�_posr r �@/usr/local/lib/python3.9/dist-packages/matplotlib/_tight_bbox.py�<lambda> � zadjust_bbox.<locals>.<lambda>�apply_aspectc S s d S r r )�posr r r r % r
c sl t �j���D ](\} }}| �|� |�u r0| `q|| _q��_��_� �j_�j�� �j �
dddd� d S )Nr � )�zip�axes�set_axes_locatorr �bbox�bbox_inches�transFigure�_boxout�
invalidate�patch�
set_bounds)�ax�locZaspect�r �figZlocator_listZ
old_aspectZorigBboxZorigBboxInches�sentinelr r �restore_bbox'