File: //opt/alt/python27/lib64/python2.7/site-packages/matplotlib/tight_bbox.pyc
�
�)�Uc @ s� d Z d d l Z d d l m Z m Z m Z d � Z d � Z d � Z d � Z i Z
x! d d d
g D] Z e e
e <qh Wx$ d d d
d g D] Z e e
e <q� Wd S( sD
This module is to support *bbox_inches* option in savefig command.
i����N( t Bboxt TransformedBboxt Affine2Dc s � j � � j � � j j � g � g � xu � j D]j } | j d t � j � } � j | j � � � j | j
� � | d � } | j | � | j d � q4 W� � � � � � f d � } t
j | � } | d k r� | � | � | St j d | � d Sd S( 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.
t originalc S s | S( N( ( t at rt pos( ( sH /opt/alt/python27/lib64/python2.7/site-packages/matplotlib/tight_bbox.pyt _l s t autoc s� x@ t � j � � � D]) \ } } } | j | � | j | � q W� � _ � � _ � � j _ � j j � � j j
d d d d � d S( Ni i ( t zipt axest
set_aspectt set_axes_locatort bboxt bbox_inchest transFiguret _boxoutt
invalidatet patcht
set_bounds( t axt aspt loc( R t asp_listt figt locator_listt origBboxt origBboxInches( sH /opt/alt/python27/lib64/python2.7/site-packages/matplotlib/tight_bbox.pyt restore_bbox&