/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/blocking_input.pyo (14444B)
Ñò ÝšJc@sˆdZddklZlZddklZdefd„ƒYZdefd„ƒYZdefd „ƒYZ d efd „ƒYZ d S( s  This provides several classes used for blocking interaction with figure windows: :class:`BlockingInput` creates a callable object to retrieve events in a blocking way for interactive sessions :class:`BlockingKeyMouseInput` creates a callable object to retrieve key or mouse clicks in a blocking way for interactive sessions. Note: Subclass of BlockingInput. Used by waitforbuttonpress :class:`BlockingMouseInput` creates a callable object to retrieve mouse clicks in a blocking way for interactive sessions. Note: Subclass of BlockingInput. Used by ginput :class:`BlockingContourLabeler` creates a callable object to retrieve mouse clicks in a blocking way that will then be used to place labels on a ContourSet Note: Subclass of BlockingMouseInput. Used by clabel iÿÿÿÿ(tpathtverbose(tis_sequence_of_stringst BlockingInputcBsqeZdZd d„Zd„Zd„Zd„Zd„Zdd„Zdd„Z eie _d d d „Z RS( sX Class that creates a callable object to retrieve events in a blocking way. cCs||_||_dS(N(tfigt eventslist(tselfRR((sL/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/blocking_input.pyt__init__s cCsr|i|ƒtidt|iƒƒ|iƒt|iƒ|ijo$|idjo|iii ƒndS(se Event handler that will be passed to the current figure to retrieve events. sEvent %iiN( t add_eventRtreporttlenteventst post_eventtnRtcanvaststop_event_loop(Rtevent((sL/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/blocking_input.pyton_event!s   )cCsdS(s,For baseclass, do nothing but collect eventsN((R((sL/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/blocking_input.pyR 4scCs4x$|iD]}|iii|ƒq Wg|_dS(sDisconnect all callbacksN(t callbacksRRtmpl_disconnect(Rtcb((sL/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/blocking_input.pytcleanup8s cCs|ii|ƒdS(s5For base class, this just appends an event to events.N(R tappend(RR((sL/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/blocking_input.pyR?siÿÿÿÿcCs|ii|ƒdS(s' This removes an event from the event list. Defaults to removing last event, but an index can be supplied. Note that this does not check that there are events, much like the normal pop method. If not events exist, this will throw an exception. N(R tpop(Rtindex((sL/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/blocking_input.pyt pop_eventCscCs|i|ƒdS(N(R(RR((sL/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/blocking_input.pyRMsiicCs||_g|_g|_|iiƒx6|iD]+}|ii|iii||i ƒƒq2Wz|iii d|ƒWd|i ƒX|iS(s4 Blocking call to retrieve n events ttimeoutN( R R RRtshowRRRt mpl_connectRtstart_event_loopR(RR R((sL/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/blocking_input.pyt__call__Qs     ) (( t__name__t __module__t__doc__RRR RRRRR(((sL/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/blocking_input.pyRs       tBlockingMouseInputcBs§eZdZdZdZdZdddd„Zd„Zd„Zd„Z d„Z d „Z d „Z d „Z d d „Zd d„Zdd„Zdded„ZRS(s; Class that creates a callable object to retrieve mouse clicks in a blocking way. This class will also retrieve keyboard clicks and treat them like appropriate mouse clicks (delete and backspace are like mouse button 3, enter is like mouse button 2 and all others are like mouse button 1). iiicCs8ti|d|ddƒ||_||_||_dS(NRRtbutton_press_eventtkey_press_event(R#R$(RRt button_addt button_popt button_stop(RRt mouse_addt mouse_popt mouse_stop((sL/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/blocking_input.pyR{s   cCs3|ididjo|iƒn |iƒdS(s7 This will be called to process events iÿÿÿÿR$N(R tnamet key_eventt mouse_event(R((sL/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/blocking_input.pyR …scCsi|id}|i}||ijo|i|ƒn/||ijo|i|ƒn|i|ƒdS(sProcess a mouse click eventiÿÿÿÿN(R tbuttonR&tmouse_event_popR'tmouse_event_stoptmouse_event_add(RRR.((sL/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/blocking_input.pyR-s  cCsi|id}|iiƒ}|djo|i|ƒn,|djo|i|ƒn|i|ƒdS( so Process a key click event. This maps certain keys to appropriate mouse click events. iÿÿÿÿt backspacetdeletetescapetenterN(R2R3(sescapeR5(R tkeytlowerR/R0R1(RRR6((sL/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/blocking_input.pyR,s   cCs/|io|i|ƒnti|dƒdS(s Will be called for any event involving a button other than button 2 or 3. This will add a click if it is inside axes. iÿÿÿÿN(tinaxest add_clickRR(RR((sL/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/blocking_input.pyR1­s cCs'ti|dƒ|iii|ƒdS(sh Will be called for any event involving button 2. Button 2 ends blocking input. iÿÿÿÿN(RRRRR(RR((sL/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/blocking_input.pyR0·scCs>ti|dƒt|iƒdjo|i|dƒndS(sk Will be called for any event involving button 3. Button 3 removes the last click. iÿÿÿÿiN(RRR R (RR((sL/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/blocking_input.pyR/ÆscCsÓ|ii|i|ifƒtidt|iƒ|i|ifƒ|io€|ii ƒ}|ii ƒ}|i i |ii |ig|igdƒƒ|ii|ƒ|ii|ƒ|iiiƒndS(sL This add the coordinates of an event to the list of clicks sinput %i: %f,%fsr+N(tclicksRtxdatatydataRR R t show_clicksR8tget_xlimtget_ylimtmarkstextendtplottset_xlimtset_ylimRRtdraw(RRtxlimtylim((sL/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/blocking_input.pyR9Òs    %iÿÿÿÿcCsŒ|ii|ƒ|ion|iiƒ}|iiƒ}|ii|ƒ}|iƒ|ii|ƒ|ii |ƒ|i i i ƒndS(sm This removes a click from the list of clicks. Defaults to removing the last click. N( R:RR=R8R>R?R@tremoveRCRDRRRE(RRRRFRGtmark((sL/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/blocking_input.pyt pop_clickís  cCs$|i||ƒti||ƒdS(s¤ This removes a click and the associated event from the object. Defaults to removing the last click, but any index can be supplied. N(RJRR(RRR((sL/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/blocking_input.pyRscCsª|io|o"|iiƒ}|iiƒ}nx|iD]}|iƒq=Wg|_|o$|ii|ƒ|ii|ƒn|ii i ƒnt i |ƒdS(N( R=R8R>R?R@RHRCRDRRRERR(RRRFRGRI((sL/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/blocking_input.pyRs   icCs;||_g|_g|_ti|d|d|ƒ|iS(s\ Blocking call to retrieve n coordinate pairs through mouse clicks. R R(R=R:R@RR(RR RR=((sL/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/blocking_input.pyR%s    N(RR R!R%R&R'RR R-R,R1R0R/R9RJRtNoneRtTrueR(((sL/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/blocking_input.pyR"ms      tBlockingContourLabelercBs;eZdZd„Zd„Zd„Zdddd„ZRS(sƒ Class that creates a callable object that uses mouse clicks or key clicks on a figure window to place contour labels. cCs&||_ti|d|iiƒdS(NR(tcsR"Rtaxtfigure(RRN((sL/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/blocking_input.pyR6s cCs|i}|i|ijop|i|i|i|iƒd \}}}}}|ii|ƒ}|i|i ƒ} | |i } |ii i | ƒ} |i |i||i|i|ƒ} |io | } nd} |i| || | |iƒ\}}|i||||i||i|ƒ|ioO| i|ƒx?|D]3}t|ƒdjo| iti|ƒƒq=q=Wn|iiiƒnti|ƒdS(sŒ This will be called if an event involving a button other than 2 or 3 occcurs. This will add a label to a contour. iiN( RNR8ROtfind_nearest_contourtxtytlabelIndiceListRt collectionst get_pathstverticest transDatat transformtget_label_widthtlabelLevelListtlabelFmttlabelFontSizeListtinlineRKtcalc_label_rot_and_inlinetinline_spacingt add_labeltlabelCValueListRR RRtPathRRRER(RRRNtconmintsegmintimintxmintymintlmintpathstlctslctlwtlcargtrotationtnlcR ((sL/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/blocking_input.pytbutton1:s4 +     "cCsBti|ƒ|ion$|iiƒ|iiiiiƒdS(sY This will be called if button 3 is clicked. This will remove a label if not in inline mode. Unfortunately, if one is doing inline labels, then there is currently no way to fix the broken contour - once humpty-dumpty is broken, he can't be put back together. In inline mode, this does nothing. N( RRR^RNt pop_labelRORPRRE(RR((sL/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/blocking_input.pytbutton3ss   iiÿÿÿÿcCs5||_||_ti|d|d|dtƒdS(NR RR=(R^R`R"RtFalse(RR^R`R R((sL/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/blocking_input.pyR†s  (RR R!RRqRsR(((sL/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/blocking_input.pyRM1s   9 tBlockingKeyMouseInputcBs,eZdZd„Zd„Zdd„ZRS(s_ Class that creates a callable object to retrieve a single mouse or keyboard click cCsti|d|ddƒdS(NRRR#R$(sbutton_press_eventskey_press_event(RR(RR((sL/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/blocking_input.pyR’scCs|ididj|_dS(s1 Determines if it is a key event iÿÿÿÿR$N(R R+t keyormouse(R((sL/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/blocking_input.pyR •sicCs)d|_ti|ddd|ƒ|iS(s Blocking call to retrieve a single mouse or key click Returns True if key click, False if mouse, or None if timeout R iRN(RKRvRR(RR((sL/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/blocking_input.pyRs (RR R!RR R(((sL/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/blocking_input.pyRus  N( R!t matplotlibRRtmatplotlib.cbookRtobjectRR"RMRu(((sL/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/blocking_input.pyts VÄ\