/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/ticker.pyc (52164B)
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((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/ticker.pyt__init__scC s |iiS(N(R t intervalx(R ((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/ticker.pytget_view_intervalscC s||f|i_dS(N(R R (R tvmintvmax((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/ticker.pytset_view_intervalscC s |iiS(N(R R (R ((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/ticker.pytget_data_intervalscC s||f|i_dS(N(R R (R RR((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/ticker.pytset_data_intervals(t__name__t __module__R RRRR(((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/ticker.pyRs     cC s ||_dS(N(taxis(R R((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/ticker.pytset_axisscC s'|idjo|i|_ndS(N(RtNoneR(R ((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/ticker.pytcreate_dummy_axisscC s|ii||dS(N(RR(R RR((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/ticker.pyRscC s|ii||dS(N(RR(R RR((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/ticker.pyRscC s$|i|||i||dS(N(RR(R RR((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/ticker.pyt set_boundssN(( RRRRRRRRRR(((sD/opt/alt/python27/lib64/python2.7/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((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/ticker.pyt__call__scC s |i|S(N(R(R tvalue((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/ticker.pyt format_datascC s |i|S(sreturn a short string version(R!(R R ((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/ticker.pytformat_data_shortscC sdS(Nt((R ((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/ticker.pyt get_offsetscC s ||_dS(N(tlocs(R R%((sD/opt/alt/python27/lib64/python2.7/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((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/ticker.pyt fix_minussN( RRt__doc__R%RRR!R"R$R&R((((sD/opt/alt/python27/lib64/python2.7/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+((sD/opt/alt/python27/lib64/python2.7/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((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/ticker.pyRs  N(RRR)R RR(((sD/opt/alt/python27/lib64/python2.7/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((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/ticker.pyRsN(RRR)RR(((sD/opt/alt/python27/lib64/python2.7/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((sD/opt/alt/python27/lib64/python2.7/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((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/ticker.pyRs#cC s|iS(N(R3(R ((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/ticker.pyR$scC s ||_dS(N(R3(R tofs((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/ticker.pytset_offset_stringsN(RRR)R RRR$R5(((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/ticker.pyR1s    t FuncFormattercB s#eZdZdZddZRS(s. User defined function for formatting cC s ||_dS(N(tfunc(R R7((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/ticker.pyR scC s|i||S(s4Return the format for tick val *x* at position *pos*(R7(R RR((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/ticker.pyRsN(RRR)R RR(((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/ticker.pyR6s tFormatStrFormattercB s#eZdZdZddZRS(s0 Use a format string to format the tick cC s ||_dS(N(tfmt(R R9((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/ticker.pyR scC s |i|S(s4Return the format for tick val *x* at position *pos*(R9(R RR((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/ticker.pyRsN(RRR)R RR(((sD/opt/alt/python27/lib64/python2.7/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((sD/opt/alt/python27/lib64/python2.7/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((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/ticker.pyR<!s,&       N(RRR)RRR<(((sD/opt/alt/python27/lib64/python2.7/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((sD/opt/alt/python27/lib64/python2.7/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'((sD/opt/alt/python27/lib64/python2.7/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'((sD/opt/alt/python27/lib64/python2.7/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((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/ticker.pytset_scientific\scC s*t|djp td||_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`. is'argument must be a sequence of length 2N(R,tAssertionErrorRU(R tlims((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/ticker.pytset_powerlimitsbs cC sd|S(s:return a short formatted string representation of a numbers%-12g((R R ((sD/opt/alt/python27/lib64/python2.7/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'((sD/opt/alt/python27/lib64/python2.7/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((sD/opt/alt/python27/lib64/python2.7/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?((sD/opt/alt/python27/lib64/python2.7/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((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/ticker.pyRds ( * //cC s|ipd|_dSti|i}|iotiti|}n]|d|djo|d}n |d}|djo d}ntiti|}||i djo ||_n+||i djo ||_n d|_dS(Niii( RTRQRgRlR%RPRiRjRkRU(R RpR%toomtval((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/ticker.pyRes"       cC sti|i|id|id}g}|D]3}|ttd|iddidq3~}|i dt|dd |_ |i od |i |_ n|i od |i |_ ndS( Ni gV瞯i(RPRQRgRlRR(R Rtxp((sD/opt/alt/python27/lib64/python2.7/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((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/ticker.pyR_s"  N(RRR)RStFalseR R(RRR[R^R"R!R$R&RdReRfR<R_(((sD/opt/alt/python27/lib64/python2.7/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((sD/opt/alt/python27/lib64/python2.7/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((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/ticker.pyRscC s ||_dS(s"switch on/off minor ticks labelingN(R(R R((sD/opt/alt/python27/lib64/python2.7/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;RRgRJRitlogt is_decadeRR<R(( R RRRRR?RZRJtfxtisDecadeR'((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/ticker.pyR s$  "    cC s.t|_ti|i|}t|_|S(N(RRRt strip_mathRRS(R R ((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/ticker.pyR!s  cC sd|S(s:return a short formatted string representation of a numbers%-12g((R R ((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/ticker.pyR"#scC s#|i|}t||djS(Ng|=(t nearest_longR;(R RR-((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/ticker.pyR'scC s@|djodS|djot|dSt|dSdS(Nilg?(tlong(R R((sD/opt/alt/python27/lib64/python2.7/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((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/ticker.pyR<0s,&       N(RRR)RSR RRRRR!R"RRR<(((sD/opt/alt/python27/lib64/python2.7/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;RRgRJRiRRRR<R(( R RRRRR?RZRJRRR'((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/ticker.pyRLs&  "    N(RRR)RR(((sD/opt/alt/python27/lib64/python2.7/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}}$( RRgRJRiRR;RRRR( R RRRZRJRRtusetext sign_stringR'((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/ticker.pyRls(  "     N(RRR)RR(((sD/opt/alt/python27/lib64/python2.7/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 ((sD/opt/alt/python27/lib64/python2.7/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((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/ticker.pyt view_limitsscC s|i|iiS(sautoscale the view limits(RRR(R ((sD/opt/alt/python27/lib64/python2.7/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?((sD/opt/alt/python27/lib64/python2.7/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((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/ticker.pytzooms cC sdS(s1refresh internal information based on current limN((R ((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/ticker.pytrefreshs( RRR)RRRRRR(((sD/opt/alt/python27/lib64/python2.7/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((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/ticker.pyR s cC s6|ii\}}ti||i|d|iS(s!Return the locations of the ticksi(RRRgtarangeRPR(R tdmintdmax((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/ticker.pyRs(RRR)R R(((sD/opt/alt/python27/lib64/python2.7/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(RgRwR%tnbinsRRn(R R%R((sD/opt/alt/python27/lib64/python2.7/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%RnR.R,tfloatRpRgRlRo(R RRR/tticks1((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/ticker.pyRs/+N(RRR)RR R(((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/ticker.pyRs  t NullLocatorcB seZdZdZRS(s No ticks cC sgS(s!Return the locations of the ticks((R ((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/ticker.pyRs(RRR)R(((sD/opt/alt/python27/lib64/python2.7/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((sD/opt/alt/python27/lib64/python2.7/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_numticksRgtlinspace(R RRtticklocs((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/ticker.pyRs cC s d|_dS(Ni (R(R ((sD/opt/alt/python27/lib64/python2.7/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 (tdivmodRiRkRjRmRR(R RRRKt remaindertscale((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/ticker.pyR.s   "  N(RRR)RR RRR(((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/ticker.pyRs   cC s$t||djotStSdS(Ng|=(R;RSR(Rty((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/ticker.pytclosetoCstBasecB sDeZdZdZdZdZdZdZdZRS(sEthis solution has some hacks to deal with floating point inaccuraciescC s!|djpt||_dS(Ni(R\R(R R((sD/opt/alt/python27/lib64/python2.7/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((sD/opt/alt/python27/lib64/python2.7/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((sD/opt/alt/python27/lib64/python2.7/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((sD/opt/alt/python27/lib64/python2.7/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((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/ticker.pytgeds( cC s|iS(N(R(R ((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/ticker.pytget_baseks( RRR)R RRRRR(((sD/opt/alt/python27/lib64/python2.7/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((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/ticker.pyR tscC s|ii\}}||jo||}}n|ii|}|ii}||d||}|ti|d|}|S(s!Return the locations of the ticksgMbP?i(RRRRRRgR(R RRRR-R%((sD/opt/alt/python27/lib64/python2.7/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((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/ticker.pyRs   (RRR)R RR(((sD/opt/alt/python27/lib64/python2.7/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;RnRRiRk( RRR-t thresholdtdvtmaxabsvtmeanvRPtexR((sD/opt/alt/python27/lib64/python2.7/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 symmetrictpruneRzR-((sD/opt/alt/python27/lib64/python2.7/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( RRRRnRRRR.RgR( R RRRRRPtraw_steptscaled_raw_stept best_vmaxt best_vminRt extra_bins((sD/opt/alt/python27/lib64/python2.7/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((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/ticker.pyRs    cC sv|io,tt|t|}| }|}nti||dd\}}ti|i||ddgS(NRg?ii(RRnR;RRRgttakeR(R RRtmaxabs((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/ticker.pyRs   N( RRR)RRSRR RRR(((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/ticker.pyRs   i cC s-titi|ti|}||S(s#floor x to the nearest lower decade(RiRjR(RRtlx((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/ticker.pyt decade_downs%cC s-titi|ti|}||S(s#ceil x to the nearest higher decade(RiRmR(RRR((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/ticker.pyt decade_ups%cC s,ti|ti|}|t|jS(N(RiRR.(RRR((sD/opt/alt/python27/lib64/python2.7/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((sD/opt/alt/python27/lib64/python2.7/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((sD/opt/alt/python27/lib64/python2.7/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_subsRgRw(R R((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/ticker.pyRs  cC s d|_dS(Ni(R(R ((sD/opt/alt/python27/lib64/python2.7/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 ValueErrorRiRRjRmRRRgtarrayRRR,textend( R RZRRtnumdecRtstridetdecadesRt decadeStart((sD/opt/alt/python27/lib64/python2.7/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((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/ticker.pyRPs"      ( RRR)R RRRRR(((sD/opt/alt/python27/lib64/python2.7/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((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/ticker.pyR ms  cC s d|_dS(Ni(R(R ((sD/opt/alt/python27/lib64/python2.7/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(RRRRRRiRjRmRRRgRRRwRR,RRJR;( R RZRRRRRRRtdecade((sD/opt/alt/python27/lib64/python2.7/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((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/ticker.pyRs&      (RRR)R RRR(((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/ticker.pyRhs   t AutoLocatorcB seZdZRS(c C s)ti|dddddddgdS(NRi Riiii (RR (R ((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/ticker.pyR s(RRR (((sD/opt/alt/python27/lib64/python2.7/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_majorticklocsRRRRDRgRR( R t majorlocst majorstepttempt minorstepttminttmaxR%RR((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/ticker.pyRs$  (RRR)R(((sD/opt/alt/python27/lib64/python2.7/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 ((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/ticker.pyR scC s|i|iS(s!Return the locations of the ticks(RR(R ((sD/opt/alt/python27/lib64/python2.7/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?((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/ticker.pyRscC s5t||}|i||_|ii||S(s+Try to choose the view limits intelligently(R;RRR(R RRR?((sD/opt/alt/python27/lib64/python2.7/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;RRiRkt OverflowErrort RuntimeErrorRj(R R?tlocatortldtfldRtticksize((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/ticker.pyRs       (RRR)R RRRR(((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/ticker.pyRs     ((((RRR1R0R6R8RLRRRRRRRRRRRR(*R)t __future__RRitnumpyRgt matplotlibRRRRRRR*R0R1R6R8R:RLRRRRRRRRRRRRRRRRRRRRRt__all__(((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/ticker.pytusV  %*  $W %9  C '!V   `J"8