/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/colorbar.pyc (25497B)
Jc@s dZddkZddkZddkiZddkiZddk i Z ddk i Z ddk iZddkiZddkiZddkiZddkiZdZdZdeefZdeifdYZdefd YZd Zd ee_dS( s Colorbar toolkit with two classes and a function: :class:`ColorbarBase` the base class with full colorbar drawing functionality. It can be used as-is to make a colorbar for a given colormap; a mappable object (e.g., image) is not needed. :class:`Colorbar` the derived class for use with images or contour plots. :func:`make_axes` a function for resizing an axes and adding a second axes suitable for a colorbar The :meth:`~matplotlib.figure.Figure.colorbar` method uses :func:`make_axes` and :class:`Colorbar`; the :func:`~matplotlib.pyplot.colorbar` function is a thin wrapper over :meth:`~matplotlib.figure.Figure.colorbar`. iNse ============= ==================================================== Property Description ============= ==================================================== *orientation* vertical or horizontal *fraction* 0.15; fraction of original axes to use for colorbar *pad* 0.05 if vertical, 0.15 if horizontal; fraction of original axes between colorbar and new image axes *shrink* 1.0; fraction by which to shrink the colorbar *aspect* 20; ratio of long to short dimensions ============= ==================================================== sH =========== ==================================================== Property Description =========== ==================================================== *extend* [ 'neither' | 'both' | 'min' | 'max' ] If not 'neither', make pointed end(s) for out-of- range values. These are set for a given colormap using the colormap set_under and set_over methods. *spacing* [ 'uniform' | 'proportional' ] Uniform spacing gives each discrete color the same space; proportional makes the space proportional to the data interval. *ticks* [ None | list of ticks | Locator object ] If None, ticks are determined automatically from the input. *format* [ None | format string | Formatter object ] If None, the :class:`~matplotlib.ticker.ScalarFormatter` is used. If a format string is given, e.g. '%.3f', that is used. An alternative :class:`~matplotlib.ticker.Formatter` object may be given instead. *drawedges* [ False | True ] If true, draw lines at color boundaries. =========== ==================================================== The following will probably be useful only in the context of indexed colors (that is, when the mappable has norm=NoNorm()), or other unusual circumstances. ============ =================================================== Property Description ============ =================================================== *boundaries* None or a sequence *values* None or a sequence which must be of length 1 less than the sequence of *boundaries*. For each region delimited by adjacent entries in *boundaries*, the color mapped to the corresponding value in values will be used. ============ =================================================== s> Add a colorbar to a plot. Function signatures for the :mod:`~matplotlib.pyplot` interface; all but the first are also method signatures for the :meth:`~matplotlib.figure.Figure.colorbar` method:: colorbar(**kwargs) colorbar(mappable, **kwargs) colorbar(mappable, cax=cax, **kwargs) colorbar(mappable, ax=ax, **kwargs) arguments: *mappable* the :class:`~matplotlib.image.Image`, :class:`~matplotlib.contour.ContourSet`, etc. to which the colorbar applies; this argument is mandatory for the :meth:`~matplotlib.figure.Figure.colorbar` method but optional for the :func:`~matplotlib.pyplot.colorbar` function, which sets the default to the current image. keyword arguments: *cax* None | axes object into which the colorbar will be drawn *ax* None | parent axes object from which space for a new colorbar axes will be stolen Additional keyword arguments are of two kinds: axes properties: %s colorbar properties: %s If *mappable* is a :class:`~matplotlib.contours.ContourSet`, its *extend* kwarg is included automatically. Note that the *shrink* kwarg provides a simple way to keep a vertical colorbar, for example, from being taller than the axes of the mappable to which the colorbar is attached; but it is a manual method requiring some trial and error. If the colorbar is too tall (or a horizontal colorbar is too wide) use a smaller value of *shrink*. For more precise control, you can manually specify the positions of the axes objects in which the mappable and the colorbar are drawn. In this case, do not use any of the axes properties kwargs. returns: :class:`~matplotlib.colorbar.Colorbar` instance; see also its base class, :class:`~matplotlib.colorbar.ColorbarBase`. Call the :meth:`~matplotlib.colorbar.ColorbarBase.set_label` method to label the colorbar. t ColorbarBasec Bs&eZdZheddd6eddd6eddd6eddd6Zddd ddd dd ddeed Zd Z dZ dZ dZ dZ dZdZdZdZddZdZdZdZdZdZdZdZdZRS( s Draw a colorbar in an existing axes. This is a base class for the :class:`Colorbar` class, which is the basis for the :func:`~matplotlib.pyplot.colorbar` method and pylab function. It is also useful by itself for showing a colormap. If the *cmap* kwarg is given but *boundaries* and *values* are left as None, then the colormap will be displayed on a 0-1 scale. To show the under- and over-value colors, specify the *norm* as:: colors.Normalize(clip=False) To show the colors versus index instead of on the 0-1 scale, use:: norm=colors.NoNorm. Useful attributes: :attr:`ax` the Axes instance in which the colorbar is drawn :attr:`lines` a LineCollection if lines were drawn, otherwise None :attr:`dividers` a LineCollection if *drawedges* is True, otherwise None Useful public methods are :meth:`set_label` and :meth:`add_lines`. ii@Btneitheriitbothtmintmaxg?tverticaltuniformcCs||_|djoti}n|djoti}n||_tii|d|d|||_ ||_ ||_ |i ||_ | |_||_| |_| |_d|_d|_d|_|idti| o"ti| dt| |_n | |_| djo<t|itioti|_ qti!|_ n0ti"| oti#| |_ n | |_ |i$dS(Ntcmaptnormttnbins(%taxtNonetcmtget_cmaptcolorst NormalizetalphatScalarMappablet__init__tvaluest boundariestextendt _slice_dictt_insidetspacingt orientationt drawedgestfilledtsolidstlinestdividerst set_labeltcbooktiterablettickert FixedLocatortlentlocatort isinstanceRtLogNormt LogFormattert formattertScalarFormattertis_string_liketFormatStrFormattertdraw_all(tselfR RRRRRRRRttickstformatRR((s9/usr/lib64/python2.6/site-packages/matplotlib/colorbar.pyRs<               "   cCs|i|i|i\}}|iddtif}|i|||io|i|||n|i dS(ss Calculate any free parameters based on the current cmap and norm, and do all the drawing. N( t_process_valuest _find_ranget_mesht_valuestnptnewaxist _config_axesRt _add_solidst _set_label(R/tXtYtC((s9/usr/lib64/python2.6/site-packages/matplotlib/colorbar.pyR.s   c Cs|i}|it|it|i||}|i||i|ii|i |ii t i |dddf|dddfdt iddt id|_|i|i|iid|iidt id}ti|d |d |dd d d |_|i|i|i\}}}|idjoa|ig|iid|iid|i||i||iii |nN|ig|i!id|i||i"||i!ii |dS(s1 Make an axes patch and outline. Niitcolorsaxes.edgecolort linewidthsaxes.linewidthsaxes.facecolort edgecolort facecolorg{Gz?tzorderiRtrighttbottom(#R t set_frame_ontFalset set_navigatet_outlinetupdate_datalimtset_xlimtdataLimt intervalxtset_ylimt intervalyRtLine2DtmpltrcParamstoutlinet add_artistt set_clip_boxR t set_clip_pathtpatchestPolygontpatcht_tickerRt set_xtickstyaxistset_label_positiontset_ticks_positiont set_ytickstset_yticklabelstget_major_formattertset_offset_stringtxaxistset_xticklabels( R/R;R<R txytcR0t ticklabelst offset_string((s9/usr/lib64/python2.6/site-packages/matplotlib/colorbar.pyR8s>    <        cCsJ|idjo|ii|i|in|ii|i|idS(NR(RR t set_ylabelt_labelt_labelkwt set_xlabel(R/((s9/usr/lib64/python2.6/site-packages/matplotlib/colorbar.pyR:$scKs ||_||_|idS(s5 Label the long axis of the colorbar N(RiRjR:(R/tlabeltkw((s9/usr/lib64/python2.6/site-packages/matplotlib/colorbar.pyR *s  c Cs|id}dd|d|dd|dd|d|d|dg }tititi||}tititi||}|it|df}|it|df}|idjoti||fSti||fS(so Return *x*, *y* arrays of colorbar bounding polygon, taking orientation into account. iiit horizontal( tshapeR6ttaketravelt transposetreshapeR%Rthstack(R/R;R<tNtiitxty((s9/usr/lib64/python2.6/site-packages/matplotlib/colorbar.pyRH3s =$$cCs|id}|idjo>g}td|dD]}|t||||q5~Sg}td|dD]}|t||||qs~SdS(sM Return the separator line segments; helper for _add_solids. iRiN(RoRtrangetzip(R/R;R<Rut_[1]tit_[2]((s9/usr/lib64/python2.6/site-packages/matplotlib/colorbar.pyt_edgesBs >cCs,|idjo|||f}n+ti|ti|ti|f}h|id6|id6dd6|id6}|ii}|iit |ii ||}|ii|||_ |i oYt i|i||dtidfd d tid f|_|ii|ind S( sp Draw the colors using :meth:`~matplotlib.axes.Axes.pcolor`; optionally add separators. RRRtflattshadingRRsaxes.edgecolort linewidthsg?saxes.linewidthN(RR6RrRRRR tisholdtholdtTruetpcolorRRt collectionstLineCollectionR~RPRQRtadd_collection(R/R;R<R=targsRmt_holdtcol((s9/usr/lib64/python2.6/site-packages/matplotlib/colorbar.pyR9Ns*  cCs4t|}|i|\}}t||jotdntiddg}ti||\}} |idjo<g} t|D]} | t|| | | q~ } n9g} t|D]} | t| | || q~ } t i | d|}||_ |i ||i i|dS(s- Draw lines on the colorbar. s!levels are outside colorbar rangegg?RRN(R%t_locatet ValueErrorR6tarraytmeshgridRRyRzRRRt set_colorR R(R/tlevelsRRRutdummyRxRwR;R<R{R|RdR}R((s9/usr/lib64/python2.6/site-packages/matplotlib/colorbar.pyt add_linesjs <8  c Cs/|i}|i}|djo|idjot|itio?t|i }dt |d}t i d|dd}qt|iti o%|ii}t i|dd}qt|itiot i}qt i}q|i|i}t i|dd}nt|itio|i d|i df}n|i|if}|i|i|i||i||i||i|ti|}|i|\}}|i|g}t|D]\} } ||| | q~} |i} || | fS( si Return two sequences: ticks (colorbar data locations) and ticklabels (strings). ii tbasetoffsetiR iN(R&R*R RR'RRtNoNormR%R5tintR#t IndexLocatort BoundaryNormR$R(t LogLocatort MaxNLocatort _boundariesRtvmintvmaxtcreate_dummy_axistset_view_intervaltset_data_intervalR6RRtset_locst enumeratet get_offset( R/R&R*tnvRtbtintvR0R{R|ttRfRg((s9/usr/lib64/python2.6/site-packages/matplotlib/colorbar.pyRY~s>           6 c Cs[|djo |i}n|dj oti|dt|_|idjoZd|id |id|_t|i t i o |idi ti |_ndSti|i|_dS|idj oti|i|_|idjotit|idd}d|id |id|dd+d|d|d |d Ntdg@iiiiRRR(Rsmin(Rsmax(Rsmin(Rsmax(Rsmin(Rsmax(Rsmin(Rsmax(R RR6tasarraytfloatRRR5R'RRRtastypetint16RtzerosR%t _uniform_yRRutarangeRRRtlisttscaledRRtinverseR2(R/Rtvtbi((s9/usr/lib64/python2.6/site-packages/matplotlib/colorbar.pyR2sx     # '%%  "    %cCs.|i|i}|d|_|d|_dS(s Set :attr:`vmin` and :attr:`vmax` attributes to the first and last boundary excluding extended end boundaries. iiN(RRRR(R/R((s9/usr/lib64/python2.6/site-packages/matplotlib/colorbar.pyR3s cCsOt|i}|idjo|d8}n|idjo|d8}n|S(s1number of boundaries **before** extension of endsRiRRi(sminsmax(R%RR(R/tnb((s9/usr/lib64/python2.6/site-packages/matplotlib/colorbar.pyt _central_Ns cCsP|iid}|idjo|d7}n|idjo|d7}n|S(se Based on the colormap and extend variable, return the number of boundaries. iRiRR(sminsmax(RRuR(R/Ru((s9/usr/lib64/python2.6/site-packages/matplotlib/colorbar.pyt _extended_Ns cCs|idjotidd|}n|idjo.ti|dd}d|ds&  ,<L +