HEX
Server: LiteSpeed
System: Linux standart9.isimtescil.net 3.10.0-962.3.2.lve1.5.26.7.el7.x86_64 #1 SMP Wed Oct 2 07:53:12 EDT 2019 x86_64
User: karalev (5310)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: //opt/alt/python27/lib64/python2.7/site-packages/matplotlib/tight_bbox.pyc
�
�)�Uc@s�dZddlZddlmZmZmZd�Zd�Zd�Zd�Z	iZ
x!dd	d
gD]Zee
e<qhWx$ddd
dgD]Zee
e<q�WdS(sD
This module is to support *bbox_inches* option in savefig command.
i����N(tBboxtTransformedBboxtAffine2Dcs�j��j��jj�g�g�xu�jD]j}|jdt�j�}�j|j	���j|j
��|d�}|j|�|jd�q4W������fd�}t
j|�}|dk	r�|�|�|Stjd|�dSdS(sP
    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 whitch restores the original values are returned.
    toriginalcSs|S(N((tatrtpos((sH/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/tight_bbox.pyt_l stautocs�x@t�j���D])\}}}|j|�|j|�qW��_��_��j_�jj��j	j
dddd�dS(Nii(tziptaxest
set_aspecttset_axes_locatortbboxtbbox_inchesttransFiguret_boxoutt
invalidatetpatcht
set_bounds(taxtasptloc(Rtasp_listtfigtlocator_listtorigBboxtorigBboxInches(sH/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/tight_bbox.pytrestore_bbox&s%
		
s9bbox_inches option for %s backend is not implemented yet.N(R
RRRR
tget_positiontFalsetfrozentappendtget_axes_locatort
get_aspectRRt_adjust_bbox_handler_dtgettNonetwarningstwarn(RtformatRRRRRtadjust_bbox_handler((RRRRRRsH/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/tight_bbox.pytadjust_bbox
s&		

cCs�|j}t||�}|j|j}}tjdd|j|j�|_|j|j}}|j	j|j	j}}tj||||�|j
_|j
j�t|j|�|_	|j
j|||||j	j||j	j|�dS(s*
    adjust_bbox for png (Agg) format
    iN(tdpi_scale_transRtx0ty0Rtfrom_boundstwidththeightRR
RRRRR(RRttrt_bboxR,R-tw1th1((sH/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/tight_bbox.pytadjust_bbox_png;s		
c	Cs�t�jd�}t||�}tjdd|j|j�|_|j|j	}}d|j
}|jj||jj|}}tj||||�|j_
|jj�t|j|�|_|jj|||||jj||jj|�dS(s*
    adjust_bbox for pdf & eps format
    iHigR@N(RtscaleRRR.R/R0RR,R-tdpiR
RRRRR(	RRR1R2R,R-tfR3R4((sH/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/tight_bbox.pytadjust_bbox_pdfUs
!
cCs/|\}}|�t|||�}||fS(s�
    This need 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.
    (R*(tfiguretbbox_inches_restoretmodeRRR((sH/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/tight_bbox.pytprocess_figure_for_rasterizingns
			tpngtrawtrgbatpdftepstsvgtsvgz(t__doc__R&tmatplotlib.transformsRRRR*R5R9R=R#R((((sH/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/tight_bbox.pyt<module>s	1