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/mpl_toolkits/axes_grid1/axes_size.pyc
�
[�3Lc@sdZddljZdefd��YZdefd��YZdefd��YZeZd	efd
��YZdefd��YZ	d
efd��YZ
defd��YZdefd��YZdefd��YZ
defd��YZdd�ZdS(s�
provides a classese of simlpe units that will be used with AxesDivider
class (or others) to determine the size of each axes. The unit
classes define `get_size` method that returns a tuple of two floats,
meaning relative and absolute sizes, respectively.

Note that this class is nothing more than a simple tuple of two
floats. Take a look at the Divider class to see how these two
values are used.

i����Nt_BasecBseZdZRS(s
Base class(t__name__t
__module__t__doc__(((sT/opt/alt/python27/lib64/python2.7/site-packages/mpl_toolkits/axes_grid1/axes_size.pyRstFixedcBs eZdZd�Zd�ZRS(sJSimple fixed size  with absolute part = *fixed_size* and relative part = 0cCs
||_dS(N(t
fixed_size(tselfR((sT/opt/alt/python27/lib64/python2.7/site-packages/mpl_toolkits/axes_grid1/axes_size.pyt__init__scCsd}|j}||fS(Ng(R(Rtrenderertrel_sizetabs_size((sT/opt/alt/python27/lib64/python2.7/site-packages/mpl_toolkits/axes_grid1/axes_size.pytget_sizes	(RRRRR(((sT/opt/alt/python27/lib64/python2.7/site-packages/mpl_toolkits/axes_grid1/axes_size.pyRs	tScaledcBs eZdZd�Zd�ZRS(sPSimple scaled(?) size with absolute part = 0 and relative part = *scalable_size*cCs
||_dS(N(t_scalable_size(Rt
scalable_size((sT/opt/alt/python27/lib64/python2.7/site-packages/mpl_toolkits/axes_grid1/axes_size.pyR"scCs|j}d}||fS(Ng(R
(RRR	R
((sT/opt/alt/python27/lib64/python2.7/site-packages/mpl_toolkits/axes_grid1/axes_size.pyR%s	(RRRRR(((sT/opt/alt/python27/lib64/python2.7/site-packages/mpl_toolkits/axes_grid1/axes_size.pyR s	tAxesXcBs#eZdZdd�Zd�ZRS(su
    Scaled size whose relative part corresponds to the data width
    of the *axes* multiplied by the *aspect*.
    g�?cCs||_||_dS(N(t_axest_aspect(Rtaxestaspect((sT/opt/alt/python27/lib64/python2.7/site-packages/mpl_toolkits/axes_grid1/axes_size.pyR2s	cCs<|jj�\}}t||�|j}d}||fS(Ng(Rtget_xlimtabsR(RRtl1tl2R	R
((sT/opt/alt/python27/lib64/python2.7/site-packages/mpl_toolkits/axes_grid1/axes_size.pyR6s(RRRRR(((sT/opt/alt/python27/lib64/python2.7/site-packages/mpl_toolkits/axes_grid1/axes_size.pyR-stAxesYcBs#eZdZdd�Zd�ZRS(sv
    Scaled size whose relative part corresponds to the data height
    of the *axes* multiplied by the *aspect*.
    g�?cCs||_||_dS(N(RR(RRR((sT/opt/alt/python27/lib64/python2.7/site-packages/mpl_toolkits/axes_grid1/axes_size.pyRAs	cCs<|jj�\}}t||�|j}d}||fS(Ng(Rtget_ylimRR(RRRRR	R
((sT/opt/alt/python27/lib64/python2.7/site-packages/mpl_toolkits/axes_grid1/axes_size.pyREs(RRRRR(((sT/opt/alt/python27/lib64/python2.7/site-packages/mpl_toolkits/axes_grid1/axes_size.pyR<st	MaxExtentcBs)eZdZd�Zd�Zd�ZRS(sc
    Size whose absolute part is the largest width (or height) of
    the given *artist_list*.
    cCs.||_|dkr!t��n||_dS(Ntwidththeight(swidthsheight(t_artist_listt
ValueErrort_w_or_h(Rtartist_listtw_or_h((sT/opt/alt/python27/lib64/python2.7/site-packages/mpl_toolkits/axes_grid1/axes_size.pyRQs	cCs|jj|�dS(N(Rtappend(Rta((sT/opt/alt/python27/lib64/python2.7/site-packages/mpl_toolkits/axes_grid1/axes_size.pyt
add_artistYsc	Cs�d}gg}}x@|jD]5}|j|�}|j|j�|j|j�qW|j�j�}|jdkr�t|�|}n"|jdkr�t|�|}n||fS(NgRR(	Rtget_window_extentR"RRt
get_figuretget_dpiRtmax(	RRR	tw_listth_listR#tbbtdpiR
((sT/opt/alt/python27/lib64/python2.7/site-packages/mpl_toolkits/axes_grid1/axes_size.pyR\s
(RRRRR$R(((sT/opt/alt/python27/lib64/python2.7/site-packages/mpl_toolkits/axes_grid1/axes_size.pyRLs		tMaxWidthcBs)eZdZd�Zd�Zd�ZRS(sW
    Size whose absolute part is the largest width of
    the given *artist_list*.
    cCs
||_dS(N(R(RR ((sT/opt/alt/python27/lib64/python2.7/site-packages/mpl_toolkits/axes_grid1/axes_size.pyRqscCs|jj|�dS(N(RR"(RR#((sT/opt/alt/python27/lib64/python2.7/site-packages/mpl_toolkits/axes_grid1/axes_size.pyR$tscCskd}g}x0|jD]%}|j|�}|j|j�qW|j�j�}t|�|}||fS(Ng(RR%R"RR&R'R((RRR	R)R#R+R,R
((sT/opt/alt/python27/lib64/python2.7/site-packages/mpl_toolkits/axes_grid1/axes_size.pyRws(RRRRR$R(((sT/opt/alt/python27/lib64/python2.7/site-packages/mpl_toolkits/axes_grid1/axes_size.pyR-ls		t	MaxHeightcBs)eZdZd�Zd�Zd�ZRS(sX
    Size whose absolute part is the largest height of
    the given *artist_list*.
    cCs
||_dS(N(R(RR ((sT/opt/alt/python27/lib64/python2.7/site-packages/mpl_toolkits/axes_grid1/axes_size.pyR�scCs|jj|�dS(N(RR"(RR#((sT/opt/alt/python27/lib64/python2.7/site-packages/mpl_toolkits/axes_grid1/axes_size.pyR$�scCskd}g}x0|jD]%}|j|�}|j|j�qW|j�j�}t|�|}||fS(Ng(RR%R"RR&R'R((RRR	R*R#R+R,R
((sT/opt/alt/python27/lib64/python2.7/site-packages/mpl_toolkits/axes_grid1/axes_size.pyR�s(RRRRR$R(((sT/opt/alt/python27/lib64/python2.7/site-packages/mpl_toolkits/axes_grid1/axes_size.pyR.�s		tFractioncBs eZdZd�Zd�ZRS(sl
    An instance whose size is a *fraction* of the *ref_size*.

      >>> s = Fraction(0.3, AxesX(ax))

    cCs||_||_dS(N(t
_fraction_reft	_fraction(Rtfractiontref_size((sT/opt/alt/python27/lib64/python2.7/site-packages/mpl_toolkits/axes_grid1/axes_size.pyR�s	cCs\|jdkr|jdfS|jj|�\}}||j}||j}||fSdS(Ng(R0tNoneR1R(RRtrR#R	R
((sT/opt/alt/python27/lib64/python2.7/site-packages/mpl_toolkits/axes_grid1/axes_size.pyR�s


(RRRRR(((sT/opt/alt/python27/lib64/python2.7/site-packages/mpl_toolkits/axes_grid1/axes_size.pyR/�s	tPaddedcBs eZdZd�Zd�ZRS(se
    Return a instance where the absolute part of *size* is
    increase by the amount of *pad*.
    cCs||_||_dS(N(t_sizet_pad(Rtsizetpad((sT/opt/alt/python27/lib64/python2.7/site-packages/mpl_toolkits/axes_grid1/axes_size.pyR�s	cCs5|jj|�\}}|}||j}||fS(N(R7RR8(RRR5R#R	R
((sT/opt/alt/python27/lib64/python2.7/site-packages/mpl_toolkits/axes_grid1/axes_size.pyR�s
(RRRRR(((sT/opt/alt/python27/lib64/python2.7/site-packages/mpl_toolkits/axes_grid1/axes_size.pyR6�s	cCsftj|�rt|�Stj|�rV|ddkrVtt|d �d|�Sntd��dS(s<
    Creates Fixed unit when the first argument is a float, or a
    Fraction unit if that is a string that ends with %. The second
    argument is only meaningful when Fraction unit is created.

      >>> a = Size.from_any(1.2) # => Size.Fixed(1.2)
      >>> Size.from_any("50%", a) # => Size.Fraction(0.5, a)

    i����t%gY@sUnknown formatN(tcbookt
is_numlikeRtis_string_likeR/tfloatR(R9tfraction_ref((sT/opt/alt/python27/lib64/python2.7/site-packages/mpl_toolkits/axes_grid1/axes_size.pytfrom_any�s

(Rtmatplotlib.cbookR<tobjectRRRtScalableRRRR-R.R/R6R4RA(((sT/opt/alt/python27/lib64/python2.7/site-packages/mpl_toolkits/axes_grid1/axes_size.pyt<module>s