/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/ticker.pyo (50325B)
Jc@ sdZddklZddkZddkZddklZddklZddkl Z ddAdYZ d e fd YZ d dBd YZ d e fdYZde fdYZde fdYZde fdYZde fdYZde fdYZde fdYZdefdYZdefdYZde fd YZd!efd"YZd#efd$YZd%efd&YZd'efd(YZd)Zd*dCd+YZd,efd-YZd.d/d0Zd1efd2YZ d3d4Z!d3d5Z"d3d6Z#d7efd8YZ$d9efd:YZ%d;e fd<YZ&d=efd>YZ'd?efd@YZ(dDZ)dS(Es Tick locating and formatting ============================ This module contains classes to support completely configurable tick locating and formatting. Although the locators know nothing about major or minor ticks, they are used by the Axis class to support major and minor tick locating and formatting. Generic tick locators and formatters are provided, as well as domain specific custom ones.. Tick locating ------------- The Locator class is the base class for all tick locators. The locators handle autoscaling of the view limits based on the data limits, and the choosing of tick locations. A useful semi-automatic tick locator is MultipleLocator. You initialize this with a base, eg 10, and it picks axis limits and ticks that are multiples of your base. The Locator subclasses defined here are :class:`NullLocator` No ticks :class:`FixedLocator` Tick locations are fixed :class:`IndexLocator` locator for index plots (eg. where x = range(len(y))) :class:`LinearLocator` evenly spaced ticks from min to max :class:`LogLocator` logarithmically ticks from min to max :class:`MultipleLocator` ticks and range are a multiple of base; either integer or float :class:`OldAutoLocator` choose a MultipleLocator and dyamically reassign it for intelligent ticking during navigation :class:`MaxNLocator` finds up to a max number of ticks at nice locations :class:`AutoLocator` :class:`MaxNLocator` with simple defaults. This is the default tick locator for most plotting. There are a number of locators specialized for date locations - see the dates module You can define your own locator by deriving from Locator. You must override the __call__ method, which returns a sequence of locations, and you will probably want to override the autoscale method to set the view limits from the data limits. If you want to override the default locator, use one of the above or a custom locator and pass it to the x or y axis instance. The relevant methods are:: ax.xaxis.set_major_locator( xmajorLocator ) ax.xaxis.set_minor_locator( xminorLocator ) ax.yaxis.set_major_locator( ymajorLocator ) ax.yaxis.set_minor_locator( yminorLocator ) The default minor locator is the NullLocator, eg no minor ticks on by default. Tick formatting --------------- Tick formatting is controlled by classes derived from Formatter. The formatter operates on a single tick value and returns a string to the axis. :class:`NullFormatter` no labels on the ticks :class:`IndexFormatter` set the strings from a list of labels :class:`FixedFormatter` set the strings manually for the labels :class:`FuncFormatter` user defined function sets the labels :class:`FormatStrFormatter` use a sprintf format string :class:`ScalarFormatter` default formatter for scalars; autopick the fmt string :class:`LogFormatter` formatter for log axes You can derive your own formatter from the Formatter base class by simply overriding the ``__call__`` method. The formatter class has access to the axis view and data limits. To control the major and minor tick label formats, use one of the following methods:: ax.xaxis.set_major_formatter( xmajorFormatter ) ax.xaxis.set_minor_formatter( xminorFormatter ) ax.yaxis.set_major_formatter( ymajorFormatter ) ax.yaxis.set_minor_formatter( yminorFormatter ) See :ref:`pylab_examples-major_minor_demo1` for an example of setting major an minor ticks. See the :mod:`matplotlib.dates` module for more information and examples of using date locators and formatters. i(tdivisionN(trcParams(tcbook(t transformst TickHelpercB sNeZdZdddYZdZdZdZdZdZ RS( t DummyAxiscB s5eZdZdZdZdZdZRS(cC s(tii|_tii|_dS(N(t mtransformstBboxtunittdataLimtviewLim(tself((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pyt__init__scC s |iiS(N(R t intervalx(R ((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pytget_view_intervalscC s||f|i_dS(N(R R (R tvmintvmax((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pytset_view_intervalscC s |iiS(N(R R (R ((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pytget_data_intervalscC s||f|i_dS(N(R R (R RR((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pytset_data_intervals(t__name__t __module__R RRRR(((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pyRs     cC s ||_dS(N(taxis(R R((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pytset_axisscC s'|idjo|i|_ndS(N(RtNoneR(R ((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pytcreate_dummy_axisscC s|ii||dS(N(RR(R RR((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pyRscC s|ii||dS(N(RR(R RR((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pyRscC s$|i|||i||dS(N(RR(R RR((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pyt set_boundssN(( RRRRRRRRRR(((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pyRs    t FormattercB sMeZdZgZddZdZdZdZdZ dZ RS(s/ Convert the tick location to a string cC stddS(sPReturn the format for tick val x at position pos; pos=None indicated unspecifiedsDerived must overideN(tNotImplementedError(R txtpos((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pyt__call__scC s |i|S(N(R(R tvalue((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pyt format_datascC s |i|S(sreturn a short string version(R!(R R ((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pytformat_data_shortscC sdS(Nt((R ((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pyt get_offsetscC s ||_dS(N(tlocs(R R%((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pytset_locsscC s|S(s some classes may want to replace a hyphen for minus with the proper unicode symbol as described `here `_. The default is to do nothing Note, if you use this method, eg in :meth`format_data` or call, you probably don't want to use it for :meth:`format_data_short` since the toolbar uses this for interative coord reporting and I doubt we can expect GUIs across platforms will handle the unicode correctly. So for now the classes that override :meth:`fix_minus` should have an explicit :meth:`format_data_short` method ((R ts((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pyt fix_minussN( RRt__doc__R%RRR!R"R$R&R((((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pyRs     tIndexFormattercB s#eZdZdZddZRS(sL format the position x to the nearest i-th label where i=int(x+0.5) cC s||_t||_dS(N(tlabelstlentn(R R+((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pyR s cC sFt|d}|djodS||ijodS|i|SdS(sPReturn the format for tick val x at position pos; pos=None indicated unspecifiedg?iR#N(tintR-R+(R RRti((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pyRs  N(RRR)R RR(((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pyR*s t NullFormattercB seZdZddZRS(sAlways return the empty stringcC sdS(s4Return the format for tick val *x* at position *pos*R#((R RR((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pyRsN(RRR)RR(((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pyR0stFixedFormattercB s5eZdZdZddZdZdZRS(s$Return fixed strings for tick labelscC s||_d|_dS(s *seq* is a sequence of strings. For positions ``i < len(seq)`` return *seq[i]* regardless of *x*. Otherwise return '' R#N(tseqt offset_string(R R2((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pyR s cC s7|djp|t|ijodS|i|SdS(s4Return the format for tick val *x* at position *pos*R#N(RR,R2(R RR((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pyRs#cC s|iS(N(R3(R ((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pyR$scC s ||_dS(N(R3(R tofs((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pytset_offset_stringsN(RRR)R RRR$R5(((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pyR1s    t FuncFormattercB s#eZdZdZddZRS(s. User defined function for formatting cC s ||_dS(N(tfunc(R R7((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pyR scC s|i||S(s4Return the format for tick val *x* at position *pos*(R7(R RR((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pyRsN(RRR)R RR(((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pyR6s tFormatStrFormattercB s#eZdZdZddZRS(s0 Use a format string to format the tick cC s ||_dS(N(tfmt(R R9((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pyR scC s |i|S(s4Return the format for tick val *x* at position *pos*(R9(R RR((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pyRsN(RRR)R RR(((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pyR8 s tOldScalarFormattercB s#eZdZddZdZRS(s. Tick location is a plain old number. cC s5|ii\}}t||}|i||S(s4Return the format for tick val *x* at position *pos*(RRtabst pprint_val(R RRtxmintxmaxtd((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pyRsc C sTt|djo|t|jo d|S|djo d}nc|djo d}nL|djo d}n5|d jo d }n|d jo d }nd}||}|id }t|djod|didid}|d didd}|d d id}d|||f}n|idid}|S(Ng@s%dg{Gz?s%1.3eg?s%1.3fgj@s%1.1ei s%1.1fis%1.2fteiit0t.t+R#s%se%s%s(R;R.tsplitR,trstriptreplacetlstrip( R RR?R9R'ttuptmantissatsigntexponent((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pyR<!s,&       N(RRR)RRR<(((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pyR:s tScalarFormattercB seZdZeedZdZddZdZ dZ dZ dZ dZ d Zd Zd Zd Zd ZdZRS(s Tick location is a plain old number. If useOffset==True and the data range is much smaller than the data average, then an offset will be determined such that the tick labels are meaningful. Scientific notation is used for data < 1e-3 or data >= 1e4. cC sT||_td|_||_d|_d|_d|_t|_td|_ dS(Ns text.usetexiR#saxes.formatter.limits( t _useOffsetRt_usetext _useMathTexttoffsettorderOfMagnitudetformattTruet _scientifict _powerlimits(R t useOffsett useMathText((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pyR As       cC s0tdp td o|S|iddSdS(s&use a unicode minus rather than hyphens text.usetexsaxes.unicode_minust-u−N(RRF(R R'((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pyR(OscC s;t|idjodS|i|}|i|SdS(s4Return the format for tick val *x* at position *pos*iR#N(R,R%R<R((R RRR'((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pyRTscC st||_dS(seTrue or False to turn scientific notation on or off see also :meth:`set_powerlimits` N(tboolRT(R tb((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pytset_scientific\scC s ||_dS(s Sets size thresholds for scientific notation. e.g. ``xaxis.set_powerlimits((-3, 4))`` sets the pre-2007 default in which scientific notation is used for numbers less than 1e-3 or greater than 1e4. See also :meth:`set_scientific`. N(RU(R tlims((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pytset_powerlimitsbs cC sd|S(s:return a short formatted string representation of a numbers%-12g((R R ((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pyR"nscC s |id|}|i|S(s4return a formatted string representation of a numbers%1.10e(t_formatSciNotationR((R R R'((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pyR!rscC syt|idjodSd}|ip |io7d}d}|io4|i|i}|idjod|}qn|io?|ip |io|id|i}qd|i}n|io=|djod|}ndid|d|d f}ql|io:|djod |}ndid||df}qldi||f}n|i|S( s'Return scientific notation, plus offsetiR#RCi s1e%ds\times\mathdefault{%s}t$s \mathdefault{s}$s\times%s( R,R%RQRPR!RNROtjoinR((R R't offsetStrt sciNotStr((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pyR$xs0    "  cC s~||_t|idjo[|ii\}}t||}|io|i|n|i||indS(sset the locations of the ticksiN( R%R,RRR;RMt _set_offsett_set_orderOfMagnitudet _set_format(R R%RRR?((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pyR&s   cC s-|i}|djpt| p |djod|_dSti|}|otitititi |}titi|}ti ||djok|djo/ti ti |d|d||_q%titi |d|d||_q)d|_ndS(Niii ( R%RR,RPtnptmeantmathtfloortlog10tabsolutetceiltmaxtmin(R trangeR%tave_loctave_oomt range_oom((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pyRcs ( * //cC s|ipd|_dSti|i}|iotiti|}n]|d|djo|d}n |d}|djo d}ntiti|}||i djo ||_n+||i djo ||_n d|_dS(Niii( RTRQRfRkR%RPRhRiRjRU(R RoR%toomtval((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pyRds"       cC sti|i|id|id}g}|D]3}|ttd|iddidq3~}|i dt|dd |_ |i od |i |_ n|i od |i |_ ndS( Ni gV瞯i(RPRQRfRkRR(R Rtxp((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pyR<s cC s|id}y|didid}|ddidd}|ddid}|ip |ioa|djo d}n|od ||f}n|o|od ||fSd ||fSn!d |||fid}|SWntj o }|SXdS( NR@iRARBiRCR#t1s 10^{%s%s}s %s{\times}%ss%s%ss%se%s%s(RDRERFRGRORNt IndexError(R R'RHt significandRJRKtmsg((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pyR^s"  N(RRR)RStFalseR R(RRR[R]R"R!R$R&RcRdReR<R^(((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pyRL9s          t LogFormattercB sheZdZdedZdZdZd dZdZ dZ dZ d Z d Z RS( sp Format values for log axis; if attribute *decadeOnly* is True, only the decades will be labelled. g$@cC s#|d|_||_t|_dS(s *base* is used to locate the decade tick, which will be the only one to be labeled if *labelOnlyBase* is ``False`` gN(t_baset labelOnlyBaseRSt decadeOnly(R tbaseR((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pyR s  cC s ||_dS(scchange the *base* for labeling - warning: should always match the base used for :class:`LogLocator`N(R(R R((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pyRscC s ||_dS(s"switch on/off minor ticks labelingN(R(R R((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pyt label_minorsc C s |ii\}}t||}|i}|djodSti|}tit|ti|}|i|} | o|i o d} nI|djod|} n.|djod|} n|i ||} |djod| } n|i | S( s4Return the format for tick val *x* at position *pos*gRAR#i's%1.0eiis-%s( RRR;RRfRJRhtlogt is_decadeRR<R(( R RRRRR?RZRJtfxtisDecadeR'((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pyR s$  "    cC s.t|_ti|i|}t|_|S(N(RRRt strip_mathRRS(R R ((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pyR!s  cC sd|S(s:return a short formatted string representation of a numbers%-12g((R R ((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pyR"#scC s#|i|}t||djS(Ng|=(t nearest_longR;(R RR-((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pyR'scC s@|djodS|djot|dSt|dSdS(Nilg?(tlong(R R((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pyR+s   c C sTt|djo|t|jo d|S|djo d}nc|djo d}nL|djo d}n5|d jo d }n|d jo d }nd}||}|id }t|djod|didid}|d didd}|d d id}d|||f}n|idid}|S(Ng@s%dg{Gz?s%1.3eg?s%1.3fgj@s%1.1ei s%1.1fis%1.2fR@iiRARBRCR#s%se%s%s(R;R.RDR,RERFRG( R RR?R9R'RHRIRJRK((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pyR<0s,&       N(RRR)RSR RRRRR!R"RRR<(((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pyRs       tLogFormatterExponentcB seZdZddZRS(sJ Format values for log axis; using ``exponent = log_base(value)`` c C s*|ii\}}ti||dd\}}t||}|i}|djodSti|}ti t|ti |}|i |} | o|i o d} nI|djod|} n.|djod|} n|i ||} |d jod | } n|i | S( s4Return the format for tick val *x* at position *pos*texpanderg?iRAR#i's%1.0eiis-%s(RRRt nonsingularR;RRfRJRhRRRR<R(( R RRRRR?RZRJRRR'((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pyRLs&  "    N(RRR)RR(((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pyRGstLogFormatterMathtextcB seZdZddZRS(sJ Format values for log axis; using ``exponent = log_base(value)`` c C s!|i}|djodSti|}tit|ti|}|i|}td}|djo d}nd}| o|io d} n|p5|od|||f} qd|||f} nD|o d |||i |f} nd |||i |f} | S( s4Return the format for tick val *x* at position *pos*is$0$s text.usetexiRXR#s $%s%d^{%.2f}$s$\mathdefault{%s%d^{%.2f}}$s $%s%d^{%d}$s$\mathdefault{%s%d^{%d}}$( RRfRJRhRR;RRRR( R RRRZRJRRtusetext sign_stringR'((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pyRls(  "     N(RRR)RR(((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pyRgstLocatorcB sDeZdZdZdZdZdZdZdZRS(s Determine the tick locations; Note, you should not use the same locator between different :class:`~matplotlib.axis.Axis` because the locator stores references to the Axis data and view limits cC stddS(s!Return the locations of the tickssDerived must overrideN(R(R ((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pyRscC sti||S(sk select a scale for the range from vmin to vmax Normally This will be overridden. (RR(R RR((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pyt view_limitsscC s|i|iiS(sautoscale the view limits(RRR(R ((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pyt autoscalescC s|}t|}|ii\}}ti||dd\}}|djo |t|d|d}nt||}||d}||7}||7}|ii||dtdS( s*Pan numticks (can be positive or negative)Rg?iiig@tignoreN(R,RRRRR;RRS(R tnumstepsttickstnumticksRRtstepR?((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pytpans      cC sv|ii\}}ti||dd\}}t||}d||}|ii||||dtdS(s>Zoom in/out on axis; if direction is >0 zoom in, else zoom outRg?g?RN(RRRRR;RRS(R t directionRRtintervalR((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pytzooms cC sdS(s1refresh internal information based on current limN((R ((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pytrefreshs( RRR)RRRRRR(((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pyRs     t IndexLocatorcB s eZdZdZdZRS(s Place a tick on every multiple of some base number of points plotted, eg on every 5th point. It is assumed that you are doing index plotting; ie the axis is 0, len(data). This is mainly useful for x ticks. cC s||_||_dS(s<place ticks on the i-th data points where (i-offset)%base==0N(RRP(R RRP((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pyR s cC s6|ii\}}ti||i|d|iS(s!Return the locations of the ticksi(RRRftarangeRPR(R tdmintdmax((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pyRs(RRR)R R(((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pyRs t FixedLocatorcB s#eZdZddZdZRS(sn Tick locations are fixed. If nbins is not None, the array of possible positions will be subsampled to keep the number of ticks <= nbins +1. The subsampling will be done so as to include the smallest absolute value; for example, if zero is included in the array of possibilities, then it is guaranteed to be one of the chosen ticks. cC sHti||_||_|idj ot|id|_ndS(Ni(RfRvR%tnbinsRRm(R R%R((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pyR s cC s|idjo|iSttdt|it|id}|idd|}xbtd|D]Q}|i|d|}ti |i ti |i jo |}qmqmW|S(s!Return the locations of the ticksgGz?iN( RRR%RmR.R,tfloatRoRfRkRn(R RRR/tticks1((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pyRs/+N(RRR)RR R(((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pyRs  t NullLocatorcB seZdZdZRS(s No ticks cC sgS(s!Return the locations of the ticks((R ((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pyRs(RRR)R(((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pyRst LinearLocatorcB s8eZdZdddZdZdZdZRS(s Determine the tick locations The first time this function is called it will try to set the number of ticks to make a nice tick partitioning. Thereafter the number of ticks will be fixed so that interactive navigation will be nice cC s0||_|djo h|_n ||_dS(sX Use presets to set locs based on lom. A dict mapping vmin, vmax->locs N(RRtpresets(R RR((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pyR s   cC s|ii\}}ti||dd\}}||jo||}}n||f|ijo|i||fS|idjo|in|idjogSti |||i}|S(s!Return the locations of the ticksRg?iN( RRRRRRRt _set_numticksRftlinspace(R RRtticklocs((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pyRs cC s d|_dS(Ni (R(R ((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pyR+scC s||jo||}}n||jo|d8}|d7}ntti||d\}}|djo|d8}nd| }ti|||}ti|||}ti||S(s+Try to choose the view limits intelligentlyig?i (tdivmodRhRjRiRlRR(R RRRKt remaindertscale((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pyR.s   "  N(RRR)RR RRR(((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pyRs   cC s$t||djotStSdS(Ng|=(R;RSR(Rty((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pytclosetoCstBasecB sDeZdZdZdZdZdZdZdZRS(sEthis solution has some hacks to deal with floating point inaccuraciescC s ||_dS(N(R(R R((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pyR IscC s[t||i\}}t|do(t||id o|d|iS||iS(s'return the largest multiple of base < xii(RRR(R RR?tm((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pytltMs(cC sJt||i\}}t||ido|d|iS||iS(s(return the largest multiple of base <= xi(RRR(R RR?R((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pytleTscC sNt||i\}}t||ido|d|iS|d|iS(s(return the smallest multiple of base > xii(RRR(R RR?R((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pytgt\scC s[t||i\}}t|do$t||id o ||iS|d|iS(s)return the smallest multiple of base >= xii(RRR(R RR?R((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pytgeds( cC s|iS(N(R(R ((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pytget_baseks( RRR)R RRRRR(((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pyRGs     tMultipleLocatorcB s,eZdZddZdZdZRS(sW Set a tick on every integer that is multiple of base in the view interval g?cC st||_dS(N(RR(R R((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pyR tscC s|ii\}}||jo||}}n|ii|}|ii}||d||}|ti|d|}|S(s!Return the locations of the ticksgMbP?i(RRRRRRfR(R RRRR-R%((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pyRws cC sY|ii|}|ii|}||jo|d8}|d7}nti||S(sd Set the view limits to the nearest multiples of base that contain the data i(RRRRR(R RRRR((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pyRs   (RRR)R RR(((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pyRns  iidc C st||}tt|t|}|djp||djodSd||}t|||jo d}n`|djo*tti|dd}d|}n)tti| dd}d| }tti||dd}d|} | |fS( Nig-q=g?gg?ii (g?g(R;RmRRhRj( RRR-t thresholdtdvtmaxabsvtmeanvRPtexR((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pyt scale_ranges     t MaxNLocatorcB sDeZdZddeeeddZdZdZdZ RS(s< Select no more than N intervals at nice locations. i c C st||_||_||_||_||_|d jo+ddddddddd d g |_n>t|d d jot|}|i d n||_|oIg}|iD]+}t |ddd jo ||qq~|_nd S(s Keyword args: *prune* Remove edge ticks -- useful for stacked or ganged plots where the upper tick of one axes overlaps with the lower tick of the axes above it. One of 'lower' | 'upper' | 'both' | None. If prune=='lower', the smallest tick will be removed. If prune=='upper', the largest tick will be removed. If prune=='both', the largest and smallest ticks will be removed. If prune==None, no ticks will be removed. ig?ig@iiiiii igMbP?N( R.t_nbinst_trimt_integert _symmetrict_pruneRt_stepstlisttappendR( R Rtstepsttrimtintegert symmetrictpruneRyR-((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pyR s     +  c C s1|i}t|||\}}|iotd|}n||8}||8}|||}||}|}|} xf|iD][} | |joqn| |9} | t|| d} | | |}||joPqqW|io+tt||| d} || 8}nti |d| | |S(Nii( RRRRmRRRR.RfR( R RRRRRPtraw_steptscaled_raw_stept best_vmaxt best_vminRt extra_bins((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pytbin_boundariess.           cC s|ii\}}ti||dd\}}|i||}|i}|djo|d}n:|djo|d }n|djo|dd!}n|S(NRg?tloweritupperitboth(RRRRRR(R RRR%R((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pyRs    cC sv|io,tt|t|}| }|}nti||dd\}}ti|i||ddgS(NRg?ii(RRmR;RRRfttakeR(R RRtmaxabs((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pyRs   N( RRR)RRSRR RRR(((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pyRs   i cC s-titi|ti|}||S(s#floor x to the nearest lower decade(RhRiR(RRtlx((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pyt decade_downs%cC s-titi|ti|}||S(s#ceil x to the nearest higher decade(RhRlR(RRR((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pyt decade_ups%cC s,ti|ti|}|t|jS(N(RhRR.(RRR((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pyRst LogLocatorcB sMeZdZddgdZdZdZdZdZdZRS( s3 Determine the tick locations for log axes g$@g?cC s'|i||i|d|_dS(s> place ticks on the location= base**i*subs[j] iN(RtsubsR(R RR((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pyR s  cC s|d|_dS(sX set the base of the log scaling (major tick every base**i, i interger) gN(R(R R((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pyRscC s4|djo d|_nti|d|_dS(sK set the minor ticks the log scaling every base**i*subs[j] gN(Rt_subsRfRv(R R((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pyRs  cC s d|_dS(Ni(R(R ((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pyR$sc C s|i}|ii\}}|djo0|ii}|djotdq[nti|ti|}ti|ti|}||jo||}}nti|ti|}|i d jo_|djot i dg}qE|djot i d|d}qEt i d|}n |i }d}x'||d|ijo|d7}qNWt i ti|ti|||}t|djp$t|djoA|ddjo0g}x1||D]} |i|| qWn ||}t i |S( s!Return the locations of the ticksgsAData has no positive values, and therefore can not be log-scaled.i g?ig@iiN(RRRt get_minpost ValueErrorRhRRiRlRRRftarrayRRR,textend( R RZRRtnumdecRtstridetdecadesRt decadeStart((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pyR's@       7  cC s||jo||}}n|ii}|djotdn||jo |}nt||ipt||i}nt||ipt||i}n||jo(t||i}t||i}nti||}|S(s+Try to choose the view limits intelligentlyisAData has no positive values, and therefore can not be log-scaled.( RRRRRRRRR(R RRtminpostresult((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pyRPs"      ( RRR)R RRRRR(((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pyRs   )tSymmetricalLogLocatorcB s8eZdZdgdZdZdZdZRS(s3 Determine the tick locations for log axes g?cC s||_||_d|_dS(s> place ticks on the location= base**i*subs[j] iN(t _transformRR(R t transformR((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pyR ms  cC s d|_dS(Ni(R(R ((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pyRusc C s|ii}|ii\}}|ii||f\}}||jo||}}nti|ti|}|idjo_|djot i dg}q|djot i d|d}qt i d|}nt i |i}d}x'||d|ijo|d7}qWt i ti|ti|||}t|djp|ddjoFg}x]|D]1} |i|t i| |t i| qWn!t i||t i|}t i |S(s!Return the locations of the ticksi g?ig@iiN(RRRRRRhRiRlRRRfRRRvRR,RRJR;( R RZRRRRRRRtdecade((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pyRxs2    +$3 cC s8|ii}||jo||}}ntt||p5|djot| | }qut||}ntt||p5|djot| | }qt||}n||joU|djo&t| | }t| | }q"t||}t||}nti||}|S(s+Try to choose the view limits intelligentlyi(RRRR;RRRR(R RRRZR((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pyRs&      (RRR)R RRR(((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pyRhs   t AutoLocatorcB seZdZRS(c C s)ti|dddddddgdS(NRi Riiii (RR (R ((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pyR s(RRR (((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pyRstAutoMinorLocatorcB seZdZdZRS(s Dynamically find minor tick positions based on the positions of major ticks. Assumes the scale is linear and major ticks are evenly spaced. c C s(|ii}y|d|d}Wntj otdnXtd|idd}|ddjo|d}n*|d djo|d }n |d }|d|}|d |}ti|||}|ii\}} || jo| |}} n|||j|| j@S( s!Return the locations of the ticksiis:Need at least two major ticks to find minor tick locationss%eR@ig|=g@ig@g@i( Rtget_majorticklocsR~RRRDRfRR( R t majorlocst majorstepttempt minorstepttminttmaxR%RR((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pyRs$  (RRR)R(((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pyRstOldAutoLocatorcB s;eZdZdZdZdZdZdZRS(so On autoscale this class picks the best MultipleLocator to set the view limits and the tick locs. cC st|_dS(N(Rt_locator(R ((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pyR scC s|i|iS(s!Return the locations of the ticks(RR(R ((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pyRs cC sY|ii\}}ti||dd\}}t||}|i||_dS(s1refresh internal information based on current limRg?N(RRRRR;t get_locatorR(R RRR?((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pyRscC s5t||}|i||_|ii||S(s+Try to choose the view limits intelligently(R;RRR(R RRR?((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pyRscC st|}|djotd}nyti|}Wntj otdnXti|}d|}|d|jo |}n*|d|jo|d}n |d}t|}|S( s)pick the best locator based on a distanceig?s'AutoLocator illegal data interval rangei iig@g@(R;RRhRjt OverflowErrort RuntimeErrorRi(R R?tlocatortldtfldRtticksize((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pyRs       (RRR)R RRRR(((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pyRs     ((((RRR1R0R6R8RLRRRRRRRRRRRR(*R)t __future__RRhtnumpyRft matplotlibRRRRRRR*R0R1R6R8R:RLRRRRRRRRRRRRRRRRRRRRRt__all__(((s7/usr/lib64/python2.6/site-packages/matplotlib/ticker.pytusV  %*  $W %9  C '!V   `J"8