/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/colorbar.pyo (25835B)
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((sF/opt/alt/python27/lib64/python2.7/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((sF/opt/alt/python27/lib64/python2.7/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((sF/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/colorbar.pyR8s>    <        cCsJ|idjo|ii|i|in|ii|i|idS(NR(RR t set_ylabelt_labelt_labelkwt set_xlabel(R/((sF/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/colorbar.pyR:$scKs ||_||_|idS(s5 Label the long axis of the colorbar N(RiRjR:(R/tlabeltkw((sF/opt/alt/python27/lib64/python2.7/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((sF/opt/alt/python27/lib64/python2.7/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]((sF/opt/alt/python27/lib64/python2.7/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((sF/opt/alt/python27/lib64/python2.7/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((sF/opt/alt/python27/lib64/python2.7/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((sF/opt/alt/python27/lib64/python2.7/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((sF/opt/alt/python27/lib64/python2.7/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((sF/opt/alt/python27/lib64/python2.7/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((sF/opt/alt/python27/lib64/python2.7/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((sF/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/colorbar.pyt _extended_Ns cCs|idjotidd|}n|idjo.ti|dd}d|ds&  ,<L +