/opt/alt/python27/lib64/python2.7/site-packages/matplotlib
NameSizeModeActions
backends/-0755rm
delaunay/-0755rm
mpl-data/-0755rm
numerix/-0755rm
projections/-0755rm
sphinxext/-0755rm
afm.py150890644editdlrm
afm.pyc173880644editdlrm
afm.pyo173880644editdlrm
artist.py356230644editdlrm
artist.pyc414310644editdlrm
artist.pyo414310644editdlrm
axes.py2800890644editdlrm
axes.pyc2525680644editdlrm
axes.pyo2514560644editdlrm
axis.py573540644editdlrm
axis.pyc608580644editdlrm
axis.pyo605510644editdlrm
backend_bases.py723180644editdlrm
backend_bases.pyc799690644editdlrm
backend_bases.pyo798790644editdlrm
bezier.py149170644editdlrm
bezier.pyc138120644editdlrm
bezier.pyo138120644editdlrm
blocking_input.py136900644editdlrm
blocking_input.pyc147620644editdlrm
blocking_input.pyo144440644editdlrm
cbook.py427560644editdlrm
cbook.pyc586920644editdlrm
cbook.pyo584660644editdlrm
cm.py80980644editdlrm
cm.pyc100320644editdlrm
cm.pyo100320644editdlrm
collections.py407840644editdlrm
collections.pyc451110644editdlrm
collections.pyo451110644editdlrm
colorbar.py274560644editdlrm
colorbar.pyc258350644editdlrm
colorbar.pyo258350644editdlrm
colors.py391100644editdlrm
colors.pyc406900644editdlrm
colors.pyo406900644editdlrm
contour.py428950644editdlrm
contour.pyc364630644editdlrm
contour.pyo363010644editdlrm
dates.py360070755editdlrm
dates.pyc411350644editdlrm
dates.pyo410710644editdlrm
dviread.py320330644editdlrm
dviread.pyc354880644editdlrm
dviread.pyo353450644editdlrm
figure.py412640644editdlrm
figure.pyc437060644editdlrm
figure.pyo435750644editdlrm
finance.py205820644editdlrm
finance.pyc186750644editdlrm
finance.pyo185150644editdlrm
fontconfig_pattern.py64290644editdlrm
fontconfig_pattern.pyc67100644editdlrm
fontconfig_pattern.pyo67100644editdlrm
font_manager.py426530644editdlrm
font_manager.pyc412750644editdlrm
font_manager.pyo412750644editdlrm
ft2font.so3061680755editdlrm
hatch.py65640644editdlrm
hatch.pyc94840644editdlrm
hatch.pyo94840644editdlrm
image.py315400644editdlrm
image.pyc337830644editdlrm
image.pyo337370644editdlrm
legend.py323020644editdlrm
legend.pyc238760644editdlrm
legend.pyo237030644editdlrm
lines.py546850644editdlrm
lines.pyc579910644editdlrm
lines.pyo578860644editdlrm
mathtext.py1020090644editdlrm
mathtext.pyc1060700644editdlrm
mathtext.pyo1056820644editdlrm
mlab.py942940644editdlrm
mlab.pyc1019150644editdlrm
mlab.pyo1017350644editdlrm
mpl.py7850644editdlrm
mpl.pyc11890644editdlrm
mpl.pyo11890644editdlrm
nxutils.so97040755editdlrm
offsetbox.py298070644editdlrm
offsetbox.pyc348250644editdlrm
offsetbox.pyo347700644editdlrm
patches.py1284850644editdlrm
patches.pyc1337360644editdlrm
patches.pyo1335980644editdlrm
path.py217650644editdlrm
path.pyc214990644editdlrm
path.pyo212790644editdlrm
pylab.py109810644editdlrm
pylab.pyc124380644editdlrm
pylab.pyo124380644editdlrm
pyparsing.py1439240644editdlrm
pyparsing.pyc1511830644editdlrm
pyparsing.pyo1511830644editdlrm
pyplot.py824680644editdlrm
pyplot.pyc819820644editdlrm
pyplot.pyo819820644editdlrm
quiver.py375400644editdlrm
quiver.pyc341520644editdlrm
quiver.pyo341520644editdlrm
rcsetup.py234340644editdlrm
rcsetup.pyc215220644editdlrm
rcsetup.pyo213520644editdlrm
scale.py142330644editdlrm
scale.pyc202540644editdlrm
scale.pyo202540644editdlrm
spines.py126840644editdlrm
spines.pyc118830644editdlrm
spines.pyo114560644editdlrm
table.py168280644editdlrm
table.pyc173730644editdlrm
table.pyo172220644editdlrm
texmanager.py224640644editdlrm
texmanager.pyc202090644editdlrm
texmanager.pyo202090644editdlrm
text.py598220644editdlrm
text.pyc606960644editdlrm
text.pyo606960644editdlrm
ticker.py404280644editdlrm
ticker.pyc521640644editdlrm
ticker.pyo520280644editdlrm
tight_bbox.py36550644editdlrm
tight_bbox.pyc41570644editdlrm
tight_bbox.pyo41570644editdlrm
transforms.py753870644editdlrm
transforms.pyc924320644editdlrm
transforms.pyo915230644editdlrm
ttconv.so654880755editdlrm
type1font.py115370644editdlrm
type1font.pyc114900644editdlrm
type1font.pyo114900644editdlrm
units.py49760644editdlrm
units.pyc59180644editdlrm
units.pyo59180644editdlrm
widgets.py408330644editdlrm
widgets.pyc436080644editdlrm
widgets.pyo434220644editdlrm
windowing.py4540644editdlrm
windowing.pyc13610644editdlrm
windowing.pyo13610644editdlrm
_cm.py3704140644editdlrm
_cm.pyc1030550644editdlrm
_cm.pyo1030550644editdlrm
_cntr.so209600755editdlrm
_delaunay.so611840755editdlrm
_image.so2828560755editdlrm
_mathtext_data.py579900644editdlrm
_mathtext_data.pyc638000644editdlrm
_mathtext_data.pyo638000644editdlrm
_path.so2803120755editdlrm
_png.so1565040755editdlrm
_pylab_helpers.py27150644editdlrm
_pylab_helpers.pyc38380644editdlrm
_pylab_helpers.pyo38380644editdlrm
__init__.py289720644editdlrm
__init__.pyc294350644editdlrm
__init__.pyo293810644editdlrm
Edit: /opt/alt/python27/lib64/python2.7/site-packages/matplotlib/bezier.pyc (13812B)
Ńņ Y¬Jc@sdZddkZddklZddklZddklZd„Z d„Z d„Z d „Z d d d d „Z ddd„ƒYZd d„Zd d d d„Zd ed„Zd„Zd„Zd„Zdd„Zd„Zd dd d„Zd„Zd„ZdS(sO A module providing some utility functions regarding bezier path manipulation. i’’’’N(tsqrt(tPath(txorcCsö||||}||||} || } } || } } | | | | }|djotdƒ‚n| | }}| | }}g}||||gD]}|||q¢~\}}}}|||| }|||| }||fS(s‡ return a intersecting point between a line through (cx1, cy1) and having angle t1 and a line through (cx2, cy2) and angle t2. gsGiven lines do not intersect(t ValueError(tcx1tcy1tcos_t1tsin_t1tcx2tcy2tcos_t2tsin_t2t line1_rhst line2_rhstatbtctdtad_bcta_tb_tc_td_t_[1]tktxty((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/bezier.pytget_intersections  =c Cs„|djo||||fS|| }}| |}}||||||} } ||||||} } | | | | fS(s² For a line passing through (*cx*, *cy*) and having a angle *t*, return locations of the two points located along its perpendicular line at the distance of *length*. g(( tcxtcytcos_ttsin_ttlengthRRR R tx1ty1tx2ty2((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/bezier.pytget_normal_points0s cCs"|d d||d|}|S(Ni’’’’i((tbetattt next_beta((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/bezier.pyt_de_casteljau1MscCsµti|ƒ}|g}x@to8t||ƒ}|i|ƒt|ƒdjoPqqWg}|D]}||dqf~}g}t|ƒD]}||dq‘~}||fS(sŽsplit a bezier segment defined by its controlpoints *beta* into two separate segment divided at *t* and return their control points. iii’’’’(tnptasarraytTrueR)tappendtlentreversed(R&R't beta_listRt left_betat_[2]t right_beta((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/bezier.pytsplit_de_casteljauQs   %+ggš?g{®Gįz„?c Csų||ƒ}||ƒ}||ƒ}||ƒ}t||ƒptdƒ‚nx”|d|dd|d|dd|djo ||fSd||} || ƒ} || ƒ} t|| ƒo| }| }| }qS| }| }| }qSdS(s$ Find a parameter t0 and t1 of the given bezier path which bounds the intersecting points with a provided closed path(*inside_closedpath*). Search starts from *t0* and *t1* and it uses a simple bisecting algorithm therefore one of the end point must be inside the path while the orther doesn't. The search stop when |t0-t1| gets smaller than the given tolerence. value for - bezier_point_at_t : a function which returns x, y coordinates at *t* - inside_closedpath : return True if the point is insed the path s6the segment does not seemed to intersect with the pathiiigą?N(RR( tbezier_point_at_ttinside_closedpathtt0tt1t tolerencetstarttendt start_insidet end_insidetmiddle_ttmiddlet middle_inside((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/bezier.pyt*find_bezier_t_intersecting_with_closedpathhs&    5    t BezierSegmentcBsqeZdZheiddgƒd6eidddgƒd6eiddddgƒd6Zd„Zd„ZRS( s: A simple class of a 2-dimensional bezier segment gš?ig@ig@icCsˆt|ƒ}ti|ƒ|_ti|d}ti|ƒ}|dd…df}|dd…df}|||_|||_dS(s³ *control_points* : location of contol points. It needs have a shpae of n * 2, where n is the order of the bezier line. 1<= n <= 3 is supported. iNi( R.R*taranget_ordersRBt _binom_coeffR+t_pxt_py(tselftcontrol_pointst_ot_coefft_control_pointstxxtyy((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/bezier.pyt__init__„s  cCsutid||iƒddd…}ti||iƒ}||}t||iƒ}t||iƒ}||fS(sevaluate a point at tgš?Ni’’’’(R*tpowerRDtsumRFRG(RHR'tone_minus_t_powerstt_powerstttt_xt_y((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/bezier.pyt point_at_t¶s & (t__name__t __module__t__doc__R*tarrayRERORW(((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/bezier.pyRBšs  c CsWt|ƒ}|i}t||d|ƒ\}}t|||dƒ\}}||fS(s bezier : control points of the bezier segment inside_closedpath : a function which returns true if the point is inside the path R9g@(RBRWRAR4( tbezierR6R9tbzR5R7R8t_leftt_right((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/bezier.pyt)split_bezier_intersecting_with_closedpathĀs  c sG|\‰‰‡‡‡‡fd†}t||d|d|d|ƒdS(sē Find a radius r (centered at *xy*) between *rmin* and *rmax* at which it intersect with the path. inside_closedpath : function cx, cy : center cos_t, sin_t : cosine and sine for the angle rmin, rmax : csˆ|ˆˆ|ˆfS(N((tr(RRRR(sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/bezier.pyt_fåsR7R8R9N(RA(R6txyRRtrmintrmaxR9Rb((RRRRsD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/bezier.pyt find_r_to_boundary_of_closedpath×s  cCsŽ|iƒ}|iƒ\}}||dƒ}d}|} ti} d} d} xf|D]^\}}| } | t|ƒd7} ||dƒ|jo| | d|gƒ}Pn|} qVW|djotdƒ‚nt|ddd…|ddd…ƒ} t| ||ƒ\}}t|ƒdjo"t i g}t i t i g}n˜t|ƒdjo.t i t i g}t i t i t i g}nWt|ƒdjo:t i t i t i g}t i t i t i t i g}n tƒ‚|d}|}|idjoBt | |i| |gƒƒ}t | ||i| gƒƒ}nkt | |i| |gƒ| |i| |gƒƒ}t | ||i| gƒ| ||i| gƒƒ}|o|tjo||}}n||fS( sW divide a path into two segment at the point where inside(x, y) becomes False. iž’’’iiis2The path does not seem to intersect with the patchNii(t iter_segmentstnexttNoneR*t concatenateR.RtzipR`RtLINETOtMOVETOtCURVE3tCURVE4tcodestverticestFalse(tpathtinsideR9t reorder_inoutt path_itert ctl_pointstcommandt begin_insidet bezier_pathtctl_points_oldtconcattioldtitbptlefttrightt codes_leftt codes_rightt verts_leftt verts_righttpath_intpath_out((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/bezier.pytsplit_path_inoutļsX     ) "  #cs#|d‰‡‡‡fd†}|S(Nics*|\}}|ˆd|ˆdˆjS(Ni((RcRR(tr2RR(sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/bezier.pyRb8s ((RRRaRb((RRR‰sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/bezier.pyt inside_circle6s cCs=||||}}||||d}||||fS(Ngą?((tx0ty0R!R"tdxtdyR((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/bezier.pyt get_cos_sinAsc CsH|d\}}|d\}}|d\}}t||||ƒ\}} t||||ƒ\} } t|||| |ƒ\} } }}t||| | |ƒ\}}}}t| | || ||| | ƒ\}}t|||| ||| | ƒ\}}| | f||f||fg}||f||f||fg}||fS(s« Given the quadraitc bezier control points *bezier2*, returns control points of quadrativ bezier lines roughly parralel to given one separated by *width*. iii(RR%R(tbezier2twidthtc1xtc1ytcmxtcmytc2xtc2yRRR R tc1x_lefttc1y_leftt c1x_rightt c1y_righttc2x_lefttc2y_leftt c2x_rightt c2y_righttcmx_lefttcmy_leftt cmx_rightt cmy_rightt path_leftt path_right((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/bezier.pyt get_parallelsGs $$!!gą?cCs–|d\}}|d\}}|d\}}||} } ||} } t| | d| | dƒ} | | | | | | }}t| | |||ƒ\}}}}||d||d}}||d||d}}t||d||dƒ} ||| ||| }}t||||||ƒ\}}}}||f||f||fg}||f||f||fg}||fS(s© Being similar to get_parallels, returns control points of two quadrativ bezier lines having a width roughly parralel to given one separated by *width*. iiig@(RR%(RR t shrink_factortxx1tyy1txx2tyy2txx3tyy3RRR‹RŒtdistRRR!R"R#R$txx12tyy12txx23tyy23txm1tym1txm2tym2tl_plustl_minus((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/bezier.pytmake_wedged_bezier2us    $ (!!cCsKdd|||}dd|||}||f||f||fgS(s’ Find control points of the bezier line throught c1, mm, c2. We simply assume that c1, mm, c2 which have parameteric value 0, 0.5, and 1. gą?i((R’R“tmmxtmmyR–R—R”R•((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/bezier.pytfind_control_points–sc%Cs|d\}}|d\}}|d\} } t||||ƒ\} } t||| | ƒ\} }t||| | ||ƒ\}}}}t| | | |||ƒ\}}}}||d||d}}|| d|| d}}||d||d}}t||||ƒ\}}t||||||ƒ\}} }!}"t|||| ||ƒ}#t|||!|"||ƒ}$|#|$fS(s© Being similar to get_parallels, returns control points of two quadrativ bezier lines having a width roughly parralel to given one separated by *width*. iiigą?(RR%R¼(%RR‘tw1twmtw2R’R“R”R•tc3xtc3yRRR R R˜R™RšR›tc3x_lefttc3y_leftt c3x_rightt c3y_righttc12xtc12ytc23xtc23ytc123xtc123ytcos_t123tsin_t123t c123x_leftt c123y_leftt c123x_rightt c123y_rightR¤R„((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/bezier.pyR¹”s&(((    cCsh|i}|djoJti|iid dƒ}|itiƒti |ds,    1* G  . ! 6