KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache
System : Linux server112.speedpacket.com 3.10.0-962.3.2.lve1.5.36.el7.x86_64 #1 SMP Mon May 18 02:16:06 EDT 2020 x86_64
User : equistyl ( 1341)
PHP Version : 8.1.30
Disable Function : NONE
Directory :  /lib64/python2.7/site-packages/matplotlib/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib64/python2.7/site-packages/matplotlib/tight_bbox.pyc
�
r`]c@s�dZddlmZddlZddlmZmZmZd�Zd�Z	d�Z
d�ZiZx*d	d
ddd
dgD]Z
e	ee
<q�Wx$ddddgD]Z
e
ee
<q�WdS(sD
This module is to support *bbox_inches* option in savefig command.
i����(tprint_functionN(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(sO
    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.
    toriginalcSs|S(N((tatrtpos((s;/usr/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(s;/usr/lib64/python2.7/site-packages/matplotlib/tight_bbox.pytrestore_bbox%s%
		
s9bbox_inches option for %s backend is not implemented yet.N(RRRRRtget_positiontFalsetfrozentappendtget_axes_locatort
get_aspectR
Rt_adjust_bbox_handler_dtgettNonetwarningstwarn(RtformatRRRRRtadjust_bbox_handler((RRRRRRs;/usr/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_boundstwidththeightRRRRRRR(RRttrt_bboxR-R.tw1th1((s;/usr/lib64/python2.7/site-packages/matplotlib/tight_bbox.pytadjust_bbox_png;s		
c	Cs1|jjjdkr3t�j|j�}d}nt�jd�}d|j}t||�}tjdd|j	|j
�|_|j|j
}}|jj	||jj
|}}tj||||�|j_|jj�t|j|�|_|jj|||||jj	||jj
|�dS(s*
    adjust_bbox for pdf & eps format
    tRendererPgfg�?iHgR@iN(t_cachedRenderert	__class__t__name__RtscaletdpiRRR/R0R1RR-R.RRRRRR(	RRR2tfR3R-R.R4R5((s;/usr/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((s;/usr/lib64/python2.7/site-packages/matplotlib/tight_bbox.pytprocess_figure_for_rasterizingrs
			tpngtrawtrgbatjpgtjpegttifftpdftepstsvgtsvgz(t__doc__t
__future__RR'tmatplotlib.transformsRRRR+R6R>RBR$R)(((s;/usr/lib64/python2.7/site-packages/matplotlib/tight_bbox.pyt<module>s	1			

Anon7 - 2021