/usr/lib64/python2.6/site-packages/matplotlib
NameSizeModeActions
backends/-0755rm
delaunay/-0755rm
mpl-data/-0755rm
numerix/-0755rm
projections/-0755rm
sphinxext/-0755rm
afm.py150890644editdlrm
afm.pyc169590644editdlrm
afm.pyo169590644editdlrm
artist.py356230644editdlrm
artist.pyc403260644editdlrm
artist.pyo403260644editdlrm
axes.py2800890644editdlrm
axes.pyc2493960644editdlrm
axes.pyo2482840644editdlrm
axis.py573540644editdlrm
axis.pyc589730644editdlrm
axis.pyo586660644editdlrm
backend_bases.py723180644editdlrm
backend_bases.pyc779670644editdlrm
backend_bases.pyo778770644editdlrm
bezier.py149170644editdlrm
bezier.pyc135260644editdlrm
bezier.pyo135260644editdlrm
blocking_input.py136900644editdlrm
blocking_input.pyc143460644editdlrm
blocking_input.pyo140280644editdlrm
cbook.py427560644editdlrm
cbook.pyc567550644editdlrm
cbook.pyo565290644editdlrm
cm.py80980644editdlrm
cm.pyc97720644editdlrm
cm.pyo97720644editdlrm
collections.py407840644editdlrm
collections.pyc440060644editdlrm
collections.pyo440060644editdlrm
colorbar.py274560644editdlrm
colorbar.pyc254970644editdlrm
colorbar.pyo254970644editdlrm
colors.py391100644editdlrm
colors.pyc400790644editdlrm
colors.pyo400790644editdlrm
contour.py428950644editdlrm
contour.pyc360990644editdlrm
contour.pyo359370644editdlrm
dates.py360070755editdlrm
dates.pyc400170644editdlrm
dates.pyo399530644editdlrm
dviread.py320330644editdlrm
dviread.pyc346820644editdlrm
dviread.pyo345390644editdlrm
figure.py412640644editdlrm
figure.pyc429390644editdlrm
figure.pyo428080644editdlrm
finance.py205820644editdlrm
finance.pyc185190644editdlrm
finance.pyo183590644editdlrm
fontconfig_pattern.py64290644editdlrm
fontconfig_pattern.pyc65190644editdlrm
fontconfig_pattern.pyo65190644editdlrm
font_manager.py426530644editdlrm
font_manager.pyc404560644editdlrm
font_manager.pyo404560644editdlrm
ft2font.so3061680775editdlrm
hatch.py65640644editdlrm
hatch.pyc91200644editdlrm
hatch.pyo91200644editdlrm
image.py315400644editdlrm
image.pyc330420644editdlrm
image.pyo329960644editdlrm
legend.py323020644editdlrm
legend.pyc235510644editdlrm
legend.pyo233780644editdlrm
lines.py546850644editdlrm
lines.pyc564310644editdlrm
lines.pyo563260644editdlrm
mathtext.py1020090644editdlrm
mathtext.pyc1030670644editdlrm
mathtext.pyo1026790644editdlrm
mlab.py942940644editdlrm
mlab.pyc1000040644editdlrm
mlab.pyo998240644editdlrm
mpl.py7850644editdlrm
mpl.pyc11760644editdlrm
mpl.pyo11760644editdlrm
nxutils.so95120775editdlrm
offsetbox.py298070644editdlrm
offsetbox.pyc338890644editdlrm
offsetbox.pyo338340644editdlrm
patches.py1284850644editdlrm
patches.pyc1301480644editdlrm
patches.pyo1300100644editdlrm
path.py217650644editdlrm
path.pyc211740644editdlrm
path.pyo209540644editdlrm
pylab.py109810644editdlrm
pylab.pyc123990644editdlrm
pylab.pyo123990644editdlrm
pyparsing.py1439240644editdlrm
pyparsing.pyc1467370644editdlrm
pyparsing.pyo1467370644editdlrm
pyplot.py824680644editdlrm
pyplot.pyc802790644editdlrm
pyplot.pyo802790644editdlrm
quiver.py375400644editdlrm
quiver.pyc337880644editdlrm
quiver.pyo337880644editdlrm
rcsetup.py234340644editdlrm
rcsetup.pyc211190644editdlrm
rcsetup.pyo209490644editdlrm
scale.py142330644editdlrm
scale.pyc194740644editdlrm
scale.pyo194740644editdlrm
spines.py126840644editdlrm
spines.pyc116360644editdlrm
spines.pyo112090644editdlrm
table.py168280644editdlrm
table.pyc169310644editdlrm
table.pyo167800644editdlrm
texmanager.py224640644editdlrm
texmanager.pyc199620644editdlrm
texmanager.pyo199620644editdlrm
text.py598220644editdlrm
text.pyc592400644editdlrm
text.pyo592400644editdlrm
ticker.py404280644editdlrm
ticker.pyc504610644editdlrm
ticker.pyo503250644editdlrm
tight_bbox.py36550644editdlrm
tight_bbox.pyc40660644editdlrm
tight_bbox.pyo40660644editdlrm
transforms.py753870644editdlrm
transforms.pyc896110644editdlrm
transforms.pyo887020644editdlrm
ttconv.so653600775editdlrm
type1font.py115370644editdlrm
type1font.pyc112560644editdlrm
type1font.pyo112560644editdlrm
units.py49760644editdlrm
units.pyc57750644editdlrm
units.pyo57750644editdlrm
widgets.py408330644editdlrm
widgets.pyc425680644editdlrm
widgets.pyo423820644editdlrm
windowing.py4540644editdlrm
windowing.pyc12830644editdlrm
windowing.pyo12830644editdlrm
_cm.py3704140644editdlrm
_cm.pyc1030420644editdlrm
_cm.pyo1030420644editdlrm
_cntr.so211840775editdlrm
_delaunay.so611200775editdlrm
_image.so2822480775editdlrm
_mathtext_data.py579900644editdlrm
_mathtext_data.pyc637870644editdlrm
_mathtext_data.pyo637870644editdlrm
_path.so2799920775editdlrm
_png.so1564720775editdlrm
_pylab_helpers.py27150644editdlrm
_pylab_helpers.pyc37080644editdlrm
_pylab_helpers.pyo37080644editdlrm
__init__.py289720644editdlrm
__init__.pyc289800644editdlrm
__init__.pyo289260644editdlrm
Edit: /usr/lib64/python2.6/site-packages/matplotlib/offsetbox.pyo (33834B)
Jc @sdZddkiZddkiZddkiZ ddk Z ddkl Z l Z lZlZddklZddklZddklZddklZeZdZd d Zd d Zd eifdYZdefdYZdefdYZdefdYZ defdYZ!defdYZ"defdYZ#defdYZ$dS(s The OffsetBox is a simple container artist. The child artist are meant to be drawn at a relative position to its parent. The [VH]Packer, DrawingArea and TextArea are derived from the OffsetBox. The [VH]Packer automatically adjust the relative postisions of their children, which should be instances of the OffsetBox. This is used to align similar artists together, e.g., in legend. The DrawingArea can contain any Artist as a child. The DrawingArea has a fixed width and height. The position of children relative to the parent is fixed. The TextArea is contains a single Text instance. The width and height of the TextArea instance is the width and height of the its child text. iN(tBboxtBboxBasetTransformedBboxtBboxTransformTo(tFontProperties(tFancyBboxPatch(trcParams(t bbox_artistcOstot||ndS(N(tDEBUGt mbbox_artist(targstkwargs((s:/usr/lib64/python2.6/site-packages/matplotlib/offsetbox.pyRstfixedcCst|\}}|djoltiidgg}|D]}|||q9~}|d } |djo|d|}n|| fS|djok|t|t|d}tiidgg} |D]}| ||q~ }|d } || fS|djot|} |djo| |t|}nt|t|| }ti g} t t|D]} | | || qx~ } || fSt d|fdS( s Geiven a list of (width, xdescent) of each boxes, calculate the total width and the x-offset positions of each items according to *mode*. xdescent is analagous to the usual descent, but along the x-direction. xdescent values are currently ignored. *wd_list* : list of (width, xdescent) of boxes to be packed. *sep* : spacing between boxes *total* : Intended total length. None if not used. *mode* : packing mode. 'fixed', 'expand', or 'equal'. R iitexpandg?tequalsUnknown mode : %sN( tziptnptaddt accumulatetNonetsumtlentmaxtfloattarraytranget ValueError(twd_listttotaltseptmodetw_listtd_listt_[1]twtoffsets_toffsetst_[2]tmaxht_[3]ti((s:/usr/lib64/python2.6/site-packages/matplotlib/offsetbox.pyt_get_packed_offsets(s(  8    8     > tbaselinec Cs|d jo1tg}|D]\}}||q~}n|djotg}|D]\}}|||qY~}tg}|D]\}}||q~} || }g} |D]\}}| dq~ } n|d jo1d} g} |D]\}}| |q~ } n|d jo9d} g} |D]\}}| |||q:~ } n^|djo=d} g}|D]\}}|||d|q~} ntd |f|| | fS( s* Geiven a list of (height, descent) of each boxes, align the boxes with *align* and calculate the y-offsets of each boxes. total width and the offset positions of each items according to *mode*. xdescent is analagous to the usual descent, but along the x-direction. xdescent values are currently ignored. *hd_list* : list of (width, xdescent) of boxes to be aligned. *sep* : spacing between boxes *height* : Intended total length. None if not used. *align* : align mode. 'baseline', 'top', 'bottom', or 'center'. R*gtleftttoptrighttbottomtcenterg?sUnknown Align mode : %sN(R+stop(R-R.(RRR(thd_listtheighttalignR!thtdR%theight_descentR'tdescentt_[4]R$t_[5]t_[6]t_[7]((s:/usr/lib64/python2.6/site-packages/matplotlib/offsetbox.pyt_get_aligned_offsetsWs$ 1 1- + + 3 7t OffsetBoxcBszeZdZdZdZdZdZdZdZdZ dZ d Z d Z d Z d ZRS( s The OffsetBox is a simple container artist. The child artist are meant to be drawn at a relative position to its parent. cOs/tt|i||g|_d|_dS(Ni(ii(tsuperR<t__init__t _childrent_offset(tselfR R ((s:/usr/lib64/python2.6/site-packages/matplotlib/offsetbox.pyR>s cCs;tii||x!|iD]}|i|q WdS(s^ Set the figure accepts a class:`~matplotlib.figure.Figure` instance N(tmartisttArtistt set_figuret get_children(RAtfigtc((s:/usr/lib64/python2.6/site-packages/matplotlib/offsetbox.pyRDs cCs ||_dS(sT Set the offset accepts x, y, tuple, or a callable object. N(R@(RAtxy((s:/usr/lib64/python2.6/site-packages/matplotlib/offsetbox.pyt set_offsetscCs2t|io|i||||S|iSdS(sC Get the offset accepts extent of the box N(tcallableR@(RAtwidthR1txdescenttydescent((s:/usr/lib64/python2.6/site-packages/matplotlib/offsetbox.pyt get_offsetscCs ||_dS(s6 Set the width accepts float N(RK(RARK((s:/usr/lib64/python2.6/site-packages/matplotlib/offsetbox.pyt set_widthscCs ||_dS(s7 Set the height accepts float N(R1(RAR1((s:/usr/lib64/python2.6/site-packages/matplotlib/offsetbox.pyt set_heightscCs3g}|iD]}|io ||qq~S(s? Return a list of visible artists it contains. (R?t get_visible(RAR!RG((s:/usr/lib64/python2.6/site-packages/matplotlib/offsetbox.pytget_visible_childrenscCs|iS(s7 Return a list of artists it contains. (R?(RA((s:/usr/lib64/python2.6/site-packages/matplotlib/offsetbox.pyREscCstddS(Nt(t Exception(RAtrenderer((s:/usr/lib64/python2.6/site-packages/matplotlib/offsetbox.pytget_extent_offsetsscCs.|i|\}}}}}||||fS(s@ Return with, height, xdescent, ydescent of box (RV(RARUR"R3txdtydR$((s:/usr/lib64/python2.6/site-packages/matplotlib/offsetbox.pyt get_extentsc Cs]|i|\}}}}}|i||||\}}tii||||||S(s8 get the bounding box in display space. (RVRNt mtransformsRt from_bounds( RARUR"R3RWRXR$tpxtpy((s:/usr/lib64/python2.6/site-packages/matplotlib/offsetbox.pytget_window_extentsc Cs|i|\}}}}}|i||||\}}xQt|i|D]:\} \} } | i|| || f| i|qRWt||dtdtdddS(sm Update the location of children if necessary and draw them to the given *renderer*. tfilltpropstpadgN( RVRNRRRRItdrawRtFalsetdict( RARURKR1RLRMR$R\R]RGtoxtoy((s:/usr/lib64/python2.6/site-packages/matplotlib/offsetbox.pyRbs(t__name__t __module__t__doc__R>RDRIRNRORPRRRERVRYR^Rb(((s:/usr/lib64/python2.6/site-packages/matplotlib/offsetbox.pyR<}s         t PackerBasecBs&eZddddddddZRS(cCsVtt|i||_||_||_||_||_||_||_ dS(s *pad* : boundary pad *sep* : spacing between items *width*, *height* : width and height of the container box. calculated if None. *align* : alignment of boxes. Can be one of 'top', 'bottom', 'left', 'right', 'center' and 'baseline' *mode* : packing mode .. note:: *pad* and *sep* need to given in points and will be scale with the renderer dpi, while *width* and *hight* need to be in pixels. N( R=RjR>R1RKRRaRR2R?(RARaRRKR1R2Rtchildren((s:/usr/lib64/python2.6/site-packages/matplotlib/offsetbox.pyR>s      N(RgRhRR>(((s:/usr/lib64/python2.6/site-packages/matplotlib/offsetbox.pyRjs tVPackercBs5eZdZddddddddZdZRS(s The VPacker has its children packed vertically. It automatically adjust the relative postisions of children in the drawing time. R*R cCs,tt|i|||||||dS(s *pad* : boundary pad *sep* : spacing between items *width*, *height* : width and height of the container box. calculated if None. *align* : alignment of boxes *mode* : packing mode .. note:: *pad* and *sep* need to given in points and will be scale with the renderer dpi, while *width* and *hight* need to be in pixels. N(R=RlR>(RARaRRKR1R2RRk((s:/usr/lib64/python2.6/site-packages/matplotlib/offsetbox.pyR>scCs$|id}|i|}|i|}|idj oOxL|iD]:}t|to$|idjo|i |iqFqFWng}|iD]}||i |q~}g}|D])\} } } } || | | | | fq~}g} |D]\} } } } | | | fq~ }t ||i|i \}}}g}|D]\} } } } || | fqT~}t ||i||i\}}|g}|D]\} } } } || q~}||d}||}||}|d||d|||||t||fS(sN update offset of childrens and return the extents of the box g?R iiN(tpoints_to_pixelsRaRRKRRRt isinstanceRjRRORYR;R2R)R1R(RARUtdpicorRaRRGR!twhd_listR%R"R3RWRXR'RRKRLtxoffsetsR7t pack_listR1t yoffsets_R8tyoffsetsRM((s:/usr/lib64/python2.6/site-packages/matplotlib/offsetbox.pyRVs0    0=33 1  N(RgRhRiRR>RV(((s:/usr/lib64/python2.6/site-packages/matplotlib/offsetbox.pyRls   tHPackercBs5eZdZddddddddZdZRS(s The HPacker has its children packed horizontally. It automatically adjust the relative postisions of children in the drawing time. R*R cCs,tt|i|||||||dS(s *pad* : boundary pad *sep* : spacing between items *width*, *height* : width and height of the container box. calculated if None. *align* : alignment of boxes *mode* : packing mode .. note:: *pad* and *sep* need to given in points and will be scale with the renderer dpi, while *width* and *hight* need to be in pixels. N(R=RuR>(RARaRRKR1R2RRk((s:/usr/lib64/python2.6/site-packages/matplotlib/offsetbox.pyR>KscCs|id}|i|}|i|}g}|iD]}||i|q:~}|idjoxtg}|D]\} } } } || | qw~} tg}|D]\} } } } || q~}| |}n|id|}g}|D]\} } } } || | fq~}t||i|i \}}}g}|D]\} } } } || | fqQ~}t ||i ||i \}}|g}|D]\} } } } || q~}|dd}||}|d||d|||||t ||fS(sN update offset of childrens and return the extents of the box g?iiN(RmRaRRRRYR1RRR;R2R)RKRR(RARURoRaRR!RGRpR%R"R3RWRXR5R'RMR1R7R0RtR8RrRKt xoffsets_R9RqRL((s:/usr/lib64/python2.6/site-packages/matplotlib/offsetbox.pyRV_s,  07333 1 N(RgRhRiRR>RV(((s:/usr/lib64/python2.6/site-packages/matplotlib/offsetbox.pyRuFs   t DrawingAreacBsheZdZddedZdZdZdZdZdZ dZ d Z d Z RS( s The DrawingArea can contain any Artist as a child. The DrawingArea has a fixed width and height. The position of children relative to the parent is fixed. gcCsytt|i||_||_||_||_ti|_ |i i |i i ddti|_ dS(s *width*, *height* : width and height of the container box. *xdescent*, *ydescent* : descent of the box in x- and y-direction. iN( R=RwR>RKR1RLRMRZtAffine2Dtoffset_transformtcleart translatet dpi_transform(RARKR1RLRMtclip((s:/usr/lib64/python2.6/site-packages/matplotlib/offsetbox.pyR>s     cCs|i|iS(sf Return the :class:`~matplotlib.transforms.Transform` applied to the children (R|Ry(RA((s:/usr/lib64/python2.6/site-packages/matplotlib/offsetbox.pyt get_transformscCsdS(s+ set_transform is ignored. N((RAtt((s:/usr/lib64/python2.6/site-packages/matplotlib/offsetbox.pyt set_transformscCs5||_|ii|ii|d|ddS(sj set offset of the container. Accept : tuple of x,y cooridnate in disokay units. iiN(R@RyRzR{(RARH((s:/usr/lib64/python2.6/site-packages/matplotlib/offsetbox.pyRIs  cCs|iS(s1 return offset of the container. (R@(RA((s:/usr/lib64/python2.6/site-packages/matplotlib/offsetbox.pyRNscCsN|i|\}}}}|i\}}tii||||||S(s8 get the bounding box in display space. (RYRNRZRR[(RARUR"R3RWRXReRf((s:/usr/lib64/python2.6/site-packages/matplotlib/offsetbox.pyR^scCs;|id}|i||i||i||i|fS(s@ Return with, height, xdescent, ydescent of box g?(RmRKR1RLRM(RARUtdpi_cor((s:/usr/lib64/python2.6/site-packages/matplotlib/offsetbox.pyRYscCs'|ii||i|idS(s?Add any :class:`~matplotlib.artist.Artist` to the container boxN(R?tappendRR~(RAta((s:/usr/lib64/python2.6/site-packages/matplotlib/offsetbox.pyt add_artistsc Csv|id}|ii|ii||x|iD]}|i|q9Wt||dtdtdddS(s# Draw the children g?R_R`RagN( RmR|RztscaleR?RbRRcRd(RARURRG((s:/usr/lib64/python2.6/site-packages/matplotlib/offsetbox.pyRbs  ( RgRhRitTrueR>R~RRIRNR^RYRRb(((s:/usr/lib64/python2.6/site-packages/matplotlib/offsetbox.pyRws    tTextAreacBseZdZddedZdZdZdZdZ dZ dZ dZ d Z d Zd Zd Zd ZRS(s The TextArea is contains a single Text instance. The text is placed at (0,0) with baseline+left alignment. The width and height of the TextArea instance is the width and height of the its child text. cCs|djo h}n|idpd|dR?RZRxRyRzR{t_baseline_transformRt_multilinebaselinet_minimumdescent(RAtst textpropstmultilinebaselinetminimumdescent((s:/usr/lib64/python2.6/site-packages/matplotlib/offsetbox.pyR>s     cCs|ii|dS(sset textN(Rtset_text(RAR((s:/usr/lib64/python2.6/site-packages/matplotlib/offsetbox.pyRscCs |iiS(sget text(Rtget_text(RA((s:/usr/lib64/python2.6/site-packages/matplotlib/offsetbox.pyRscCs ||_dS(s Set multilinebaseline . If True, baseline for multiline text is adjusted so that it is (approximatedly) center-aligned with singleline text. N(R(RAR((s:/usr/lib64/python2.6/site-packages/matplotlib/offsetbox.pytset_multilinebaseline#scCs|iS(s) get multilinebaseline . (R(RA((s:/usr/lib64/python2.6/site-packages/matplotlib/offsetbox.pytget_multilinebaseline.scCs ||_dS(s Set minimumdescent . If True, extent of the single line text is adjusted so that it has minimum descent of "p" N(R(RAR((s:/usr/lib64/python2.6/site-packages/matplotlib/offsetbox.pytset_minimumdescent5scCs|iS(s% get minimumdescent. (R(RA((s:/usr/lib64/python2.6/site-packages/matplotlib/offsetbox.pytget_minimumdescent?scCsdS(s+ set_transform is ignored. N((RAR((s:/usr/lib64/python2.6/site-packages/matplotlib/offsetbox.pyRFscCs5||_|ii|ii|d|ddS(sj set offset of the container. Accept : tuple of x,y cooridnate in disokay units. iiN(R@RyRzR{(RARH((s:/usr/lib64/python2.6/site-packages/matplotlib/offsetbox.pyRIMs  cCs|iS(s1 return offset of the container. (R@(RA((s:/usr/lib64/python2.6/site-packages/matplotlib/offsetbox.pyRNYscCsN|i|\}}}}|i\}}tii||||||S(s8 get the bounding box in display space. (RYRNRZRR[(RARUR"R3RWRXReRf((s:/usr/lib64/python2.6/site-packages/matplotlib/offsetbox.pyR^`scCse|ii|ii\}}|id|iidt\}}}|ii|\}}|i|i} } |dd} |i| |iid|\}} } |ii | | | }t |djoA|i o7d| d||}|ii d|||}nBt ||| |}|iot ||}n||} | | d|fS(Ntlptismathiig?g(Rt is_math_texttget_text_width_height_descentt_fontpropertiesRct _get_layoutRKR1RRzRRR{RR(RARUt clean_lineRt_th_td_tbboxtinfoR"R3tlinethhtddR4td_newth_d((s:/usr/lib64/python2.6/site-packages/matplotlib/offsetbox.pyRYis&!!    c Cs6|ii|t||dtdtdddS(s# Draw the children R_R`RagN(RRbRRcRd(RARU((s:/usr/lib64/python2.6/site-packages/matplotlib/offsetbox.pyRbsN(RgRhRiRRR>RRRRRRRRIRNR^RYRb(((s:/usr/lib64/python2.6/site-packages/matplotlib/offsetbox.pyRs  !       %tAuxTransformBoxcBs_eZdZdZdZdZdZdZdZdZ dZ d Z RS( sX Offset Box with the aux_transform . Its children will be transformed with the aux_transform first then will be offseted. The absolute coordinate of the aux_transform is meaning as it will be automaticcaly adjust so that the left-lower corner of the bounding box of children will be set to (0,0) before the offset trnasform. It is similar to drawing area, except that the extent of the box is not predetemined but calculated from the window extent of its children. Furthermore, the extent of the children will be calculated in the transformed coordinate. cCse||_ti|ti|_|ii|iiddti|_|iidS(Ni( t aux_transformR<R>RZRxRyRzR{tref_offset_transform(RAR((s:/usr/lib64/python2.6/site-packages/matplotlib/offsetbox.pyR>s   cCs'|ii||i|idS(s?Add any :class:`~matplotlib.artist.Artist` to the container boxN(R?RRR~(RAR((s:/usr/lib64/python2.6/site-packages/matplotlib/offsetbox.pyRscCs|i|i|iS(sf Return the :class:`~matplotlib.transforms.Transform` applied to the children (RRRy(RA((s:/usr/lib64/python2.6/site-packages/matplotlib/offsetbox.pyR~s cCsdS(s+ set_transform is ignored. N((RAR((s:/usr/lib64/python2.6/site-packages/matplotlib/offsetbox.pyRscCs5||_|ii|ii|d|ddS(sj set offset of the container. Accept : tuple of x,y cooridnate in disokay units. iiN(R@RyRzR{(RARH((s:/usr/lib64/python2.6/site-packages/matplotlib/offsetbox.pyRIs  cCs|iS(s1 return offset of the container. (R@(RA((s:/usr/lib64/python2.6/site-packages/matplotlib/offsetbox.pyRNscCsN|i|\}}}}|i\}}tii||||||S(s8 get the bounding box in display space. (RYRNRZRR[(RARUR"R3RWRXReRf((s:/usr/lib64/python2.6/site-packages/matplotlib/offsetbox.pyR^scCs|ii}|ii|iig}|iD]}||i|q7~}tii|}|ii |i |i |ii ||i |iddfS(Ng(Rt to_valuesRzRyR?R^RZRtunionR{tx0ty0tmatrix_from_valuesRKR1(RARUt_offR!RGtbboxestub((s:/usr/lib64/python2.6/site-packages/matplotlib/offsetbox.pyRYs  -c CsGx|iD]}|i|q Wt||dtdtdddS(s# Draw the children R_R`RagN(R?RbRRcRd(RARURG((s:/usr/lib64/python2.6/site-packages/matplotlib/offsetbox.pyRbs ( RgRhRiR>RR~RRIRNR^RYRb(((s:/usr/lib64/python2.6/site-packages/matplotlib/offsetbox.pyRs      tAnchoredOffsetboxcBseZdZdZddddedddZdZdZdZ dZ d Z dd Z d Z dd Zd ZdZRS(s6 An offset box placed according to the legend location loc. AnchoredOffsetbox has a single child. When multiple children is needed, use other OffsetBox class to enlose them. By default, the offset box is anchored against its parent axes. You may explicitly specify the bbox_to_anchor. ig?g?c Ks(tt|i| |i|||i|||_||_||_|djot dt d|_ nRt |t o8t ||_ d|jo|i it dqn ||_ tdddddddd d d d |i id t|_|iiddd||_dS(s loc is a string or an integer specifying the legend location. The valid location codes are:: 'upper right' : 1, 'upper left' : 2, 'lower left' : 3, 'lower right' : 4, 'right' : 5, 'center left' : 6, 'center right' : 7, 'lower center' : 8, 'upper center' : 9, 'center' : 10, pad : pad around the child for drawing a frame. given in fraction of fontsize. borderpad : pad between offsetbox frame and the bbox_to_anchor, child : OffsetBox instance that will be anchored. prop : font property. This is only used as a reference for paddings. frameon : draw a frame box if True. bbox_to_anchor : bbox to anchor. Use self.axes.bbox if None. bbox_transform : with which the bbox_to_anchor will be transformed. tsizeslegend.fontsizeRHgRKg?R1t facecolorR"t edgecolortktmutation_scaletsnaptsquareRaiN(gg(R=RR>tset_bbox_to_anchort set_childtloct borderpadRaRRRtpropRnRdtset_sizeRtget_size_in_pointsRtpatcht set_boxstylet _drawFrame( RARRaRtchildRtframeontbbox_to_anchortbbox_transformR ((s:/usr/lib64/python2.6/site-packages/matplotlib/offsetbox.pyR>s(&         cCs ||_dS(sset the child to be anchoredN(t_child(RAR((s:/usr/lib64/python2.6/site-packages/matplotlib/offsetbox.pyRWscCs|iS(sreturn the child(R(RA((s:/usr/lib64/python2.6/site-packages/matplotlib/offsetbox.pyt get_child[scCs |igS(sreturn the list of children(R(RA((s:/usr/lib64/python2.6/site-packages/matplotlib/offsetbox.pyRE_scCsn|ii|\}}}}|i|ii}|i|}|d||d|||||fS(sq return the extent of the artist. The extent of the child added with the pad is returned i(RRYRmRRRa(RARUR"R3RWRXtfontsizeRa((s:/usr/lib64/python2.6/site-packages/matplotlib/offsetbox.pyRYds! cCsM|idjo |iiS|i}|djo|iSt|i|SdS(sB return the bbox that the legend will be anchored N(t_bbox_to_anchorRtaxesRt_bbox_to_anchor_transformR(RAt transform((s:/usr/lib64/python2.6/site-packages/matplotlib/offsetbox.pytget_bbox_to_anchorps    cCs|djpt|to ||_nzyt|}Wn)tj otdt|nX|djo|d|dddg}nti ||_||_ dS(sG set the bbox that the child will be anchored. *bbox* can be a Bbox instance, a list of [left, bottom, width, height], or a list of [left, bottom] where the width and height will be assumed to be zero. The bbox will be transformed to display coordinate by the given transform. sInvalid argument for bbox : %siiiN( RRnRRRt TypeErrorRtstrRR[R(RARRtl((s:/usr/lib64/python2.6/site-packages/matplotlib/offsetbox.pyRs   cCsd|i||i|\}}}}|i||||\}}ti||||||S(s8 get the bounding box in display space. (t_update_offset_funcRYRNRR[(RARUR"R3RWRXReRf((s:/usr/lib64/python2.6/site-packages/matplotlib/offsetbox.pyR^s cCsI|djo|i|ii}n||d}|i|dS(ss Update the offset func which depends on the dpi of the renderer (because of the padding). c Ssdtidd||}|i|}|i}|i|i|||\} } | || |fS(Ni(RR[RRt_get_anchored_bboxR( R"R3RWRXRRARRRRR((s:/usr/lib64/python2.6/site-packages/matplotlib/offsetbox.pyR@s   N(RRmRRRI(RARURR@((s:/usr/lib64/python2.6/site-packages/matplotlib/offsetbox.pyRs  c Cs|ipdS|i|ii}|i|||ioX|i|}|ii|i |i |i |i |ii ||ii|n|i|\}}}}|i||||\}} |ii|| f|ii|dS(sdraw the artistN(RQRmRRRRR^Rt set_boundsRRRKR1tset_mutation_scaleRbRYRNRRI( RARURRRKR1RLRMR\R]((s:/usr/lib64/python2.6/site-packages/matplotlib/offsetbox.pyRbs  c Cstd\ }}}}} } } } } }}h d|6d|6d|6d| 6d| 6d| 6d| 6d| 6d |6d |6}||}|i| }|i|d |}|i|ifS( s{ return the position of the bbox anchored at the parentbbox with the loc code, with the borderpad. i tNEtNWtSWtSEtEtWtStNtCt container(RtpaddedtanchoredRR(RARRt parentbboxRtBESTtURtULtLLtLRtRtCLtCRtLCtUCRt anchor_coefsRGRt anchored_box((s:/usr/lib64/python2.6/site-packages/matplotlib/offsetbox.pyRs-   N(RgRhRitzorderRRR>RRRERYRRR^RRbR(((s:/usr/lib64/python2.6/site-packages/matplotlib/offsetbox.pyRs   @       (%Ritmatplotlib.transformst transformsRZtmatplotlib.artisttartistRBtmatplotlib.textttextRtnumpyRRRRRtmatplotlib.font_managerRtmatplotlib.patchesRt matplotlibRRR RcRR)R;RCR<RjRlRuRwRRR(((s:/usr/lib64/python2.6/site-packages/matplotlib/offsetbox.pyts* " / &hC@go