KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache
System : Linux server112.speedpacket.com 3.10.0-962.3.2.lve1.5.36.el7.x86_64 #1 SMP Mon May 18 02:16:06 EDT 2020 x86_64
User : equistyl ( 1341)
PHP Version : 8.1.30
Disable Function : NONE
Directory :  /lib64/python2.7/site-packages/matplotlib/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib64/python2.7/site-packages/matplotlib/axes.pyo
�
r`]c@ sAddlmZmZddlZddlZddlZddlZddlmZddl	Z	ddl
Zddl
mZddl
Z
e
jZddljZddlmZddljZddljZddljZddljZddljZ ddl!j"Z#ddl
m$Z$ddl%j&Z&ddl'j(Z)ddl*j+Z,ddl-j.Z/ddl0j1Z2ddl3j4Z4ddl5j6Z7ddl8j9Z:ddl;j<Z=ddl>j?Z@ddlAjBZCddlDjEZFddlGjHZIddlJjKZLddlMjNZOddlPjQZRddlSjTZUddlVjWZXddlYmZZZm[Z[m\Z\ej]Z]ej^Z^ej_Z_d�Z`d	�Zad
�Zbdecfd��YZdd
ejefd��YZfddlgmhZhmiZidfd��YZjiZkeld�Zmem�Zndecfd��YZoe$jpjqd
ejref��e$jpjqdejref��dS(i����(tdivisiontprint_functionN(t
itemgetter(tma(tallow_rasterization(t	docstring(tBarContainertErrorbarContainert
StemContainercC s@t|�s|S|dkr tS|dkr0tStd��dS(Ntontoffs,string argument must be either 'on' or 'off'(tis_string_liketTruetFalset
ValueError(ts((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyt_string_to_bool-scC s]d}d}d}yitjj|�}ytt|��}Wntk
rZ|||fSX||krt|||fSd}Wntk
r�nX|jd�dkr�d}|jdd�}n|jd�dkr�d}|jdd�}n|jd�dkrd}|jdd�}ng|D]}|^q&}x�|D]�}|t	j
kr||dk	rstd|��n|}q?|t	jkr�|dk	r�td|��n|}q?|tjjkr�|dk	r�td	|��n|}q?td
|��q?W|dkr&|dkr&t
d}n|dkr;d}n|dkrPd}n|||fS(
s�
    Process a MATLAB style color/line style format string.  Return a
    (*linestyle*, *color*) tuple as a result of the processing.  Default
    values are ('-', 'b').  Example format strings include:

    * 'ko': black circles
    * '.b': blue dots
    * 'r--': red dashed lines

    .. seealso::

        :func:`~matplotlib.Line2D.lineStyles` and
        :func:`~matplotlib.pyplot.colors`
            for all possible styles and color format string.
    s--its-.t tNones1Illegal format string "%s"; two linestyle symbolss.Illegal format string "%s"; two marker symbolss-Illegal format string "%s"; two color symbolss*Unrecognized character %c in format stringslines.linestyleN(RtmcolorstcolorConvertertto_rgbtstrtintRtfindtreplacetmlinest
lineStylestlineMarkerstcolorstrcParams(tfmtt	linestyletmarkertcolortfmtinttctchars((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyt_process_plot_format6sb




			
		cC s|td<tjdt�dS(s�
    Change the default cycle of colors that will be used by the plot
    command.  This must be called before creating the
    :class:`Axes` to which it will apply; it will
    apply to all future axes.

    *clist* is a sequence of mpl color specifiers.

    See also: :meth:`~matplotlib.axes.Axes.set_color_cycle`.

    .. Note:: Deprecated 2010/01/03.
              Set rcParams['axes.color_cycle'] directly.

    saxes.color_cycles)Set rcParams['axes.color_cycle'] directlyN(RtwarningstwarntDeprecationWarning(tclist((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pytset_default_color_cycle�s
	t_process_plot_var_argscB s�eZdZdd�Zd�Zd�Zdd�Zd�Zd�Z	d�Z
d	�Zd
�Zd�Z
d�Zd
�ZRS(s3
    Process variable length arguments to the plot command, so that
    plot commands like the following are supported::

      plot(t, s)
      plot(t1, s1, t2, s2)
      plot(t1, s1, 'ko', t2, s2)
      plot(t1, s1, 'ko', t2, s2, 'r--', t3, e3)

    an arbitrary number of *x*, *y*, *fmt* are allowed
    tplotcC s ||_||_|j�dS(N(taxestcommandtset_color_cycle(tselfR/R0((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyt__init__�s		cC si|jd6|jd6S(NR/R0(R/R0(R2((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyt__getstate__�scC s|j�|_|j�dS(N(tcopyt__dict__R1(R2tstate((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyt__setstate__�scC s/|dkrtd}ntj|�|_dS(Nsaxes.color_cycle(RRt	itertoolstcycletcolor_cycle(R2R+((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyR1�s
cO s|jjdk	r|jjdk	r|jd|jjj�}|jjdkrf|jd|�}n|jd|jjj�}|jjdkr�|jd|�}n||jjjkr�|jjj|�n||jjjkr|jjj|�qn|j||�}|S(Ntxunitstpolart
thetaunitstyunitstrunits(	R/txaxisRtyaxistpoptunitstnamet	set_unitst_grab_next_args(R2targstkwargsR<R?tret((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyt__call__�s$cK sfx_|j�D]Q\}}d|}t||�sEtd|��nt||�}||�q
WdS(Nsset_%ssThere is no line property "%s"(titemsthasattrt	TypeErrortgetattr(R2tlineRItkeytvaltfuncNametfunc((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyt
set_lineprops�s
cK sfx_|j�D]Q\}}d|}t||�sEtd|��nt||�}||�q
WdS(Nsset_%ssThere is no patch property "%s"(RLRMRNRO(R2t	fill_polyRIRQRRRSRT((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pytset_patchprops�s
cC sm|jjdk	r�|jjdk	r�|jjj|�}|jjj|�}|jdkr�|rx|jj|�}n|r�|jj|�}q�q�ntj	|�}tj	|�}|j
d|j
dkr�td��n|jdks�|jdkr
td��n|jdkr8|dd�tj
f}n|jdkrc|dd�tj
f}n||fS(NR.is&x and y must have same first dimensionis"x and y can be no greater than 2-Di(R/RARRBtupdate_unitsR0tconvert_xunitstconvert_yunitstnpt
atleast_1dtshapeRtndimtnewaxis(R2txtytbxtby((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyt_xy_from_xy�s&$
cC sr|j�}d|kr@d|j�kr@|jj�|d<ntj||d|j|�}|j||�|S(NR#R/(R5tkeysR;tnextRtLine2DR/RU(R2R`RatkwRItseg((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyt	_makelines	c	C s�y|d}Wn tk
r0|jj�}nXtjtj|dd�tjf|dd�tjff�d|dtd|d�}|j	||�|S(NR#t	facecolortfilltclosed(
tKeyErrorR;RftmpatchestPolygonR[thstackR_RRW(R2R`RaRhRIRkRi((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyt	_makefills
5
cC s�g}t|�dkrNt|d�rNt|d�\}}}|d }n0t|�dkrotd��nd
\}}}i}x?td|||f�D]%\}}	|	dk	r�|	||<q�q�Wtj|d�}
t|�dkrtj|d	�}ntj|
j	d	d
t
�}|j||
�\}}
|jdkrP|j
}n|jdt�|d<|j}|j	d|
j	d}
}xgtt|
|��D]P}||dd�||
f|
dd�||f||�}|j|�q�W|S(Nii����is!third arg must be a format stringR!R"R#iitdtypeR.Rm(NNN(s	linestylesmarkerscolor(tlenRR'RRtzipR[R\tarangeR]tfloatRdR0RjtgetRRrtxrangetmaxtappend(R2ttupRIRJR!R"R#RhtktvRaR`RTtncxtncytjRi((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyt
_plot_argss4"
		=co s�|}x�t|�dkrdSt|�dkrWx|j||�D]}|VqDWdSt|d�rpd}nd}x#|j|| |�D]}|Vq�W||}q	dS(Niii(RtR�R(R2RHRIt	remainingRitisplit((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyRGBs			N(t__name__t
__module__t__doc__R3R4R8RR1RKRURWRdRjRrR�RG(((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyR-�s								$	
		$tAxescB s�
eZdZdZej�Zej�Zd�Ze	e
e	e	de	e	d�Zd�Zd�Z
d�Zd�Zd	�Zd
d�Zd�Zd
�Zd
d�Zd�Zd�Zd�Zed�Zdd�Zd�Zd�Zd�Zd�Zd�Ze	ddd�Z d�Z!d�Z"e#e"�Z$d�Z%d �Z&d!�Z'e	d"�Z(d#�Z)e	e	d$�Z*d%�Z+d&�Z,d'�Z-d(�Z.d)�Z/d*�Z0e	d+�Z1d,�Z2d-�Z3d.�Z"d/�Z4d0�Z5d1�Z6d2�Z7d3�Z8d4�Z9d5�Z:d6�Z;d7�Z<d8�Z=d9�Z>d:�Z?d;�Z@e
d<�ZAd=�ZBd>�ZCd?�ZDd@�ZEdA�ZFdB�ZGdC�ZHe
e
dD�ZIdE�ZJdF�ZKe	e	e	dG�ZLdH�ZMdI�ZNdJ�ZOdK�ZPdL�ZQdM�ZRdN�ZSdO�ZTdP�ZUdQ�ZVdR�ZWdS�ZXe
de	dT�ZYe	e
e
dU�ZZe[e	edV��Z\dW�Z]dX�Z^dY�Z_dZ�Z`d[�Zad\�Zbd]�Zcd^�Zdeejfe	d_dd`��Zgda�Zhde	db�Ziddc�Zjdd�Zkde�Zldf�Zmdg�Zndh�Zodi�Zpdj�Zqe	e	dk�Zrdl�Zse	e	e
edm�Ztdn�Zudodpjvewjx��eu_eejfdq��Zyedr�Zzeds�Z{dt�Z|du�Z}edv�Z~eejfe	edw��Zdx�Z�dy�Z�dz�Z�e	e	d{�Z�d|�Z�e	e	e
ed}�Z�d~�Z�ddpjvewjx��e�_eejfd���Z�ed��Z�ed��Z�d��Z�d��Z�ed��Z�eejfe	ed���Z�e	d��Z�e	d��Z�d��Z�d��Z�d��Z�d��Z�d��Z�d��Z�d��Z�d��Z�d��Z�d��Z�d��Z�d��Z�d��Z�d��Z�d��Z�d��Z�d��Z�d��Z�d��Z�d��Z�e	e	d��Z�d��Z�eejfe	d���Z�d��Z�eejfe	e	d���Z�d��Z�eejfe	e	d���Z�eejfe	ed���Z�eejfd���Z�eejfd�d�d�d���Z�eejfd�d�d�d���Z�eejfd�d�d���Z�eejfd�d�d���Z�eej�d�d�dd���Z�eejfd�d�dd���Z�eejfd���Z�eejfd�e	e
ed���Z�eejfd���Z�eejfd���Z�eejfd���Z�eejfd���Z�eejfe
e�j�e
d�d���Z�e	d��Z�e	d��Z�d��Z�d��Z�eejfd�e	d���Z�eejfd�e	d���Z�eejfd���Z�d�d�d�e	e	d��Z�e	e	e	e	d�ed�e	e	d��	Z�eejfe	e	d�e	e	d�eeeeed�e	d��
�Z�ed�e
d�e	e	ee	e	e	d��
Z�eejfd�d�d�e	e	e	e	e	e	e
e	d���Z�eejfe	d�e	d�d�e	e	e	e	e	e	e	d�e�j�e	ed���Z�eejfd���Z�d��Z�e�j�j�e�_d��Z�e�j�j�e�_d��Z�e�j�je�_d�e	e	e	e	d�d�d�e	d��	Z�e�j�je�_eejfd���Z�eejfd���Z�eejfd�e	ed���Z�eejfd�e	d���Z�eejfe	e	e	e	e	e	e	e	e	e	d�d�e	e	e	d���Z�d��Z�eejfd���Z�eejfd���Z�eejfd���Z�d��Z�e�j�j�e�_d��Z�e�j�j�e�_d��Z�e�j�j�je�_eejfd���Z�d��Z�d��Z�d��Z�d��Z�d��Z�eejfd�e	ee	ee	d�d�d�e	ee	e	ed���Z�eejfd�e	ee	e	e	d���Z�eejfd�d�d�e�j�e�j�d�e	d�e	d��	�Z�eejfd�d�d�e�j�e�j�d�e	d�e	d��	�Z�eejfd�d�d�e�j�e�j�d�e	d�e	d��	�Z�eejfd�d�d�e�j�e�j�d�e	e	e	d�e	d���Z�d�e	e	d�d��Z�d��Z�d��Z�e
d�Z�d�Z�d�Z�d�Z�e�j�j�e�_d�Z�e�j�j�e�_d�Ze�jje_d�Ze�jje_RS(sa
    The :class:`Axes` contains most of the figure elements:
    :class:`~matplotlib.axis.Axis`, :class:`~matplotlib.axis.Tick`,
    :class:`~matplotlib.lines.Line2D`, :class:`~matplotlib.text.Text`,
    :class:`~matplotlib.patches.Polygon`, etc., and sets the
    coordinate system.

    The :class:`Axes` instance supports callbacks through a callbacks
    attribute which is a :class:`~matplotlib.cbook.CallbackRegistry`
    instance.  The events you can connect to are 'xlim_changed' and
    'ylim_changed' and the callback will be called with func(*ax*)
    where *ax* is the :class:`Axes` instance.
    trectilinearcC sdt|jj�S(NsAxes(%g,%g;%gx%g)(ttuplet	_positiontbounds(R2((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyt__str__ksRc
K s�didjgtj�D]}t|�^q�d6tjj|�t|tj	�re||_
ntj	j|�|_
|j
j�|_
|j|�|jd�d|_|jd�||_||_|dk	r|jj||�|jdkrd|_nd|_n|dk	rZ|jj||�|jdkrNd|_nd|_n|j|�|j|�|j|
jdd��|j�|_|j�|dkr�td	}n||_||_ td
|_!d|_"td|_#i|_$|j%�d|_&d|_'|j(d�d|_)|j*t+�|j,d�|r_|j-|�n|	ru|j.|	�nt/|
�r�tj0||
�n|j1dk	r�|j1j2j3d|j4�|_5n|j6dk	r�|j6j2j3d|j4�|_7ndS(Ns5

        Build an :class:`Axes` instance in
        :class:`~matplotlib.figure.Figure` *fig* with
        *rect=[left, bottom, width, height]* in
        :class:`~matplotlib.figure.Figure` coordinates

        Optional keyword arguments:

          ================   =========================================
          Keyword            Description
          ================   =========================================
          *adjustable*       [ 'box' | 'datalim' | 'box-forced']
          *alpha*            float: the alpha transparency (can be None)
          *anchor*           [ 'C', 'SW', 'S', 'SE', 'E', 'NE', 'N',
                               'NW', 'W' ]
          *aspect*           [ 'auto' | 'equal' | aspect_ratio ]
          *autoscale_on*     [ *True* | *False* ] whether or not to
                             autoscale the *viewlim*
          *axis_bgcolor*     any matplotlib color, see
                             :func:`~matplotlib.pyplot.colors`
          *axisbelow*        draw the grids and ticks below the other
                             artists
          *cursor_props*     a (*float*, *color*) tuple
          *figure*           a :class:`~matplotlib.figure.Figure`
                             instance
          *frame_on*         a boolean - draw the axes frame
          *label*            the axes label
          *navigate*         [ *True* | *False* ]
          *navigate_mode*    [ 'PAN' | 'ZOOM' | None ] the navigation
                             toolbar button status
          *position*         [left, bottom, width, height] in
                             class:`~matplotlib.figure.Figure` coords
          *sharex*           an class:`~matplotlib.axes.Axes` instance
                             to share the x-axis with
          *sharey*           an class:`~matplotlib.axes.Axes` instance
                             to share the y-axis with
          *title*            the title string
          *visible*          [ *True* | *False* ] whether the axes is
                             visible
          *xlabel*           the xlabel
          *xlim*             (*xmin*, *xmax*) view limits
          *xscale*           [%(scale)s]
          *xticklabels*      sequence of strings
          *xticks*           sequence of floats
          *ylabel*           the ylabel strings
          *ylim*             (*ymin*, *ymax*) view limits
          *yscale*           [%(scale)s]
          *yticklabels*      sequence of strings
          *yticks*           sequence of floats
          ================   =========================================
        s | tscaletautotboxtCtdatalimtaxes_locatorsaxes.facecolorsaxes.axisbelows	axes.holdiR}sunits finalize(iR}(8tjointmscaletget_scale_namestreprtmartisttArtistR3t
isinstancetmtransformstBboxR�tfrom_boundstfrozent_originalPositiontset_axest
set_aspectt_adjustablet
set_anchort_sharext_shareyRt_shared_x_axest_shared_y_axest	set_labelt
set_figuretset_axes_locatorRxt_gen_axes_spinestspinest
_init_axisRt_axisbgt_frameont
_axisbelowt_rasterization_zordert_holdt
_connectedtclat	fmt_xdatat	fmt_ydatatset_cursor_propst_cachedRenderertset_navigateRtset_navigate_modet
set_xscalet
set_yscaleRttsetpRAt	callbackstconnecttrelimt_xcidRBt_ycid(R2tfigtrecttaxisbgtframeontsharextshareytlabeltxscaletyscaleRIR`((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyR3nsl<7

	
		



		
	
	
		
	

cC s\||_xLddddddgD]2}t||�}x|D]}|j|_q>Wq"WdS(Ntlinestcollectionsttablestpatchesttextstimages(R6ROtremovet_remove_method(R2R7tcontainer_namet	containertartist((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyR8�s	
cO s|jS(sc
        get the axes bounding box in display space; *args* and
        *kwargs* are empty
        (tbbox(R2RHRI((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pytget_window_extent�scC s�tj|�|_|jdj|j�|jdj|j�tj|�|_|jdj|j�|jdj|j�|j�dS(sAmove this out of __init__ because non-separable axes don't use ittbottomttoptlefttrightN(tmaxistXAxisRAR�t
register_axistYAxisRBt_update_transScale(R2((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyR�scC sxtjj||�tj|j|j�|_tjj	�|_
tjj	�|_tjtj
��|_|j�dS(s|
        Set the class:`~matplotlib.axes.Axes` figure

        accepts a class:`~matplotlib.figure.Figure` instance
        N(R�R�R�R�tTransformedBboxR�ttransFigureR�R�tunittdataLimtviewLimtTransformWrappertIdentityTransformt
transScalet_set_lim_and_transforms(R2R�((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyR�scC s�tj|j�|_tjtj��|_tjtj|j	|j��|_
|j|j
|j|_tj|j|j�|_
tj|j|j�|_dS(sB
        set the *dataLim* and *viewLim*
        :class:`~matplotlib.transforms.Bbox` attributes and the
        *transScale*, *transData*, *transLimits* and *transAxes*
        transformations.

        .. note::

            This method is primarily used by rectilinear projections
            of the :class:`~matplotlib.axes.Axes` class, and is meant
            to be overridden by new kinds of projection axes that need
            different transformations and limits. (See
            :class:`~matplotlib.projections.polar.PolarAxes` for an
            example.

        N(R�tBboxTransformToR�t	transAxesR�R�R�tBboxTransformFromR�R�ttransLimitst	transDatatblended_transform_factoryt_xaxis_transformt_yaxis_transform(R2((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyR�stgridcC s]|dkr|jS|dkr0|jdj�S|dkrM|jdj�Std��dS(s�
        Get the transformation used for drawing x-axis labels, ticks
        and gridlines.  The x-direction is in data coordinates and the
        y-direction is in axis coordinates.

        .. note::

            This transformation is primarily used by the
            :class:`~matplotlib.axis.Axis` class, and is meant to be
            overridden by new kinds of projections that may need to
            place axis elements in different locations.

        R�ttick1R�ttick2R�sunknown value for whichN(R�R�tget_spine_transformR(R2twhich((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pytget_xaxis_transformGscC s:|jdd�tjdd|d|jj�ddfS(s�
        Get the transformation used for drawing x-axis labels, which
        will add the given amount of padding (in points) between the
        axes and the label.  The x-direction is in data coordinates
        and the y-direction is in axis coordinates.  Returns a
        3-tuple of the form::

          (transform, valign, halign)

        where *valign* and *halign* are requested alignments for the
        text.

        .. note::

            This transformation is primarily used by the
            :class:`~matplotlib.axis.Axis` class, and is meant to be
            overridden by new kinds of projections that may need to
            place axis elements in different locations.

        R�R�ii����gR@R�tcenter(R�R�tScaledTranslationtfiguretdpi_scale_trans(R2t
pad_points((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pytget_xaxis_text1_transform`s
cC s6|jdd�tjd|d|jj�ddfS(s�
        Get the transformation used for drawing the secondary x-axis
        labels, which will add the given amount of padding (in points)
        between the axes and the label.  The x-direction is in data
        coordinates and the y-direction is in axis coordinates.
        Returns a 3-tuple of the form::

          (transform, valign, halign)

        where *valign* and *halign* are requested alignments for the
        text.

        .. note::

            This transformation is primarily used by the
            :class:`~matplotlib.axis.Axis` class, and is meant to be
            overridden by new kinds of projections that may need to
            place axis elements in different locations.

        R�R�igR@R�R�(R�R�R�R�R�(R2R�((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pytget_xaxis_text2_transformzs
cC s]|dkr|jS|dkr0|jdj�S|dkrM|jdj�Std��dS(s�
        Get the transformation used for drawing y-axis labels, ticks
        and gridlines.  The x-direction is in axis coordinates and the
        y-direction is in data coordinates.

        .. note::

            This transformation is primarily used by the
            :class:`~matplotlib.axis.Axis` class, and is meant to be
            overridden by new kinds of projections that may need to
            place axis elements in different locations.

        R�R�R�R�R�sunknown value for whichN(R�R�R�R(R2R�((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pytget_yaxis_transform�scC s:|jdd�tjd|dd|jj�ddfS(s�
        Get the transformation used for drawing y-axis labels, which
        will add the given amount of padding (in points) between the
        axes and the label.  The x-direction is in axis coordinates
        and the y-direction is in data coordinates.  Returns a 3-tuple
        of the form::

          (transform, valign, halign)

        where *valign* and *halign* are requested alignments for the
        text.

        .. note::

            This transformation is primarily used by the
            :class:`~matplotlib.axis.Axis` class, and is meant to be
            overridden by new kinds of projections that may need to
            place axis elements in different locations.

        R�R�i����gR@iR�R�(RR�R�R�R�(R2R�((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pytget_yaxis_text1_transform�s
cC s6|jdd�tj|dd|jj�ddfS(s�
        Get the transformation used for drawing the secondary y-axis
        labels, which will add the given amount of padding (in points)
        between the axes and the label.  The x-direction is in axis
        coordinates and the y-direction is in data coordinates.
        Returns a 3-tuple of the form::

          (transform, valign, halign)

        where *valign* and *halign* are requested alignments for the
        text.

        .. note::

            This transformation is primarily used by the
            :class:`~matplotlib.axis.Axis` class, and is meant to be
            overridden by new kinds of projections that may need to
            place axis elements in different locations.

        R�R�gR@iR�R�(RR�R�R�R�(R2R�((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pytget_yaxis_text2_transform�s
cC s}|jjtj|jj�|jj���t|d�ryx9|jD]+}y|j	j
�WqGtk
rqqGXqGWndS(NR�(R�tsetR�R�RAt
get_transformRBRMR�t_transformed_patht
invalidatetAttributeError(R2RP((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyR��s	
cC s$|r|jj�S|jj�SdS(s1Return the a copy of the axes rectangle as a BboxN(R�R�R�(R2toriginal((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pytget_position�s
tbothcC sit|tj�s'tjj|�}n|dkrF|jj|�n|dkre|jj|�ndS(s�
        Set the axes position with::

          pos = [left, bottom, width, height]

        in relative 0,1 coords, or *pos* can be a
        :class:`~matplotlib.transforms.Bbox`

        There are two position variables: one which is ultimately
        used, but which may be modified by :meth:`apply_aspect`, and a
        second which is the starting point for :meth:`apply_aspect`.


        Optional keyword arguments:
          *which*

            ==========   ====================
            value        description
            ==========   ====================
            'active'     to change the first
            'original'   to change the second
            'both'       to change both
            ==========   ====================

        R
tactiveRN(R
R(R
soriginal(R�R�tBboxBaseR�R�R�RR�(R2tposR�((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pytset_position�scC s)|jdt�}|j|dd�dS(s.Make the original position the active positionRR�RN(R	RR(R2R
((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pytreset_positionscC s
||_dS(s�
        set axes_locator

        ACCEPT : a callable object which takes an axes instance and renderer and
                 returns a bbox.
        N(t
_axes_locator(R2tlocator((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyR�scC s|jS(s%
        return axes_locator
        (R(R2((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pytget_axes_locator#scC s@|j|j�|j�s/|j|j�n|j|�dS(s3set the boilerplate props for artists added to axesN(R�R�tis_transform_sett
set_transformR�R�(R2ta((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyt_set_artist_props)scC stjddd�S(s]
        Returns the patch used to draw the background of the axes.  It
        is also used as the clipping path for any data elements on the
        axes.

        In the standard axes, this is a rectangle, but in other
        projections it may not be.

        .. note::

            Intended to be overridden by new projection types.

        gg�?(gg(Rot	Rectangle(R2((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyt_gen_axes_patch1sgtinchescC s\itjj|d�d6tjj|d�d6tjj|d�d6tjj|d�d6S(si
        Returns a dict whose keys are spine names and values are
        Line2D or Patch instances. Each element is used to draw a
        spine of the axes.

        In the standard axes, this is a single line segment, but in
        other projections it may not be.

        .. note::

            Intended to be overridden by new projection types.

        R�R�R�R�(tmspinestSpinetlinear_spine(R2t	locationstoffsetRD((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyR�As
c
C s�|jj�|jj�x'|jj�D]\}}|j�q*Wt|_tj�|_	|j
dk	rm|j
jj|j_|j
jj
|j_
|j
j�\}}|j||dtdd�|j
jj�}|j
jj�}|j
jj�}|j
jj�}|jj|j
jj��|jj|�|jj|�|jj|�|jj|�n|jjd�|jdk	r�|jjj|j_|jjj
|j_
|jj�\}	}
|j|	|
dtdd�|jjj�}|jjj�}|jjj�}|jjj�}|jj|jjj��|jj|�|jj|�|jj|�|jj|�n|jjd�t|_t|_d|_ d|_!t|_"|j#�t$|�|_%t$|d�|_&t'd|_(g|_)g|_*g|_+g|_,g|_-g|_.d|_/d|_0g|_1g|_2|j3|j(�t4j5dt'd�}t6j7d	d|j8j9�|_:t;j<dd
ddddd|dddd�|_=|j=j>|j?|j:�|j=j@d�|jA|j=�|jB�|_C|_D|jCjE|j8�|jCjF|jG�|jCjHd�|jCjId�|jCj>|j?�t|_J|jjK|jC�|jjK|jC�|jLjM�|jNjM�dS(sClear the current axes.temitR�tlineariRls	axes.gridtsizesaxes.titlesizegg@gR@R`g�?Rag�?ttextRtfontpropertiestverticalalignmenttbaselinethorizontalalignmentR�RNgr�qDZ?(ORAR�RBR�t	iteritemsRtignore_existing_data_limitstcbooktCallbackRegistryR�R�Rtmajortminortget_xlimtset_xlimR
tget_major_formattertget_minor_formattertget_major_locatortget_minor_locatort	set_scalet	get_scaletset_major_formattertset_minor_formattertset_major_locatortset_minor_locatorR�tget_ylimtset_ylimt
_autoscaleXont
_autoscaleYont_xmargint_ymargint_tightR�R-t
_get_linest_get_patches_for_fillRt_gridOnR�R�R�R�tartistsR�t_current_imagetlegend_R�t
containersR�tfont_managertFontPropertiesR�R�R�R�ttitleOffsetTranstmtexttTextttitleRR�tset_clip_boxRRtpatcht	axesPatchR�t
set_facecolorR�t
set_edgecolort
set_linewidthtaxisont
set_clip_pathR�tcleanR�(R2REtspinetx0tx1tmajftminftmajltminlty0ty1tprops((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyR�Vs�

						

												
cC std��dS(Ns.Axes.frame was removed in favor of Axes.spines(R(R2((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyt	get_frame�scC s|j�dS(sclear the axesN(R�(R2((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pytclear�scC s$|jj|�|jj|�dS(s�
        Set the color cycle for any future plot commands on this Axes.

        *clist* is a list of mpl color specifiers.
        N(R@R1RA(R2R+((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyR1�scC s|jS(s"return the HOLD status of the axes(R�(R2((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pytishold�scC s)|dkr|j|_n	||_dS(s/
        Call signature::

          hold(b=None)

        Set the hold state.  If *hold* is *None* (default), toggle the
        *hold* state.  Else set the *hold* state to boolean value *b*.

        Examples::

          # toggle hold
          hold()

          # turn hold on
          hold(True)

          # turn hold off
          hold(False)


        When hold is *True*, subsequent plot commands will be added to
        the current axes.  When hold is *False*, the current axes and
        figure will be cleared on the next plot command

        N(RR�(R2tb((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pythold�scC s|jS(N(t_aspect(R2((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyt
get_aspectscC s{|dkrd|_n'|dkr0d|_nt|�|_|dk	r[|j|�n|dk	rw|j|�ndS(s�
        *aspect*

          ========   ================================================
          value      description
          ========   ================================================
          'auto'     automatic; fill position rectangle with data
          'normal'   same as 'auto'; deprecated
          'equal'    same scaling from data to plot units for x and y
           num       a circle will be stretched such that the height
                     is num times the width. aspect=1 is the same as
                     aspect='equal'.
          ========   ================================================

        *adjustable*

          ============   =====================================
          value          description
          ============   =====================================
          'box'          change physical size of axes
          'datalim'      change xlim or ylim
          'box-forced'   same as 'box', but axes can be shared
          ============   =====================================

        'box' does not allow axes sharing, as this can cause
        unintended side effect. For cases when sharing axes is
        fine, use 'box-forced'.

        *anchor*

          =====   =====================
          value   description
          =====   =====================
          'C'     centered
          'SW'    lower left corner
          'S'     middle of bottom edge
          'SE'    lower right corner
          etc.
          =====   =====================

        tnormalR�tequalN(Rgsauto(ReRwRtset_adjustableR�(R2taspectt
adjustabletanchor((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyR�s*cC s|jS(N(R�(R2((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pytget_adjustable9scC sd|dkrT||jks*||jkrH|dkrHtd��qHn||_ntd��dS(s>
        ACCEPTS: [ 'box' | 'datalim' | 'box-forced']
        R�R�s
box-forceds,adjustable must be "datalim" for shared axess$argument must be "box", or "datalim"N(sboxsdatalims
box-forced(R�R�RR�(R2Rk((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyRi<scC s|jS(N(t_anchor(R2((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyt
get_anchorIscC s_|tjjj�ks*t|�dkr6||_n%tddjtjjj����dS(su
        *anchor*

          =====  ============
          value  description
          =====  ============
          'C'    Center
          'SW'   bottom left
          'S'    bottom
          'SE'   bottom right
          'E'    right
          'NE'   top right
          'N'    top
          'NW'   top left
          'W'    left
          =====  ============

        isargument must be among %ss, N(R�R�tcoefsReRtRnRR�(R2Rl((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyR�Ls*cC sd|j�\}}|j�\}}ttj||�d�}ttj||�d�}||S(s�
        Returns the aspect ratio of the raw data.

        This method is intended to be overridden by new projection
        types.
        g���KH�9(t
get_xboundt
get_yboundRztmathtfabs(R2txmintxmaxtymintymaxtxsizetysize((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pytget_data_ratioes
cC s�|j�\}}|j�\}}ttjtj|�tj|��d�}ttjtj|�tj|��d�}||S(s
        Returns the aspect ratio of the raw data in log scale.
        Will be used when both axis scales are in log.
        g���KH�9(RqRrRzRsRttlog10(R2RuRvRwRxRyRz((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pytget_data_ratio_logus
..c0C s�|d	kr!|jdt�}n|j�}|jdkr�|j�|j�}}|dkrv|dkrvd}q�|dkr�|dkr�d}q�|dkr�|dks�|dkr�|dkr�|dk	r�tjd||f�d}q�q�nd}|dkr"|j	|dd�d	S|d
kr7d}n|}||j
ks[||jkr�|jdkr�d
|_tjd�q�n|j
�j�\}}||}	|jdkr-|dkr�||j�}
n||j�}
|j�}|j|
||	�}|j	|j|j�|�d�d	S|j	|dd�|j�\}
}|j�\}}|dkr�tj|
�tj|�}
}tj|�tj|�}}nttj||
�d�}ttj||�d�}|j\}}}}|	||}
|
|}|||d}t|�dkr>d	S|dkr�|j}tj|j�tj|j�}tj|j �tj|j!�}d|}d|}n#|j}d|j"}d|j#}||}||}||} ||}!|!|}"| |}#d}$d}%||jko4||j
k}&||j
koR||jk}'|&rr|'rrtjd�d	S|&r�t$}(nc||$kr�||%kr�|#dkr�|dkp�|"dko�|dk})n|dk})|'p�|)}(|(rTd||}*|*| d}+|*| d},|dkr>|j%d|+d|,f�q�|j%|+|,f�ngd|
|}-|-|!d}.|-|!d}/|dkr�|j&d|.d|/f�n|j&|.|/f�d	S(sp
        Use :meth:`_aspect` and :meth:`_adjustable` to modify the
        axes box or the view limits.
        RR=R tlogR�s:aspect is not supported for Axes with xscale=%s, yscale=%sR�RNRhiR�R�s7shared axes: "adjustable" is being changed to "datalim"s
box-forcedg���KH�9g�?g{�G�zt?g�������?is9adjustable='datalim' cannot work with shared x and y axesg�?g@g$@(sboxs
box-forced('RR	RRfREt
get_xscalet
get_yscaleR(R)RR�R�R�t
get_figuretget_size_inchesR}R{R�tshrunk_to_aspecttanchoredRoRqRrRsR|RzRtR�tabsR�RXRWR^R]twidththeightR
t
set_yboundt
set_xbound(0R2tpositionRjR�R�taspect_scale_modetAtfigWtfigHt
fig_aspectt
box_aspecttpbtpb1RuRvRwRxRyRztlRctwtht
data_ratiot
y_expandertdLtdL_widtht	dL_heighttxrtyrtxmargtymargtYsizetXsizetXmargtYmargtxmtymtchangextchangeytadjust_ytadjytycR]R^txcRWRX((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pytapply_aspect�s�				

""
	""

	








	c
O s�t|�dkrXt|�dkrX|j�\}}|j�\}}||||fSt|�dkrt|d�r|dj�}|dkr�|j�n*|dkr�|j�n|dkr�|jt�|j	d	�|j
dt�|dkr|j	ddd�q�|dkrI|j	ddd
dd�|jt�q�|dkru|j
dt�|jt�q�|d
kr�|j
dt�|jt�|j	ddd
dd�q�ntd|��|j�\}}|j�\}}||||fS|j
dt�}y|dWn�tk
r|j
dd�}|j
dd�}t}	|dkrz|dkrzd}	n|j||d|d	|	�\}}|j
dd�}|j
dd�}t}	|dkr�|dkr�d}	n|j||d|d	|	�\}}||||fSX|d}t|�dkrItd��n|j|d|dgd|d	t�|j|d|dgd|d	t�|S(s
        Convenience method for manipulating the x and y view limits
        and the aspect ratio of the plot. For details, see
        :func:`~matplotlib.pyplot.axis`.

        *kwargs* are passed on to :meth:`set_xlim` and
        :meth:`set_ylim`
        iiR	R
RhttighttscaledRgR�timageRkR�R�RlR�s-Unrecognized string %s to axis; try on or offRRuRvRwRxis$v must contain [xmin xmax ymin ymax]ii(sequalstightR�snormalsautoR�N(RtR-R9Rtlowertset_axis_ontset_axis_offtset_autoscale_onRR�tautoscale_viewR
RRxt
IndexErrorRR.R:(
R2R~RIRuRvRwRxRRR�((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pytaxissl	$"






	$	$
''cC std��dS(s[
        Return a list of artists the axes contains.

        .. deprecated:: 0.98
        sUse get_children insteadN(R*(R2((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pytget_child_artists]scC stjdt�|jS(sReturn the axes Rectangle framesuse ax.patch instead(R(R)R*RN(R2((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyR`escC s|jS(sBReturn the legend.Legend instance, or None if no legend is defined(RE(R2((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyt
get_legendjscC stjd|j�S(s2return a list of Axes images contained by the Axest	AxesImage(R)tsilent_listR�(R2((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyt
get_imagesnscC stjd|j�S(s,Return a list of lines contained by the AxesRg(R)R�R�(R2((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyt	get_linesrscC s|jS(sReturn the XAxis instance(RA(R2((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyt	get_xaxisvscC stjd|jj��S(s2Get the x grid lines as a list of Line2D instancessLine2D xgridline(R)R�RAt
get_gridlines(R2((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pytget_xgridlineszscC stjd|jj��S(s1Get the xtick lines as a list of Line2D instancessText xtickline(R)R�RAt
get_ticklines(R2((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pytget_xticklinesscC s|jS(sReturn the YAxis instance(RB(R2((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyt	get_yaxis�scC stjd|jj��S(s2Get the y grid lines as a list of Line2D instancessLine2D ygridline(R)R�RBR�(R2((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pytget_ygridlines�scC stjd|jj��S(s1Get the ytick lines as a list of Line2D instancessLine2D ytickline(R)R�RBR�(R2((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pytget_yticklines�scC swt|tjj�r=|jd|jkrjtd��qjn-||jkrj||jkrjtd��n||_dS(sZ
        helper for :func:`~matplotlib.pyplot.sci`;
        do not use elsewhere.
        is"ContourSet must be in current AxessAArgument must be an image, collection, or ContourSet in this AxesN(R�t
matplotlibtcontourt
ContourSetR�RR�RD(R2tim((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyt_sci�scC s|jS(sZ
        Helper for :func:`~matplotlib.pyplot.gci`;
        do not use elsewhere.
        (RD(R2((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyt_gci�scC s:t|j�t|j�t|j�t|j�dkS(s�
        Return *True* if any artists have been added to axes.

        This should not be used to determine whether the *dataLim*
        need to be updated, and may not actually be useful for
        anything.
        i(RtR�R�R�R�(R2((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pythas_data�s&c sP|j���jj|��j|�|j�j��fd�|_|S(sf
        Add any :class:`~matplotlib.artist.Artist` to the axes.

        Returns the artist.
        c s�jj|�S(N(RCR�(R�(R2(s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyt<lambda>�s(R�RCR{RRTRNR�(R2R((R2s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyt
add_artist�s

c s�|j�}|s/|jdt�j��n�jj|��j|�|j�dkrq|j�j	�n|r�|j
r�t|j
�r��j|j�j
��q�n�fd�|_|S(s�
        Add a :class:`~matplotlib.collections.Collection` instance
        to the axes.

        Returns the collection.
        s
_collection%dc s�jj|�S(N(R�R�(R�(R2(s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyR��sN(t	get_labelR�RtR�R{Rt
get_clip_pathRRTRNt_pathstupdate_datalimtget_datalimR�R�(R2t
collectiontautolimR�((R2s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pytadd_collection�s
c s��j|�|j�dkr2|j�j�n�j|�|j�sh|jdt�j	��n�j	j
|��fd�|_|S(sv
        Add a :class:`~matplotlib.lines.Line2D` to the list of plot
        lines

        Returns the line.
        s_line%dc s�jj|�S(N(R�R�(R�(R2(s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyR��sN(RR�RRTRNt_update_line_limitsR�R�RtR�R{R�(R2RP((R2s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pytadd_line�s

cC s|j�}|jjdkr"dS|j�}||jkrF|}nyt|j|j��r�||j}|jjr�|j�}|j	�\}}|j
|�}q�|j|�}n|}|jjdkr|j|j�\}	}
|jj
||jd|	d|
�t|_ndS(sDFigures out the data limit of the given line, updating self.dataLim.iNtupdatextupdatey(tget_pathtverticesR!RR�tanytcontains_branch_seperatelyt	is_affinet_get_transformed_pathtget_transformed_path_and_affinettransform_path_affinettransform_pathR�tupdate_from_pathR(R
(R2RPtpatht
line_transt	data_patht
trans_to_datatline_trans_pathtna_patht_R�R�((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyR��s,	
	c se�j|�|j�dkr2|j�j�n�j|��jj|��fd�|_|S(s
        Add a :class:`~matplotlib.patches.Patch` *p* to the list of
        axes patches; the clipbox will be set to the Axes clipping
        box.  If the transform is not set, it will be set to
        :attr:`transData`.

        Returns the patch.
        c s�jj|�S(N(R�R�(R�(R2(s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyR�$sN(	RR�RRTRNt_update_patch_limitsR�R{R�(R2tp((R2s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyt	add_patchs


cC s�t|tj�r0|j�s,|j�r0dS|j�j}|jdkr�|j�j	|�}|j
�|jkr�|j
�|j}|j	|�}n|j�j
|j�\}}|j|d|d|�ndS(s$update the data limits for patch *p*NiR�R�(R�RoRt	get_widtht
get_heightR�R�R!tget_patch_transformt	transformtget_data_transformR�RR�R�(R2RNR�txyst
patch_to_dataR�R�((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyR�'s	
c sC�j|��jj|�|j�j��fd�|_|S(s�
        Add a :class:`~matplotlib.tables.Table` instance to the
        list of axes tables

        Returns the table.
        c s�jj|�S(N(R�R�(R�(R2(s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyR�Js(RR�R{RTRNR�(R2ttab((R2s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyt	add_table@s

c sY|j�}|s/|jdt�j��n�jj|�|j�fd��|S(s
        Add a :class:`~matplotlib.container.Container` instance
        to the axes.

        Returns the collection.
        s_container%dc s�jj|�S(N(RFR�(R�(R2(s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyR�Xs(R�R�RtRFR{tset_remove_method(R2R�R�((R2s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyt
add_containerMscC s_|jjt�t|_x|jD]}|j|�q#Wx|jD]}|j|�qDWdS(s�
        Recompute the data limits based on current artists.

        At present, :class:`~matplotlib.collections.Collection`
        instances are not supported.
        N(R�tignoreRR(R�R�R�R�(R2RPR�((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyR�\s		cC smt|�rt|�rdStj|�s>tj|�}n|jj||jd|d|�t	|_dS(s@Update the data lim bbox with seq of xy tups or equiv. 2-D arrayNR�R�(
titerableRtRt
isMaskedArrayR[tasarrayR�tupdate_from_data_xyR(R
(R2R�R�R�((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyR�ms
cC sCt|�rt|�rdS|jj|||j�t|_dS(s,Update the data lim bbox with seq of xy tupsN(R�RtR�tupdate_from_dataR(R
(R2R`Ra((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pytupdate_datalim_numerix{scC s)|jjtjj|j|g��dS(so
        Update the datalim to include the given
        :class:`~matplotlib.transforms.Bbox` *bounds*
        N(R�RR�R�tunion(R2R�((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pytupdate_datalim_bounds�scC s�|jdks|jdkr"dS|dk	rS|jj�sS|jj|�qSn|dk	r�|jj�s�|jj|�q�n|dk	r�|jd|jj�}|jdkr�|jd|�}n||jjkr|jj|�|dk	r|jj|�qn|jd|jj�}|jdkrL|jd|�}n||jjkr�|jj|�|dk	r�|jj|�q�q�ndS(sALook for unit *kwargs* and update the axis instances as necessaryNR<R=R>R?R@(	RARRBt
have_unitsRXRCRDRERF(R2txdatatydataRIR<R?((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyt_process_unit_info�s.cC s|jj|�dS(sd
        Return *True* if the given *mouseevent* (in display coords)
        is in the Axes
        i(RNtcontains(R2t
mouseevent((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pytin_axes�scC s|jo|jS(sS
        Get whether autoscaling is applied for both axes on plot commands
        (R;R<(R2((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pytget_autoscale_on�scC s|jS(sT
        Get whether autoscaling for the x-axis is applied on plot commands
        (R;(R2((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pytget_autoscalex_on�scC s|jS(sT
        Get whether autoscaling for the y-axis is applied on plot commands
        (R<(R2((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pytget_autoscaley_on�scC s||_||_dS(sl
        Set whether autoscaling is applied on plot commands

        accepts: [ *True* | *False* ]
        N(R;R<(R2Rc((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyR��s	cC s
||_dS(s{
        Set whether autoscaling for the x-axis is applied on plot commands

        accepts: [ *True* | *False* ]
        N(R;(R2Rc((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pytset_autoscalex_on�scC s
||_dS(s{
        Set whether autoscaling for the y-axis is applied on plot commands

        accepts: [ *True* | *False* ]
        N(R<(R2Rc((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pytset_autoscaley_on�scC s4|dks|dkr'td��n||_dS(s�
        Set padding of X data limits prior to autoscaling.

        *m* times the data interval will be added to each
        end of that interval before it is used in autoscaling.

        accepts: float in range 0 to 1
        iismargin must be in range 0 to 1N(RR=(R2tm((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pytset_xmargin�s	cC s4|dks|dkr'td��n||_dS(s�
        Set padding of Y data limits prior to autoscaling.

        *m* times the data interval will be added to each
        end of that interval before it is used in autoscaling.

        accepts: float in range 0 to 1
        iismargin must be in range 0 to 1N(RR>(R2R
((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pytset_ymargin�s	cO s|r|r|j|jfS|jdt�}|jdd
�}|jdd
�}t|�dkrw|d}}n-t|�dkr�|\}}ntd��|d
k	r�|j|�n|d
k	r�|j|�n|d
k	}|d
k	}|j	d|d|d	|�d
S(s*
        Set or retrieve autoscaling margins.

        signatures::

            margins()

        returns xmargin, ymargin

        ::

            margins(margin)

            margins(xmargin, ymargin)

            margins(x=xmargin, y=ymargin)

            margins(..., tight=False)

        All three forms above set the xmargin and ymargin parameters.
        All keyword parameters are optional.  A single argument
        specifies both xmargin and ymargin.  The *tight* parameter
        is passed to :meth:`autoscale_view`, which is executed after
        a margin is changed; the default here is *True*, on the
        assumption that when margins are specified, no additional
        padding to match tick marks is usually desired.  Setting
        *tight* to *None* will preserve the previous setting.

        Specifying any margin changes only the autoscaling; for example,
        if *xmargin* is not None, then *xmargin* times the X data
        interval will be added to each end of that interval before
        it is used in autoscaling.

        R�R`Raiiis%more than two arguments were suppliedtscalextscaleyN(
R=R>RCRRRtRRRR�(R2RHRhR�tmxtmyRR((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pytmarginss"#cC s
||_dS(s�
        Set zorder value below which artists will be rasterized.  Set
        to `None` to disable rasterizing of artists below a particular
        zorder.
        N(R�(R2tz((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pytset_rasterization_zorder=scC s|jS(sI
        Get zorder value below which artists will be rasterized
        (R�(R2((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pytget_rasterization_zorderEscC s�|dkrt}t}nZt}t}|dkrNt|�|_|j}n|d	krut|�|_|j}n|jd|d|d|�dS(
s�
        Autoscale the axis view to the data (toggle).

        Convenience method for simple axis view autoscaling.
        It turns autoscaling on or off, and then,
        if autoscaling for either axis is on, it performs
        the autoscaling on the specified axis or axes.

        *enable*: [True | False | None]
            True (default) turns autoscaling on, False turns it off.
            None leaves the autoscaling state unchanged.

        *axis*: ['x' | 'y' | 'both']
            which axis to operate on; default is 'both'

        *tight*: [True | False | None]
            If True, set view limits to data limits;
            if False, let the locator and margins expand the view limits;
            if None, use tight scaling if the only artist is an image,
            otherwise treat *tight* as False.
            The *tight* setting is retained for future autoscaling
            until it is explicitly changed.


        Returns None.
        R`R
RaR�RRN(R`sboth(Rasboth(RRR
tboolR;R<R�(R2tenableR�R�RR((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyt	autoscaleKs	cC s�|dkrW|jpQt|j�dkoQt|j�dkoQt|j�dk}nt|�}|_|r�|jr�|jj	|�}g|D]}|j
^q�}tjj
|�}|j\}	}
|jj�}y|j|	|
�\}	}
Wn5tk
r*tj|	|
dtdd�\}	}
nX|jdkrb|
|	|j}|	|8}	|
|7}
n|s�|j|	|
�\}	}
n|j|	|
�n|r�|jr�|jj	|�}
g|
D]}|j
^q�}tjj
|�}|j\}}|jj�}y|j||�\}}Wn5tk
rVtj||dtdd�\}}nX|jdkr�|||j}||8}||7}n|s�|j||�\}}n|j||�ndS(s

        Autoscale the view limits using the data limits. You can
        selectively autoscale only a single axis, eg, the xaxis by
        setting *scaley* to *False*.  The autoscaling preserves any
        axis direction reversal that has already been done.

        The data limits are not updated automatically when artist
        data are changed after the artist has been added to an
        Axes instance.  In that case, use
        :meth:`matplotlib.axes.Axes.relim`
        prior to calling autoscale_view.
        it
increasingtexpanderg�������?N(RR?RtR�R�R�RR;R�tget_siblingsR�R�RR�t	intervalxRAR1tnonsingularRR
R=tview_limitsR�R<R�t	intervalyRBR>R�(R2R�RRR?txsharedtaxtdltbbRWRXtxlocatortdeltatysharedR]R^tylocator((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyR�usR






cC s8|dkr|j}n|dkr3td��n|j�sCdS|jd�|j�}|r�|||�}|j|�n
|j�g}|j|j�|j|j	�|j|j
�|j|j�|j|j�|j
rY|rY|jr|jjd�|jjd�n |jjd�|jjd�|j|j|jg�n|sr|j|j�n|j|j�|jdk	r�|j|j�n|j
r�|jr�|j|jj��ng|D]!}|j�s�|j|f^q�}t|j�dks|j�rS|jg|jD]}|j|f^q.�t}	nt}	|j dt!d��|j"}
|
dk	r	t|�dkr	|dd|
kr	|j#�g|D]}|d|
kr�|^q�}g|D]}|d|
kr�|^q�}ng}|j
r4|jr4|j$j%|�n|	r�g|jD]!}|j�rD|j|f^qD}
|
j dd	��|j&�}g|
D]$\}}|j'|�ddf^q�}|j(j)\}}}}|t*|�dt*|�d}|t*|�dt*|�d}t+j,|||�}t|_-|j(j.\}}}}|j/�}|j0|j(�|j1t2j3|j$j4�|j$j5���|j6|t*|�t*|�|�|j7�n|r�x!|D]\}}|j%|�q�W|j8�nx!|D]\}}|j%|�qW|j9d�||_dS(
s*Draw everything (plot lines, axes, labels)sNo renderer definedNR/g�?g@iRQicS s|dS(Ni((R`((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyR�s(:RR�tRuntimeErrortget_visiblet
open_groupRR�textendR�R�R�R�RCRSR�RAt
set_zorderRBR{RLR�RER�R�t
itervaluestget_animatedtzorderRtR�toption_image_nocompositeR
RtsortRR�tstart_rasterizingRNtdrawtget_image_magnificationt
make_imageR�textentstroundtmimagetfrom_imagestis_grayscaleR�tnew_gctset_clip_rectangleRTR�tTransformedPathR�Rt
draw_imagetrestoretstop_rasterizingtclose_group(R2trenderertinframeRR
RCRtdsuR�t
_do_compositetrasterization_zorderR�tdsu_rasterizedt
zorder_imagestmagRtimsRctrttR�R�R�R�tgcR1((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyR5�s�

	
!!,		&
),!1""			"


cC s|j|j�dS(s�
        This method can only be used after an initial draw which
        caches the renderer.  It is used to efficiently update Axes
        data (axis ticks, labels, etc are not updated)
        N(R5R�(R2R((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pytdraw_artist+scC s|j|jdt�dS(s�
        This method can only be used after an initial draw which
        caches the renderer.  It is used to efficiently update Axes
        data (axis ticks, labels, etc are not updated)
        REN(R5R�R(R2((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pytredraw_in_frame4scC s|jS(N(R�(R2((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pytget_renderer_cache=scC s�|jdkrtd��ng|jj�D]}|j|f^q.}|jdd��|j}|j�x!|D]\}}|j|�qvWdS(NsYou must first call ax.draw()RQcS s|dS(Ni((R`((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyR�Es(	t
_lastRendererRR*tanimatedReR1R3tblitR5(R2RRFRDttmp((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyt__draw_animate@s+	
cC s|jS(s?
        Get whether the axes rectangle patch is drawn
        (R�(R2((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pytget_frame_onMscC s
||_dS(sf
        Set whether the axes rectangle patch is drawn

        ACCEPTS: [ *True* | *False* ]
        N(R�(R2Rc((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pytset_frame_onSscC s|jS(s7
        Get whether axis below is true or not
        (R�(R2((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyt
get_axisbelow[scC s
||_dS(s�
        Set whether the axis ticks and gridlines are above or below most artists

        ACCEPTS: [ *True* | *False* ]
        N(R�(R2Rc((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyt
set_axisbelowasR+cK s�t|�rt}nt|�}|dks9|dkrU|jj|d||�n|dksm|dkr�|jj|d||�ndS(s�
        Turn the axes grids on or off.

        Call signature::

           grid(self, b=None, which='major', axis='both', **kwargs)

        Set the axes grids on or off; *b* is a boolean.  (For MATLAB
        compatibility, *b* may also be a string, 'on' or 'off'.)

        If *b* is *None* and ``len(kwargs)==0``, toggle the grid state.  If
        *kwargs* are supplied, it is assumed that you want a grid and *b*
        is thus set to *True*.

        *which* can be 'major' (default), 'minor', or 'both' to control
        whether major tick grids, minor tick grids, or both are affected.

        *axis* can be 'both' (default), 'x', or 'y' to control which
        set of gridlines are drawn.

        *kwargs* are used to set the grid line properties, eg::

           ax.grid(color='r', linestyle='-', linewidth=2)

        Valid :class:`~matplotlib.lines.Line2D` kwargs are

        %(Line2D)s

        R`R
R�RaN(RtRRRAR�RB(R2RcR�R�RI((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyR�is	c
K s|jdd�j�}|jdd�}|jdd�}|jdd�}|jdd�j�}|dk	r�y|\}}||dWq�ttfk
r�td	��q�Xn|d
 dkr�t}	n]|dkrt}	|dkr�t}
q-t}
td��n!|dkr!d}	ntd��y�|	dk	r�|dksT|dkrm|jj	j
j|	�n|dks�|dkr�|jj	j
j|	�q�n|dk	r|dks�|dkr�|jj	j
j
|�n|dks�|dkr|jj	j
j
|�qn|dk	r�|dks6|dkrO|jj	j
j|�n|dksg|dkr�|jj	j
j|�q�n|dk	r�|dks�|dkr�|jj	j
j|�n|dks�|dkr�|jj	j
j|�q�nWntk
rtd��nXdS(s
        Change the `~matplotlib.ticker.ScalarFormatter` used by
        default for linear axes.

        Optional keyword arguments:

          ============   =========================================
          Keyword        Description
          ============   =========================================
          *style*        [ 'sci' (or 'scientific') | 'plain' ]
                         plain turns off scientific notation
          *scilimits*    (m, n), pair of integers; if *style*
                         is 'sci', scientific notation will
                         be used for numbers outside the range
                         10`m`:sup: to 10`n`:sup:.
                         Use (0,0) to include all numbers.
          *useOffset*    [True | False | offset]; if True,
                         the offset will be calculated as needed;
                         if False, no offset will be used; if a
                         numeric offset is specified, it will be
                         used.
          *axis*         [ 'x' | 'y' | 'both' ]
          *useLocale*    If True, format the number according to
                         the current locale.  This affects things
                         such as the character used for the
                         decimal separator.  If False, use
                         C-style (English) formatting.  The
                         default setting is controlled by the
                         axes.formatter.use_locale rcparam.
          ============   =========================================

        Only the major ticks are affected.
        If the method is called when the
        :class:`~matplotlib.ticker.ScalarFormatter` is not the
        :class:`~matplotlib.ticker.Formatter` being used, an
        :exc:`AttributeError` will be raised.

        tstyleRt	scilimitst	useOffsett	useLocaleR�R
is*scilimits must be a sequence of 2 integersitscitplaintcommascomma style remains to be addeds%s is not a valid style valueR`Ras0This method only works with the ScalarFormatter.N(RaRb(RCR�RRRNRR
tNotImplementedErrorRAR+t	formattertset_scientificRBtset_powerlimitst
set_useOffsett
set_useLocaleR(R2RIR\R]R^R_R�R
tntsbtcb((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pytticklabel_format�s\'			 
cK sv|dk}|d	k}|r7|jj�j|�n|rV|jj�j|�n|jd|d|d|�dS(
s�
        Control behavior of tick locators.

        Keyword arguments:

        *axis*
            ['x' | 'y' | 'both']  Axis on which to operate;
            default is 'both'.

        *tight*
            [True | False | None] Parameter passed to :meth:`autoscale_view`.
            Default is None, for no change.

        Remaining keyword arguments are passed to directly to the
        :meth:`~matplotlib.ticker.MaxNLocator.set_params` method.

        Typically one might want to reduce the maximum number
        of ticks and use tight bounds when plotting small
        subplots, for example::

            ax.locator_params(tight=True, nbins=4)

        Because the locator is involved in autoscaling,
        :meth:`autoscale_view` is called automatically after
        the parameters are changed.

        This presently works only for the
        :class:`~matplotlib.ticker.MaxNLocator` used
        by default on linear axes, but it may be generalized.
        R`R
RaR�RRN(R`sboth(Rasboth(RAR1t
set_paramsRBR�(R2R�R�RIt_xt_y((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pytlocator_params�scK s�|d
krkt|�}|jdd�|jdd�|jdd�|jdd�|jj|�n|dkr�t|�}|jdd�|jd	d�|jd
d�|jdd�|jj|�ndS(s�
        Change the appearance of ticks and tick labels.

        Keyword arguments:

        *axis* : ['x' | 'y' | 'both']
            Axis on which to operate; default is 'both'.

        *reset* : [True | False]
            If *True*, set all parameters to defaults
            before processing other keyword arguments.  Default is
            *False*.

        *which* : ['major' | 'minor' | 'both']
            Default is 'major'; apply arguments to *which* ticks.

        *direction* : ['in' | 'out']
            Puts ticks inside or outside the axes.

        *length*
            Tick length in points.

        *width*
            Tick width in points.

        *color*
            Tick color; accepts any mpl color spec.

        *pad*
            Distance in points between tick and label.

        *labelsize*
            Tick label font size in points or as a string (e.g. 'large').

        *labelcolor*
            Tick label color; mpl color spec.

        *colors*
            Changes the tick color and the label color to the same value:
            mpl color spec.

        *zorder*
            Tick and label zorder.

        *bottom*, *top*, *left*, *right* : [bool | 'on' | 'off']
            controls whether to draw the respective ticks.

        *labelbottom*, *labeltop*, *labelleft*, *labelright*
            Boolean or ['on' | 'off'], controls whether to draw the
            respective tick labels.

        Example::

            ax.tick_params(direction='out', length=6, width=2, colors='r')

        This will make all major ticks be red, pointing out of the box,
        and with dimensions 6 points by 2 points.  Tick labels will
        also be red.

        R`R
R�R�t	labelleftt
labelrightRaR�R�tlabeltoptlabelbottomN(R`sboth(Rasboth(tdictRCRRAtset_tick_paramsRB(R2R�RItxkwtykw((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyttick_params	s=cC s
t|_dS(sturn off the axisN(R
RS(R2((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyR�\	scC s
t|_dS(sturn on the axisN(RRS(R2((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyR�`	scC s|jS(s Return the axis background color(R�(R2((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pytget_axis_bgcolord	scC s||_|jj|�dS(s�
        set the axes background color

        ACCEPTS: any matplotlib color - see
        :func:`~matplotlib.pyplot.colors`
        N(R�RNRP(R2R#((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pytset_axis_bgcolorh	s	cC s&|j�\}}|j||�dS(sInvert the x-axis.N(R-R.(R2R�R�((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pytinvert_xaxisu	scC s|j�\}}||kS(s)Returns *True* if the x-axis is inverted.(R-(R2R�R�((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pytxaxis_invertedz	scC s6|j�\}}||kr(||fS||fSdS(sa
        Returns the x-axis numerical bounds where::

          lowerBound < upperBound

        N(R-(R2R�R�((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyRq	s
cC s�|dkr't|�r'|\}}n|j�\}}|dkrN|}n|dkrc|}n|j�r�||kr�|j||dd�q�|j||dd�n;||kr�|j||dd�n|j||dd�dS(s�
        Set the lower and upper numerical bounds of the x-axis.
        This method will honor axes inversion regardless of parameter order.
        It will not change the _autoscaleXon attribute.
        R�N(RR�RqR}R.(R2R�tuppert	old_lowert	old_upper((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyR��	s		cC st|jj�S(s8
        Get the x-axis range [*left*, *right*]
        (R�R�R(R2((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyR-�	sc	K sOd|kr|jd�}nd|kr<|jd�}n|r[td|j���n|dkr�t|�r�|\}}n|jd||f�|dk	r�|j|�}n|dk	r�|j|�}n|j�\}}|dkr�|}n|dkr|}n||kr>tj	ddd||f�nt
j||dt�\}}|j
j||�\}}||f|j_|dk	r�t|�|_n|rE|jjd	|�x�|jj|�D]k}||k	r�|j|jjd
td|�|j|jkr>|jjdk	r>|jjj�q>q�q�Wn||fS(
s�
        Call signature::

          set_xlim(self, *args, **kwargs):

        Set the data limits for the xaxis

        Examples::

          set_xlim((left, right))
          set_xlim(left, right)
          set_xlim(left=1) # right unchanged
          set_xlim(right=1) # left unchanged

        Keyword arguments:

          *left*: scalar
            The left xlim; *xmin*, the previous name, may still be used

          *right*: scalar
            The right xlim; *xmax*, the previous name, may still be used

          *emit*: [ *True* | *False* ]
            Notify observers of limit change

          *auto*: [ *True* | *False* | *None* ]
            Turn *x* autoscaling on (*True*), off (*False*; default),
            or leave unchanged (*None*)

        Note, the *left* (formerly *xmin*) value may be greater than
        the *right* (formerly *xmax*).
        For example, suppose *x* is years before present.
        Then one might use::

          set_ylim(5000, 0)

        so 5000 years ago is on the left of the plot and the
        present is on the right.

        Returns the current xlimits as a length 2 tuple

        ACCEPTS: length 2 sequence of floats
        RuRvsunrecognized kwargs: %sRs0Attempting to set identical left==right results
s6in singular transformations; automatically expanding.
sleft=%s, right=%sRtxlim_changedRR�N(RCRReRR�RRYR-R(R)R�RR
RAtlimit_range_for_scaleR�RRR;R�tprocessR�RR.R�tcanvast	draw_idle(	R2R�R�RR�Rhtold_leftt	old_righttother((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyR.�	sH,		
cC s
|jj�S(N(RAR4(R2((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyR
ss!Return the xaxis scale string: %ss, cK s1|jj||�|jdt�|j�dS(s�
        Call signature::

          set_xscale(value)

        Set the scaling of the x-axis: %(scale)s

        ACCEPTS: [%(scale)s]

        Different kwargs are accepted, depending on the scale:
        %(scale_docs)s
        RN(RAR3R�R
R�(R2tvalueRI((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyR�
scC s|jjd|�S(s)Return the x ticks as a list of locationsR,(RAtget_ticklocs(R2R,((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyt
get_xticks
scC s|jj|d|�S(s[
        Set the x ticks with list of *ticks*

        ACCEPTS: sequence of floats
        R,(RAt	set_ticks(R2tticksR,((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyt
set_xticks
scC stjd|jj��S(se
        Get the xtick labels as a list of :class:`~matplotlib.text.Text`
        instances.
        sText xticklabel(R)R�RAtget_majorticklabels(R2((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pytget_xmajorticklabels&
s	cC stjd|jj��S(sk
        Get the x minor tick labels as a list of
        :class:`matplotlib.text.Text` instances.
        sText xticklabel(R)R�RAtget_minorticklabels(R2((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pytget_xminorticklabels.
s	cC stjd|jjd|��S(sf
        Get the x tick labels as a list of :class:`~matplotlib.text.Text`
        instances.
        sText xticklabelR,(R)R�RAtget_ticklabels(R2R,((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pytget_xticklabels6
s	cK s|jj||d||�S(so
        Call signature::

          set_xticklabels(labels, fontdict=None, minor=False, **kwargs)

        Set the xtick labels with list of strings *labels*. Return a
        list of axis text instances.

        *kwargs* set the :class:`~matplotlib.text.Text` properties.
        Valid properties are
        %(Text)s

        ACCEPTS: sequence of strings
        R,(RAtset_ticklabels(R2tlabelstfontdictR,RI((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pytset_xticklabels>
scC s&|j�\}}|j||�dS(sInvert the y-axis.N(R9R:(R2R�R�((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pytinvert_yaxisQ
scC s|j�\}}||kS(s)Returns *True* if the y-axis is inverted.(R9(R2R�R�((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pytyaxis_invertedV
scC s6|j�\}}||kr(||fS||fSdS(sEReturn y-axis numerical bounds in the form of lowerBound < upperBoundN(R9(R2R�R�((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyRr[
s
cC s�|dkr't|�r'|\}}n|j�\}}|dkrN|}n|dkrc|}n|j�r�||kr�|j||dd�q�|j||dd�n;||kr�|j||dd�n|j||dd�dS(s�
        Set the lower and upper numerical bounds of the y-axis.
        This method will honor axes inversion regardless of parameter order.
        It will not change the _autoscaleYon attribute.
        R�N(RR�RrR�R:(R2R�R~RR�((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyR�c
s		cC st|jj�S(s8
        Get the y-axis range [*bottom*, *top*]
        (R�R�R!(R2((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyR9|
sc	K s9d|kr|jd�}nd|kr<|jd�}n|r[td|j���n|dkr�t|�r�|\}}n|dk	r�|j|�}n|dk	r�|j|�}n|j�\}}|dkr�|}n|dkr�|}n||kr(tjddd||f�nt	j
||dt�\}}|jj
||�\}}||f|j_|dk	r�t|�|_n|r/|jjd|�x�|jj|�D]k}||k	r�|j|jjd	td
|�|j|jkr(|jjdk	r(|jjj�q(q�q�Wn||fS(s�
        Call signature::

          set_ylim(self, *args, **kwargs):

        Set the data limits for the yaxis

        Examples::

          set_ylim((bottom, top))
          set_ylim(bottom, top)
          set_ylim(bottom=1) # top unchanged
          set_ylim(top=1) # bottom unchanged

        Keyword arguments:

          *bottom*: scalar
            The bottom ylim; the previous name, *ymin*, may still be used

          *top*: scalar
            The top ylim; the previous name, *ymax*, may still be used

          *emit*: [ *True* | *False* ]
            Notify observers of limit change

          *auto*: [ *True* | *False* | *None* ]
            Turn *y* autoscaling on (*True*), off (*False*; default),
            or leave unchanged (*None*)

        Note, the *bottom* (formerly *ymin*) value may be greater than
        the *top* (formerly *ymax*).
        For example, suppose *y* is depth in the ocean.
        Then one might use::

          set_ylim(5000, 0)

        so 5000 m depth is at the bottom of the plot and the
        surface, 0 m, is at the top.

        Returns the current ylimits as a length 2 tuple

        ACCEPTS: length 2 sequence of floats
        RwRxsunrecognized kwargs: %ss0Attempting to set identical bottom==top results
s6in singular transformations; automatically expanding.
sbottom=%s, top=%sRtylim_changedRR�N(RCRReRR�RZR9R(R)R�RR
RBR�R�R!RR<R�R�R�RR:R�R�R�(	R2R�R�RR�Rht
old_bottomtold_topR�((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyR:�
sF,		
cC s
|jj�S(N(RBR4(R2((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyR��
ss!Return the yaxis scale string: %scK s1|jj||�|jdt�|j�dS(s�
        Call signature::

          set_yscale(value)

        Set the scaling of the y-axis: %(scale)s

        ACCEPTS: [%(scale)s]

        Different kwargs are accepted, depending on the scale:
        %(scale_docs)s
        RN(RBR3R�R
R�(R2R�RI((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyR��
scC s|jjd|�S(s)Return the y ticks as a list of locationsR,(RBR�(R2R,((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyt
get_yticks�
scC s|jj|d|�S(s�
        Set the y ticks with list of *ticks*

        ACCEPTS: sequence of floats

        Keyword arguments:

          *minor*: [ *False* | *True* ]
            Sets the minor ticks if *True*
        R,(RBR�(R2R�R,((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyt
set_yticks�
scC stjd|jj��S(sl
        Get the major y tick labels as a list of
        :class:`~matplotlib.text.Text` instances.
        sText yticklabel(R)R�RBR�(R2((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pytget_ymajorticklabelss	cC stjd|jj��S(sl
        Get the minor y tick labels as a list of
        :class:`~matplotlib.text.Text` instances.
        sText yticklabel(R)R�RBR�(R2((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pytget_yminorticklabelss	cC stjd|jjd|��S(se
        Get the y tick labels as a list of :class:`~matplotlib.text.Text`
        instances
        sText yticklabelR,(R)R�RBR�(R2R,((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pytget_yticklabelss	cK s|jj||d||�S(s�
        Call signature::

          set_yticklabels(labels, fontdict=None, minor=False, **kwargs)

        Set the y tick labels with list of strings *labels*.  Return a list of
        :class:`~matplotlib.text.Text` instances.

        *kwargs* set :class:`~matplotlib.text.Text` properties for the labels.
        Valid properties are
        %(Text)s

        ACCEPTS: sequence of strings
        R,(RBR�(R2R�R�R,RI((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pytset_yticklabelsscC s|jj|�dS(s�
        Sets up x-axis ticks and labels that treat the x data as dates.

        *tz* is a timezone string or :class:`tzinfo` instance.
        Defaults to rc value.
        N(RAt	axis_date(R2ttz((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyt
xaxis_date.s	cC s|jj|�dS(s�
        Sets up y-axis ticks and labels that treat the y data as dates.

        *tz* is a timezone string or :class:`tzinfo` instance.
        Defaults to rc value.
        N(RBR�(R2R�((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyt
yaxis_date9scC sHy|j|�SWn0tk
rC|jj�j}||�}|SXdS(s�
        Return *x* string formatted.  This function will use the attribute
        self.fmt_xdata if it is callable, else will fall back on the xaxis
        major formatter
        N(R�RNRAR/tformat_data_short(R2R`RTRR((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pytformat_xdataBs
cC sHy|j|�SWn0tk
rC|jj�j}||�}|SXdS(s�
        Return y string formatted.  This function will use the
        :attr:`fmt_ydata` attribute if it is callable, else will fall
        back on the yaxis major formatter
        N(R�RNRBR/R�(R2RaRTRR((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pytformat_ydataNs
cC sV|dkrd}n|j|�}|dkr9d}n|j|�}d||fS(s4Return a format string formatting the *x*, *y* coords???s	x=%s y=%sN(RR�R�(R2R`Ratxstys((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pytformat_coordZs		cC stS(sX
        Return *True* if this axes supports the zoom box button functionality.
        (R(R2((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pytcan_zoomhscC stS(sX
        Return *True* if this axes supports any pan/zoom button functionality.
        (R(R2((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pytcan_pannscC s|jS(sF
        Get whether the axes responds to navigation commands
        (t	_navigate(R2((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pytget_navigatetscC s
||_dS(su
        Set whether the axes responds to navigation toolbar commands

        ACCEPTS: [ *True* | *False* ]
        N(R�(R2Rc((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyR�zscC s|jS(sR
        Get the navigation toolbar button status: 'PAN', 'ZOOM', or None
        (t_navigate_mode(R2((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pytget_navigate_mode�scC s
||_dS(s
        Set the navigation toolbar button status;

        .. warning::
            this is not a user-API function.

        N(R�(R2Rc((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyR��sc
C satjd|jj�d|jj�d|jj�j�d|jj�d|d|�|_dS(s2
        Called when a pan operation has started.

        *x*, *y* are the mouse coordinates in display coords.
        button is the mouse button number:

        * 1: LEFT
        * 2: MIDDLE
        * 3: RIGHT

        .. note::

            Intended to be overridden by new projection types.

        tlimttranst
trans_inverseR�R`RaN(R)tBunchR�R�R�tinvertedR�t
_pan_start(R2R`Ratbutton((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyt	start_pan�s	cC s
|`dS(s�
        Called when a pan operation completes (when the mouse button
        is up.)

        .. note::

            Intended to be overridden by new projection types.

        N(R�(R2((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pytend_pan�s
cC s�d�}|j}||j}||j}|dkrH|dkrHdS|dkr�||||�\}}|jj||�j|j�}	n|dkr�y�|t|jj�}|t|jj	�}||||�\}}|j
�dkrd||}|}ntjd||f�}
tj
|j|jg�}|jj|j�}||
||}
tj|
�j|j�}	Wq�tk
r�tjd	�dSXn|j|	j�|j|	j�dS(
s`
        Called when the mouse moves during a pan operation.

        *button* is the mouse button number:

        * 1: LEFT
        * 2: MIDDLE
        * 3: RIGHT

        *key* is a "shift" key

        *x*, *y* are the mouse coordinates in display coords.

        .. note::

            Intended to be overridden by new projection types.

        cS s|dkr6t|�t|�kr-|}q|}n�|dkrKd}n�|dkr`d}n�|dkrdt|�t|�kr�d}qdt|�t|�kr�d}qt|�t|�kr�|t|�t|�}q|t|�t|�}n||fS(NtcontrolR`iRatshifti(R�(RQtdxtdy((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyt
format_deltas�s"						iNiiR�g�?g$@sOverflow while panning(R�R`RaR�t
translatedttransformedR�RwR�R�RfR[tpowertarrayR�R�R�R�t
OverflowErrorR(R)R.RR:R!(R2R�RQR`RaR�R�R�R�tresulttalphatstartt	oldpointst	newpoints((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pytdrag_pan�s:		

	

cC s|jS(s�
        Return the cursor propertiess as a (*linewidth*, *color*)
        tuple, where *linewidth* is a float and *color* is an RGBA
        tuple
        (t_cursorProps(R2((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pytget_cursor_props�scG swt|�dkr%|d\}}n-t|�dkrF|\}}ntd��tjj|�}||f|_dS(s�
        Set the cursor property as::

          ax.set_cursor_props(linewidth, color)

        or::

          ax.set_cursor_props((linewidth, color))

        ACCEPTS: a (*float*, *color*) tuple
        iiis'args must be a (linewidth, color) tupleN(RtRRRtto_rgbaR�(R2RHtlwR%((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyR�scC std��dS(s�
        Register observers to be notified when certain events occur.  Register
        with callback functions with the following signatures.  The function
        has the following signature::

            func(ax)  # where ax is the instance making the callback.

        The following events can be connected to:

          'xlim_changed','ylim_changed'

        The connection id is is returned - you can use this with
        disconnect to disconnect from the axes event

        s3use the callbacks CallbackRegistry instance insteadN(R*(R2RRT((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyR�scC std��dS(sdisconnect from the Axes event.s3use the callbacks CallbackRegistry instance insteadN(R*(R2tcid((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyt
disconnect.scC s�g}|j|j�|j|j�|j|j�|j|j�|j|j�|j|j�|j|j�|j|j	�|j
dk	r�|j|j
�n|j|j�|j|j
�|j|j�|j|jj��|S(sreturn a list of child artistsN(R{RARBR-R�R�R�R�RCR�RERR�RLRNR�R/(R2tchildren((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pytget_children3s cC s/t|j�r|j||�S|jj|�S(si
        Test whether the mouse event occured in the axes.

        Returns *True* / *False*, {}
        (tcallablet	_containsRNR(R2R((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyRFscC s|jj|dd�S(s�
        Returns *True* if the point (tuple of x,y) is inside the axes
        (the area defined by the its patch). A pixel coordinate is
        required.

        tradiusg�?(RNtcontains_point(R2tpoint((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyR�PscG s<t|�dkr!td��ntjj||d�dS(s�
        Call signature::

            pick(mouseevent)

        each child artist will fire a pick event if mouseevent is over
        the artist and the artist has picker set
        isCNew pick API implemented -- see API_CHANGES in the src distributioniN(RtR*R�R�tpick(R2RH((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyR�Ys	c sH|dk	r$|j||f��n||f�d�}d����fd�}|j|j|j}t|�r�tt|�}ntt|�r�t	g|D]}|df^q��}	g|D]}
|
|	kr�|
^q�}n|dkr�nt
d��t|�s
dSg|D]}
||
�|
f^q}|j�|ddS(s3
        Return the artist under point that is closest to the *x*, *y*.
        If *trans* is *None*, *x*, and *y* are in window coords,
        (0,0 = lower left).  Otherwise, *trans* is a
        :class:`~matplotlib.transforms.Transform` that specifies the
        coordinate system of *x*, *y*.

        The selection of artists from amongst which the pick function
        finds an artist can be narrowed using the optional keyword
        argument *among*. If provided, this should be either a sequence
        of permitted artists or a function taking an artist as its
        argument and returning a true value if and only if that artist
        can be selected.

        Note this algorithm calculates distance to the vertices of the
        polygon, so if you want to pick a patch, click on the edge!
        cS s9|\}}|\}}tj||d||d�S(s&return the distance between two pointsi(Rstsqrt(tp1tp2RXR^tx2ty2((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pytdist_pointsscS s3|\}}ttj||d||d��S(s@*x* and *y* are arrays; return the distance to the closest pointi(tminR[R�(R�R`RaRXR^((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pytdist_x_y�sc
 s=t|t�r|j�}|j\}}}}||f|||f||||f|||ff}t|�\}}n�t|t�r�|j�}	|j�j|	�}
t|
�\}}nWt|t	j
�r|jdt�}|j
dt�}|j�j||�\}}n��tj|�tj|��S(Ntorig(R�RKR�R�RutPatchR�RR�RRgt	get_xdataR
t	get_ydatatnumerix_x_yR[R�(
RR�R�RcR�R�tvertstxttytR�ttvertsRR(R�txywin(s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pytdist�s:!is"among must be callable or iterableiN(
Rttransform_pointR�R�R�R�tfilterttestR�RuRRtR3(R2R`RaR�tamongR�R�RCR}tamongdRtds((R�R�s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyt__pickgs(		%(%
cC s
|jj�S(s,
        Get the title text string.
        (RLtget_text(R2((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyt	get_title�scK suitdd6dd6dd6}|jj|�|jj|�|dk	r^|jj|�n|jj|�|jS(sD
        Call signature::

          set_title(label, fontdict=None, **kwargs):

        Set the title for the axes.

        kwargs are Text properties:
        %(Text)s

        ACCEPTS: str

        .. seealso::

            :meth:`text`
                for information on how override and the optional args work
        saxes.titlesizetfontsizeR%R$R�R&N(RRLtset_texttupdateR(R2R�R�RItdefault((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyt	set_title�s
cC s|jj�}|j�S(s-
        Get the xlabel text string.
        (RAR�R�(R2R�((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyt
get_xlabel�scK s1|dk	r||j_n|jj|||�S(s�
        Call signature::

          set_xlabel(xlabel, fontdict=None, labelpad=None, **kwargs)

        Set the label for the xaxis.

        *labelpad* is the spacing in points between the label and the x-axis

        Valid kwargs are :class:`~matplotlib.text.Text` properties:
        %(Text)s

        ACCEPTS: str

        .. seealso::

            :meth:`text`
                for information on how override and the optional args work
        N(RRAtlabelpadtset_label_text(R2txlabelR�R�RI((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyt
set_xlabel�scC s|jj�}|j�S(s-
        Get the ylabel text string.
        (RBR�R�(R2R�((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyt
get_ylabel�scK s1|dk	r||j_n|jj|||�S(s�
        Call signature::

          set_ylabel(ylabel, fontdict=None, labelpad=None, **kwargs)

        Set the label for the yaxis

        *labelpad* is the spacing in points between the label and the y-axis

        Valid kwargs are :class:`~matplotlib.text.Text` properties:
        %(Text)s

        ACCEPTS: str

        .. seealso::

            :meth:`text`
                for information on how override and the optional args work
        N(RRBR�R�(R2tylabelR�R�RI((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyt
set_ylabel�sc	 s�idd6dd6�jd6}|rEtjd|d|d|�}ntjd|d|d|�}�j|�|j|�|dk	r�|j|�n|j|��jj|��fd	�|_	d
|kr�|j
�j�n|S(s
        Add text to the axes.

        Call signature::

          text(x, y, s, fontdict=None, **kwargs)

        Add text in string *s* to axis at location *x*, *y*, data
        coordinates.

        Keyword arguments:

          *fontdict*:
            A dictionary to override the default text properties.
            If *fontdict* is *None*, the defaults are determined by your rc
            parameters.

          *withdash*: [ *False* | *True* ]
            Creates a :class:`~matplotlib.text.TextWithDash` instance
            instead of a :class:`~matplotlib.text.Text` instance.

        Individual keyword arguments can be used to override any given
        parameter::

            text(x, y, s, fontsize=12)

        The default transform specifies that text is in data coords,
        alternatively, you can specify text in axis coords (0,0 is
        lower-left and 1,1 is upper-right).  The example below places
        text in the center of the axes::

            text(0.5, 0.5,'matplotlib',
                 horizontalalignment='center',
                 verticalalignment='center',
                 transform = ax.transAxes)

       You can put a rectangular box around the text instance (eg. to
       set a background color) by using the keyword *bbox*.  *bbox* is
       a dictionary of :class:`matplotlib.patches.Rectangle`
       properties.  For example::

         text(x, y, s, bbox=dict(facecolor='red', alpha=0.5))

       Valid kwargs are :class:`~matplotlib.text.Text` properties:

       %(Text)s
        R%R$R�R&R�R`RaR"c s�jj|�S(N(R�R�(R�(R2(s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyR�[
stclip_onN(R�RJtTextWithDashRKRR�RR�R{R�RMR�(	R2R`RaRR�twithdashRIR�RN((R2s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyR"
s&2
			


c sztj||�}|jtj���j|�|jd�rT|j�j�n�j	j
|��fd�|_|S(se
        Create an annotation: a piece of text referring to a data
        point.

        Call signature::

          annotate(s, xy, xytext=None, xycoords='data',
                   textcoords='data', arrowprops=None, **kwargs)

        Keyword arguments:

        %(Annotation)s

        .. plot:: mpl_examples/pylab_examples/annotation_demo2.py
        Rc s�jj|�S(N(R�R�(R�(R2(s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyR�x
s(RJt
AnnotationRR�R�Rthas_keyRTRNR�R{R�(R2RHRIR((R2s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pytannotateb
s
iicK s�d|krtdd��n|j�\}}|jd|d|�|j|�}||kpk||k}tj|j|j�}	tj	||g||gd|	|�}
|j
|
�|jdtd|�|
S(sY
        Add a horizontal line across the axis.

        Call signature::

          axhline(y=0, xmin=0, xmax=1, **kwargs)

        Draw a horizontal line at *y* from *xmin* to *xmax*.  With the
        default values of *xmin* = 0 and *xmax* = 1, this line will
        always span the horizontal extent of the axes, regardless of
        the xlim settings, even if you change them, eg. with the
        :meth:`set_xlim` command.  That is, the horizontal extent is
        in axes coords: 0=left, 0.5=middle, 1.0=right but the *y*
        location is in data coordinates.

        Return value is the :class:`~matplotlib.lines.Line2D`
        instance.  kwargs are the same as kwargs to plot, and can be
        used to control the line properties.  Eg.,

        * draw a thick red hline at *y* = 0 that spans the xrange::

            >>> axhline(linewidth=4, color='r')

        * draw a default hline at *y* = 1 that spans the xrange::

            >>> axhline(y=1)

        * draw a default hline at *y* = .5 that spans the the middle half of
          the xrange::

            >>> axhline(y=.5, xmin=0.25, xmax=0.75)

        Valid kwargs are :class:`~matplotlib.lines.Line2D` properties,
        with the exception of 'transform':

        %(Line2D)s

        .. seealso::

            :meth:`axhspan`
                for example plot and source code
        R�s&'transform' is not allowed as a kwarg;s$axhline generates its own transform.RRIRR(
RRrRRZR�R�R�R�RRgR�R�R
(R2RaRuRvRIRwRxtyyRR�R�((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pytaxhline}
s-
'
cK s�d|krtdd��n|j�\}}|jd|d|�|j|�}||kpk||k}tj|j|j�}	tj	||g||gd|	|�}
|j
|
�|jd|dt�|
S(sQ
        Add a vertical line across the axes.

        Call signature::

          axvline(x=0, ymin=0, ymax=1, **kwargs)

        Draw a vertical line at *x* from *ymin* to *ymax*.  With the
        default values of *ymin* = 0 and *ymax* = 1, this line will
        always span the vertical extent of the axes, regardless of the
        ylim settings, even if you change them, eg. with the
        :meth:`set_ylim` command.  That is, the vertical extent is in
        axes coords: 0=bottom, 0.5=middle, 1.0=top but the *x* location
        is in data coordinates.

        Return value is the :class:`~matplotlib.lines.Line2D`
        instance.  kwargs are the same as kwargs to plot, and can be
        used to control the line properties.  Eg.,

        * draw a thick red vline at *x* = 0 that spans the yrange::

            >>> axvline(linewidth=4, color='r')

        * draw a default vline at *x* = 1 that spans the yrange::

            >>> axvline(x=1)

        * draw a default vline at *x* = .5 that spans the the middle half of
          the yrange::

            >>> axvline(x=.5, ymin=0.25, ymax=0.75)

        Valid kwargs are :class:`~matplotlib.lines.Line2D` properties,
        with the exception of 'transform':

        %(Line2D)s

        .. seealso::

            :meth:`axhspan`
                for example plot and source code
        R�s&'transform' is not allowed as a kwarg;s$axvline generates its own transform.RRIRR(
RRqRRYR�R�R�R�RRgR�R�R
(R2R`RwRxRIRuRvtxxRR�R�((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pytaxvline�
s-
'
c	K s�tj|j|j�}|j||g||gd|�|j||g�\}}|j||g�\}}||f||f||f||ff}tj||�}|j	|�|j
|�|jdt�|S(se
        Add a horizontal span (rectangle) across the axis.

        Call signature::

          axhspan(ymin, ymax, xmin=0, xmax=1, **kwargs)

        *y* coords are in data units and *x* coords are in axes (relative
        0-1) units.

        Draw a horizontal span (rectangle) from *ymin* to *ymax*.
        With the default values of *xmin* = 0 and *xmax* = 1, this
        always spans the xrange, regardless of the xlim settings, even
        if you change them, eg. with the :meth:`set_xlim` command.
        That is, the horizontal extent is in axes coords: 0=left,
        0.5=middle, 1.0=right but the *y* location is in data
        coordinates.

        Return value is a :class:`matplotlib.patches.Polygon`
        instance.

        Examples:

        * draw a gray rectangle from *y* = 0.25-0.75 that spans the
          horizontal extent of the axes::

            >>> axhspan(0.25, 0.75, facecolor='0.5', alpha=0.5)

        Valid kwargs are :class:`~matplotlib.patches.Polygon` properties:

        %(Polygon)s

        **Example:**

        .. plot:: mpl_examples/pylab_examples/axhspan_demo.py

        RIR(
R�R�R�R�RRYRZRoRpRR�R�R
(	R2RwRxRuRvRIR�R�R�((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pytaxhspan�
s'"*

c	K s�tj|j|j�}|j||g||gd|�|j||g�\}}|j||g�\}}||f||f||f||fg}tj||�}|j	|�|j
|�|jdt�|S(sy
        Add a vertical span (rectangle) across the axes.

        Call signature::

          axvspan(xmin, xmax, ymin=0, ymax=1, **kwargs)

        *x* coords are in data units and *y* coords are in axes (relative
        0-1) units.

        Draw a vertical span (rectangle) from *xmin* to *xmax*.  With
        the default values of *ymin* = 0 and *ymax* = 1, this always
        spans the yrange, regardless of the ylim settings, even if you
        change them, eg. with the :meth:`set_ylim` command.  That is,
        the vertical extent is in axes coords: 0=bottom, 0.5=middle,
        1.0=top but the *y* location is in data coordinates.

        Return value is the :class:`matplotlib.patches.Polygon`
        instance.

        Examples:

        * draw a vertical green translucent rectangle from x=1.25 to 1.55 that
          spans the yrange of the axes::

            >>> axvspan(1.25, 1.55, facecolor='g', alpha=0.5)

        Valid kwargs are :class:`~matplotlib.patches.Polygon`
        properties:

        %(Polygon)s

        .. seealso::

            :meth:`axhspan`
                for example plot and source code
        RIR(
R�R�R�R�RRYRZRoRpRR�R�R
(	R2RuRvRwRxRIR�R�R�((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pytaxvspan5s'"*

R}tsolidcK s�|jd�dk	r$td��n|j||g|d|�|j|�}|j|�}|j|�}t|�s�|g}nt|�s�|g}nt|�s�|g}ntj|�}tj|�}tj|�}t	|�dkrtj
||j�}nt	|�dkr6tj
||j�}nt	|�t	|�kr]td��nt	|�t	|�kr�td��ngt
|||�D]'\}}	}
||
f|	|
ff^q�}tj|d|d|d	|�}|j|�|j|�t	|�d
kr�t|j�|j��}
t|j�|j��}|j�}|j�}|
|f||ff}|j|�|j�n|S(s�
        Plot horizontal lines.

        call signature::

          hlines(y, xmin, xmax, colors='k', linestyles='solid', **kwargs)

        Plot horizontal lines at each *y* from *xmin* to *xmax*.

        Returns the :class:`~matplotlib.collections.LineCollection`
        that was added.

        Required arguments:

          *y*:
            a 1-D numpy array or iterable.

          *xmin* and *xmax*:
            can be scalars or ``len(x)`` numpy arrays.  If they are
            scalars, then the respective values are constant, else the
            widths of the lines are determined by *xmin* and *xmax*.

        Optional keyword arguments:

          *colors*:
            a line collections color argument, either a single color
            or a ``len(y)`` list of colors

          *linestyles*:
            [ 'solid' | 'dashed' | 'dashdot' | 'dotted' ]

        **Example:**

        .. plot:: mpl_examples/pylab_examples/hline_demo.py
        R s^hlines now uses a collections.LineCollection and not a list of Line2D to draw; see API_CHANGESRIis&xmin and y are unequal sized sequencess&xmax and y are unequal sized sequencesRt
linestylesR�iN(RxRR*RRZRYR�R[R�RttresizeR]RRutmcolltLineCollectionR�R�R�RzR�R�(R2RaRuRvRRR�RItthisxmintthisxmaxtthisyR�tcolltminxtmaxxtminytmaxytcorners((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pythlinesnsL&=



cK s�|jd�d
k	r$td��n|jd|d||gd|�|j|�}|j|�}|j|�}t|�s�|g}nt|�s�|g}nt|�s�|g}ntj|�}tj|�}tj|�}t	|�dkrtj
||j�}nt	|�dkr<tj
||j�}nt	|�t	|�krctd��nt	|�t	|�kr�td��ntj
||g�j}gt||�D]*\}	\}
}|	|
f|	|ff^q�}tj|d	|d
|d|�}
|j|
�|
j|�t	|�dkr�t|�}t|�}tt|�t|��}tt|�t|��}||f||ff}|j|�|j�n|
S(s 
        Plot vertical lines.

        Call signature::

          vlines(x, ymin, ymax, color='k', linestyles='solid')

        Plot vertical lines at each *x* from *ymin* to *ymax*.  *ymin*
        or *ymax* can be scalars or len(*x*) numpy arrays.  If they are
        scalars, then the respective values are constant, else the
        heights of the lines are determined by *ymin* and *ymax*.

        *colors* :
          A line collection's color args, either a single color
          or a ``len(x)`` list of colors

        *linestyles* : [ 'solid' | 'dashed' | 'dashdot' | 'dotted' ]

        Returns the :class:`matplotlib.collections.LineCollection`
        that was added.

        kwargs are :class:`~matplotlib.collections.LineCollection` properties:

        %(LineCollection)s
        R s^vlines now uses a collections.LineCollection and not a list of Line2D to draw; see API_CHANGESRRRIis&ymin and x are unequal sized sequencess&ymax and x are unequal sized sequencesRRR�iN(RxRR*RRYRZR�R[R�RtRR]RR�tTRuRRR�R�R�RzR�R�(R2R`RwRxRRR�RItYtthisxtthisymintthisymaxR�RRRRRR((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pytvlines�sN"=



cO s�|jdt�}|jdt�}|js:|j�ng}x4|j||�D] }|j|�|j|�qSW|jd|d|�|S(s
        Plot lines and/or markers to the
        :class:`~matplotlib.axes.Axes`.  *args* is a variable length
        argument, allowing for multiple *x*, *y* pairs with an
        optional format string.  For example, each of the following is
        legal::

            plot(x, y)         # plot x and y using default line style and color
            plot(x, y, 'bo')   # plot x and y using blue circle markers
            plot(y)            # plot y using x as index array 0..N-1
            plot(y, 'r+')      # ditto, but with red plusses

        If *x* and/or *y* is 2-dimensional, then the corresponding columns
        will be plotted.

        An arbitrary number of *x*, *y*, *fmt* groups can be
        specified, as in::

            a.plot(x1, y1, 'g^', x2, y2, 'g-')

        Return value is a list of lines that were added.

        By default, each line is assigned a different color specified by a
        'color cycle'.  To change this behavior, you can edit the
        axes.color_cycle rcParam. Alternatively, you can use
        :meth:`~matplotlib.axes.Axes.set_default_color_cycle`.

        The following format string characters are accepted to control
        the line style or marker:

        ================    ===============================
        character           description
        ================    ===============================
        ``'-'``             solid line style
        ``'--'``            dashed line style
        ``'-.'``            dash-dot line style
        ``':'``             dotted line style
        ``'.'``             point marker
        ``','``             pixel marker
        ``'o'``             circle marker
        ``'v'``             triangle_down marker
        ``'^'``             triangle_up marker
        ``'<'``             triangle_left marker
        ``'>'``             triangle_right marker
        ``'1'``             tri_down marker
        ``'2'``             tri_up marker
        ``'3'``             tri_left marker
        ``'4'``             tri_right marker
        ``'s'``             square marker
        ``'p'``             pentagon marker
        ``'*'``             star marker
        ``'h'``             hexagon1 marker
        ``'H'``             hexagon2 marker
        ``'+'``             plus marker
        ``'x'``             x marker
        ``'D'``             diamond marker
        ``'d'``             thin_diamond marker
        ``'|'``             vline marker
        ``'_'``             hline marker
        ================    ===============================


        The following color abbreviations are supported:

        ==========  ========
        character   color
        ==========  ========
        'b'         blue
        'g'         green
        'r'         red
        'c'         cyan
        'm'         magenta
        'y'         yellow
        'k'         black
        'w'         white
        ==========  ========

        In addition, you can specify colors in many weird and
        wonderful ways, including full names (``'green'``), hex
        strings (``'#008000'``), RGB or RGBA tuples (``(0,1,0,1)``) or
        grayscale intensities as a string (``'0.8'``).  Of these, the
        string specifications can be used in place of a ``fmt`` group,
        but the tuple forms can be used only as ``kwargs``.

        Line styles and colors are combined in a single format string, as in
        ``'bo'`` for blue circles.

        The *kwargs* can be used to set line properties (any property that has
        a ``set_*`` method).  You can use this to set a line label (for auto
        legends), linewidth, anitialising, marker face color, etc.  Here is an
        example::

            plot([1,2,3], [1,2,3], 'go-', label='line 1', linewidth=2)
            plot([1,2,3], [1,4,9], 'rs',  label='line 2')
            axis([0, 4, 0, 10])
            legend()

        If you make multiple lines with one plot command, the kwargs
        apply to all those lines, e.g.::

            plot(x1, y1, x2, y2, antialised=False)

        Neither line will be antialiased.

        You do not need to use format strings, which are just
        abbreviations.  All of the line properties can be controlled
        by keyword arguments.  For example, you can set the color,
        marker, linestyle, and markercolor with::

            plot(x, y, color='green', linestyle='dashed', marker='o',
                 markerfacecolor='blue', markersize=12).

        See :class:`~matplotlib.lines.Line2D` for details.

        The kwargs are :class:`~matplotlib.lines.Line2D` properties:

        %(Line2D)s

        kwargs *scalex* and *scaley*, if defined, are passed on to
        :meth:`~matplotlib.axes.Axes.autoscale_view` to determine
        whether the *x* and *y* axes are autoscaled; the default is
        *True*.
        RR(RCRR�R�R@R�R{R�(R2RHRIRRR�RP((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyR.s}	

tboc	K sh|js|j�n|j||||�}|rD|j|�n|rZ|j|�n|j�|S(sh
        Plot with data with dates.

        Call signature::

           plot_date(x, y, fmt='bo', tz=None, xdate=True, ydate=False, **kwargs)

        Similar to the :func:`~matplotlib.pyplot.plot` command, except
        the *x* or *y* (or both) data is considered to be dates, and the
        axis is labeled accordingly.

        *x* and/or *y* can be a sequence of dates represented as float
        days since 0001-01-01 UTC.

        Keyword arguments:

          *fmt*: string
            The plot format string.

          *tz*: [ *None* | timezone string | :class:`tzinfo` instance]
            The time zone to use in labeling dates. If *None*, defaults to rc
            value.

          *xdate*: [ *True* | *False* ]
            If *True*, the *x*-axis will be labeled with dates.

          *ydate*: [ *False* | *True* ]
            If *True*, the *y*-axis will be labeled with dates.

        Note if you are using custom date tickers and formatters, it
        may be necessary to set the formatters/locators after the call
        to :meth:`plot_date` since :meth:`plot_date` will set the
        default tick locator to
        :class:`matplotlib.dates.AutoDateLocator` (if the tick
        locator is not already set to a
        :class:`matplotlib.dates.DateLocator` instance) and the
        default tick formatter to
        :class:`matplotlib.dates.AutoDateFormatter` (if the tick
        formatter is not already set to a
        :class:`matplotlib.dates.DateFormatter` instance).

        Valid kwargs are :class:`~matplotlib.lines.Line2D` properties:

        %(Line2D)s

        .. seealso::

           :mod:`~matplotlib.dates` for helper functions

           :func:`~matplotlib.dates.date2num`,
           :func:`~matplotlib.dates.num2date` and
           :func:`~matplotlib.dates.drange` for help on creating the required
           floating point dates.
        (R�R�R.R�R�R�(	R2R`RaR R�txdatetydateRIRJ((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyt	plot_date�s:	

cO s�|js|j�ni|jdd�d6|jdd
�d6|jdd�d6}i|jdd�d6|jdd
�d6|jdd�d6}|jd	|�|jd	|�|j}t|_|j||�}||_|S(s�
        Make a plot with log scaling on both the *x* and *y* axis.

        Call signature::

          loglog(*args, **kwargs)

        :func:`~matplotlib.pyplot.loglog` supports all the keyword
        arguments of :func:`~matplotlib.pyplot.plot` and
        :meth:`matplotlib.axes.Axes.set_xscale` /
        :meth:`matplotlib.axes.Axes.set_yscale`.

        Notable keyword arguments:

          *basex*/*basey*: scalar > 1
            Base of the *x*/*y* logarithm

          *subsx*/*subsy*: [ *None* | sequence ]
            The location of the minor *x*/*y* ticks; *None* defaults
            to autosubs, which depend on the number of decades in the
            plot; see :meth:`matplotlib.axes.Axes.set_xscale` /
            :meth:`matplotlib.axes.Axes.set_yscale` for details

          *nonposx*/*nonposy*: ['mask' | 'clip' ]
            Non-positive values in *x* or *y* can be masked as
            invalid, or clipped to a very small positive number

        The remaining valid kwargs are
        :class:`~matplotlib.lines.Line2D` properties:

        %(Line2D)s

        **Example:**

        .. plot:: mpl_examples/pylab_examples/log_demo.py

        tbasexi
tsubsxtnonposxtmasktbaseytsubsytnonposyR~N(R�R�RCRR�R�RR.(R2RHRIR�R�RcR�((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pytloglog�s'	
			cO s�|js|j�ni|jdd�d6|jdd�d6|jdd�d6}|jd|�|j}t|_|j||�}||_|S(s�
        Make a plot with log scaling on the *x* axis.

        Call signature::

          semilogx(*args, **kwargs)

        :func:`semilogx` supports all the keyword arguments of
        :func:`~matplotlib.pyplot.plot` and
        :meth:`matplotlib.axes.Axes.set_xscale`.

        Notable keyword arguments:

          *basex*: scalar > 1
            Base of the *x* logarithm

          *subsx*: [ *None* | sequence ]
            The location of the minor xticks; *None* defaults to
            autosubs, which depend on the number of decades in the
            plot; see :meth:`~matplotlib.axes.Axes.set_xscale` for
            details.

          *nonposx*: [ 'mask' | 'clip' ]
            Non-positive values in *x* can be masked as
            invalid, or clipped to a very small positive number

        The remaining valid kwargs are
        :class:`~matplotlib.lines.Line2D` properties:

        %(Line2D)s

        .. seealso::

            :meth:`loglog`
                For example code and figure
        R)i
R*R+R,R~N(R�R�RCRR�RR.(R2RHRItdRcR�((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pytsemilogx's&	
			cO s�|js|j�ni|jdd�d6|jdd�d6|jdd�d6}|jd|�|j}t|_|j||�}||_|S(s�
        Make a plot with log scaling on the *y* axis.

        call signature::

          semilogy(*args, **kwargs)

        :func:`semilogy` supports all the keyword arguments of
        :func:`~matplotlib.pylab.plot` and
        :meth:`matplotlib.axes.Axes.set_yscale`.

        Notable keyword arguments:

          *basey*: scalar > 1
            Base of the *y* logarithm

          *subsy*: [ *None* | sequence ]
            The location of the minor yticks; *None* defaults to
            autosubs, which depend on the number of decades in the
            plot; see :meth:`~matplotlib.axes.Axes.set_yscale` for
            details.

          *nonposy*: [ 'mask' | 'clip' ]
            Non-positive values in *y* can be masked as
            invalid, or clipped to a very small positive number

        The remaining valid kwargs are
        :class:`~matplotlib.lines.Line2D` properties:

        %(Line2D)s

        .. seealso::

            :meth:`loglog`
                For example code and figure
        R-i
R.R/R,R~N(R�R�RCRR�RR.(R2RHRIR1RcR�((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pytsemilogyZs&	
			cK s|j|||�S(s�
        Plot the autocorrelation of *x*.

        Call signature::

            acorr(x, normed=True, detrend=mlab.detrend_none, usevlines=True,
                  maxlags=10, **kwargs)

        If *normed* = *True*, normalize the data by the autocorrelation at
        0-th lag.  *x* is detrended by the *detrend* callable (default no
        normalization).

        Data are plotted as ``plot(lags, c, **kwargs)``

        Return value is a tuple (*lags*, *c*, *line*) where:

          - *lags* are a length 2*maxlags+1 lag vector

          - *c* is the 2*maxlags+1 auto correlation vector

          - *line* is a :class:`~matplotlib.lines.Line2D` instance
            returned by :meth:`plot`

        The default *linestyle* is None and the default *marker* is
        ``'o'``, though these can be overridden with keyword args.
        The cross correlation is performed with
        :func:`numpy.correlate` with *mode* = 2.

        If *usevlines* is *True*, :meth:`~matplotlib.axes.Axes.vlines`
        rather than :meth:`~matplotlib.axes.Axes.plot` is used to draw
        vertical lines from the origin to the acorr.  Otherwise, the
        plot style is determined by the kwargs, which are
        :class:`~matplotlib.lines.Line2D` properties.

        *maxlags* is a positive integer detailing the number of lags
        to show.  The default value of *None* will return all
        ``(2*len(x)-1)`` lags.

        The return value is a tuple (*lags*, *c*, *linecol*, *b*)
        where

          - *linecol* is the
            :class:`~matplotlib.collections.LineCollection`

          - *b* is the *x*-axis.

        .. seealso::

            :meth:`~matplotlib.axes.Axes.plot` or
            :meth:`~matplotlib.axes.Axes.vlines`
            For documentation on valid kwargs.

        **Example:**

        :func:`~matplotlib.pyplot.xcorr` is top graph, and
        :func:`~matplotlib.pyplot.acorr` is bottom graph.

        .. plot:: mpl_examples/pylab_examples/xcorr_demo.py
        (txcorr(R2R`RI((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pytacorr�s=i
c
K s�t|�}|t|�kr-td��n|tj|��}|tj|��}tj||dd�}	|r�|	tjtj||�tj||��}	n|dkr�|d}n||ks�|dkr�td|��ntj||d�}
|	|d|||!}	|rN|j	|
dg|	|�}|j
|�}n>|jdd�|jd	d
�|j|
|	|�\}d}|
|	||fS(s�
        Plot the cross correlation between *x* and *y*.

        Call signature::

            xcorr(self, x, y, normed=True, detrend=mlab.detrend_none,
              usevlines=True, maxlags=10, **kwargs)

        If *normed* = *True*, normalize the data by the cross
        correlation at 0-th lag.  *x* and y are detrended by the
        *detrend* callable (default no normalization).  *x* and *y*
        must be equal length.

        Data are plotted as ``plot(lags, c, **kwargs)``

        Return value is a tuple (*lags*, *c*, *line*) where:

          - *lags* are a length ``2*maxlags+1`` lag vector

          - *c* is the ``2*maxlags+1`` auto correlation vector

          - *line* is a :class:`~matplotlib.lines.Line2D` instance
             returned by :func:`~matplotlib.pyplot.plot`.

        The default *linestyle* is *None* and the default *marker* is
        'o', though these can be overridden with keyword args.  The
        cross correlation is performed with :func:`numpy.correlate`
        with *mode* = 2.

        If *usevlines* is *True*:

           :func:`~matplotlib.pyplot.vlines`
           rather than :func:`~matplotlib.pyplot.plot` is used to draw
           vertical lines from the origin to the xcorr.  Otherwise the
           plotstyle is determined by the kwargs, which are
           :class:`~matplotlib.lines.Line2D` properties.

           The return value is a tuple (*lags*, *c*, *linecol*, *b*)
           where *linecol* is the
           :class:`matplotlib.collections.LineCollection` instance and
           *b* is the *x*-axis.

        *maxlags* is a positive integer detailing the number of lags to show.
        The default value of *None* will return all ``(2*len(x)-1)`` lags.

        **Example:**

        :func:`~matplotlib.pyplot.xcorr` is top graph, and
        :func:`~matplotlib.pyplot.acorr` is bottom graph.

        .. plot:: mpl_examples/pylab_examples/xcorr_demo.py
        sx and y must be equal lengthtmodeiis.maglags must be None or strictly positive < %diR"toR!RN(
RtRR[R�t	correlateR�tdotRRvR$Rt
setdefaultR.(
R2R`Ratnormedtdetrendt	usevlinestmaxlagsRItNxR%tlagsRRc((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyR4�s.82

cC s�|j|j|j|j}tjj�}|dk	rU|j�}|j	|�ng}xK|D]C}|j
�dkr�qbntjj||�rb|j|�qbqbW|S(s6return artists that will be used as handles for legendt
_nolegend_N(
R�R�R�RFtmlegendtLegendtget_default_handler_mapRR5R�R�tget_legend_handlerR{(R2tlegend_handler_mapthandles_originalthandler_mapthandlesR�((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyt_get_legend_handles%s
cC sog}g}xV|j|�D]E}|j�}|r|jd�r|j|�|j|�qqW||fS(s�
        Return handles and labels for legend

        ``ax.legend()`` is equivalent to ::

          h, l = ax.get_legend_handles_labels()
          ax.legend(h, l)

        R�(RJR�t
startswithR{(R2RFRIR�thandleR�((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pytget_legend_handles_labels;s
cO s~t|�dkrJ|j�\}}t|�dkr\tjd�dSnt|�dkr�|d}gt|j�|�D]\}}|^q|}n�t|�dkr"t|d�s�t|dt	�r|\}}gt|j�|�D]\}}|^q�}||d<q\|\}}n:t|�dkrP|\}}}||d<nt
d��tj||||�|_
|j
S(	s�
        Place a legend on the current axes.

        Call signature::

           legend(*args, **kwargs)

        Places legend at location *loc*.  Labels are a sequence of
        strings and *loc* can be a string or an integer specifying the
        legend location.

        To make a legend with existing lines::

           legend()

        :meth:`legend` by itself will try and build a legend using the label
        property of the lines/patches/collections.  You can set the label of
        a line by doing::

           plot(x, y, label='my data')

        or::

           line.set_label('my data').

        If label is set to '_nolegend_', the item will not be shown in
        legend.

        To automatically generate the legend from labels::

           legend( ('label1', 'label2', 'label3') )

        To make a legend for a list of lines and labels::

           legend( (line1, line2, line3), ('label1', 'label2', 'label3') )

        To make a legend at a given location, using a location argument::

           legend( ('label1', 'label2', 'label3'), loc='upper left')

        or::

           legend( (line1, line2, line3),  ('label1', 'label2', 'label3'), loc=2)

        The location codes are

          ===============   =============
          Location String   Location Code
          ===============   =============
          'best'            0
          'upper right'     1
          'upper left'      2
          'lower left'      3
          'lower right'     4
          'right'           5
          'center left'     6
          'center right'    7
          'lower center'    8
          'upper center'    9
          'center'          10
          ===============   =============


        Users can specify any arbitrary location for the legend using the
        *bbox_to_anchor* keyword argument. bbox_to_anchor can be an instance
        of BboxBase(or its derivatives) or a tuple of 2 or 4 floats.
        For example,

           loc = 'upper right', bbox_to_anchor = (0.5, 0.5)

        will place the legend so that the upper right corner of the legend at
        the center of the axes.

        The legend location can be specified in other coordinate, by using the
        *bbox_transform* keyword.

        The loc itslef can be a 2-tuple giving x,y of the lower-left corner of
        the legend in axes coords (*bbox_to_anchor* is ignored).


        Keyword arguments:

          *prop*: [ *None* | FontProperties | dict ]
            A :class:`matplotlib.font_manager.FontProperties`
            instance. If *prop* is a dictionary, a new instance will be
            created with *prop*. If *None*, use rc settings.

          *fontsize*: [ size in points | 'xx-small' | 'x-small' |
          'small' | 'medium' | 'large' | 'x-large' | 'xx-large' ]
            Set the font size.  May be either a size string, relative to
            the default font size, or an absolute font size in points. This
            argument is only used if prop is not specified.

          *numpoints*: integer
            The number of points in the legend for line

          *scatterpoints*: integer
            The number of points in the legend for scatter plot

          *scatteroffsets*: list of floats
            a list of yoffsets for scatter symbols in legend

          *markerscale*: [ *None* | scalar ]
            The relative size of legend markers vs. original. If *None*,
            use rc settings.

          *frameon*: [ *True* | *False* ]
            if *True*, draw a frame around the legend.
            The default is set by the rcParam 'legend.frameon'

          *fancybox*: [ *None* | *False* | *True* ]
            if *True*, draw a frame with a round fancybox.  If *None*,
            use rc settings

          *shadow*: [ *None* | *False* | *True* ]
            If *True*, draw a shadow behind legend. If *None*,
            use rc settings.

          *ncol* : integer
            number of columns. default is 1

          *mode* : [ "expand" | *None* ]
            if mode is "expand", the legend will be horizontally expanded
            to fill the axes area (or *bbox_to_anchor*)

          *bbox_to_anchor* : an instance of BboxBase or a tuple of 2 or 4 floats
            the bbox that the legend will be anchored.

          *bbox_transform* : [ an instance of Transform | *None* ]
            the transform for the bbox. transAxes if *None*.

          *title* : string
            the legend title

        Padding and spacing between various elements use following
        keywords parameters. These values are measure in font-size
        units. E.g., a fontsize of 10 points and a handlelength=5
        implies a handlelength of 50 points.  Values from rcParams
        will be used if None.

        ================   ==================================================================
        Keyword            Description
        ================   ==================================================================
        borderpad          the fractional whitespace inside the legend border
        labelspacing       the vertical space between the legend entries
        handlelength       the length of the legend handles
        handletextpad      the pad between the legend handle and text
        borderaxespad      the pad between the axes and legend border
        columnspacing      the spacing between columns
        ================   ==================================================================

        .. Note:: Not all kinds of artist are supported by the legend command.
                  See LINK (FIXME) for details.


        **Example:**

        .. plot:: mpl_examples/api/legend_demo.py

        .. seealso::
            :ref:`plotting-guide-legend`.

        isDNo labeled objects found. Use label='...' kwarg on individual plots.iitlocisInvalid arguments to legendN(RtRMR(R)RRuRJRR�RRNRBRCRE(R2RHRIRIR�R�R�RN((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pytlegendRs,�

"#

cO sQ|jdd�}|dkr-td��nd||d<|j||||�S(	sl
        Make a step plot.

        Call signature::

          step(x, y, *args, **kwargs)

        Additional keyword args to :func:`step` are the same as those
        for :func:`~matplotlib.pyplot.plot`.

        *x* and *y* must be 1-D sequences, and it is assumed, but not checked,
        that *x* is uniformly increasing.

        Keyword arguments:

        *where*: [ 'pre' | 'post' | 'mid'  ]
          If 'pre', the interval from x[i] to x[i+1] has level y[i+1]

          If 'post', that interval has level y[i]

          If 'mid', the jumps in *y* occur half-way between the
          *x*-values.
        twheretpretposttmids7'where' argument to step must be 'pre', 'post' or 'mid'ssteps-R!(RQRRRS(RCRR.(R2R`RaRHRIRP((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pytstep s
g�������?c,K s'	|js|j�n|jdd&�}|jdd&�}|jdd&�}|jdd&�}	|jdd&�}
|jdt��}|jdd&�}|jdd	�}
|jd|�|jd|
�|jd
d�}|jdd
�}|jdt�}|jdd�}d�}|}||�}||�}||�}|}||�}||�}t}t}|d
kr5|jd|d|d|�|r�|jd�n|d&kr�|j	�dkr�dg}t
}q�dg}nt|�}t|�dkr||9}nt|�dkr||9}qn�|dkr�|jd|d|d|�|rs|jd�n|d&kr�|j
�dkr�dg}t
}q�dg}nt|�}t|�dkr�||9}nt|�dkr||9}qntd|��t|�|kr+||9}n|d&krGd&g|}nattjj|��}t|�dkr�ddddgg}nt|�|kr�||9}n|d&kr�d&g|}nattjj|��}t|�dkrddddgg}nt|�|kr%||9}ng}|jd&k	ry|j|�}|j|�}|	d&k	ry|j|	�}	qyn|jd&k	r�|j|�}|j|�}|
d&k	r�|j|
�}
q�n|dkr�n�|dkrm|d
kr&gtt|��D]}||||d^q}q}|dkr}gtt|��D]}||||d^qE}q}ntd|��t|||||||�}x�|D]�\}}}}}} }!|dkr�||7}t|�}n|dkr||7}t|�}ntjd||fd|d|d |d| d|!dd!�}"|"j|�d"|"j�_|j|"�|j |"�q�W|j}#|j!t
�|	d&k	s�|
d&k	r�|d
krgt||�D]\}}|d#|^q�}$gt||�D]\}}||^q�}%nk|dkr�gt||�D]\}}||^q2}$gt||�D]\}}|d#|^q^}%nd|kr�d!|d<n|j"|$|%d|
d|	d$d&|�}&nd&}&|j!|#�|rg|j#j$\}'}(t%j&g|D]}|dkr�|^q��}'|	d&k	r?|'t%j'|	�}'nt(|'d%d�}'|'|(f|j#_$n|r�|j#j)\})}*t%j&g|D]}|dkr�|^q��})|
d&k	r�|)t%j'|
�})nt(|)d%d�})|)|*f|j#_)n|j*�t+||&d|�}+|j,|+�|+S('s�

        Make a bar plot.

        Call signature::

          bar(left, height, width=0.8, bottom=0, **kwargs)

        Make a bar plot with rectangles bounded by:

          *left*, *left* + *width*, *bottom*, *bottom* + *height*
                (left, right, bottom and top edges)

        *left*, *height*, *width*, and *bottom* can be either scalars
        or sequences

        Return value is a list of
        :class:`matplotlib.patches.Rectangle` instances.

        Required arguments:

          ========   ===============================================
          Argument   Description
          ========   ===============================================
          *left*     the x coordinates of the left sides of the bars
          *height*   the heights of the bars
          ========   ===============================================

        Optional keyword arguments:

          ===============   ==========================================
          Keyword           Description
          ===============   ==========================================
          *width*           the widths of the bars
          *bottom*          the y coordinates of the bottom edges of
                            the bars
          *color*           the colors of the bars
          *edgecolor*       the colors of the bar edges
          *linewidth*       width of bar edges; None means use default
                            linewidth; 0 means don't draw edges.
          *xerr*            if not None, will be used to generate
                            errorbars on the bar chart
          *yerr*            if not None, will be used to generate
                            errorbars on the bar chart
          *ecolor*          specifies the color of any errorbar
          *capsize*         (default 3) determines the length in
                            points of the error bar caps
          *error_kw*        dictionary of kwargs to be passed to
                            errorbar method. *ecolor* and *capsize*
                            may be specified here rather than as
                            independent kwargs.
          *align*           'edge' (default) | 'center'
          *orientation*     'vertical' | 'horizontal'
          *log*             [False|True] False (default) leaves the
                            orientation axis as-is; True sets it to
                            log scale
          ===============   ==========================================

        For vertical bars, *align* = 'edge' aligns bars by their left
        edges in left, while *align* = 'center' interprets these
        values as the *x* coordinates of the bar centers. For
        horizontal bars, *align* = 'edge' aligns bars by their bottom
        edges in bottom, while *align* = 'center' interprets these
        values as the *y* coordinates of the bar centers.

        The optional arguments *color*, *edgecolor*, *linewidth*,
        *xerr*, and *yerr* can be either scalars or sequences of
        length equal to the number of bars.  This enables you to use
        bar as the basis for stacked bar charts, or candlestick plots.
        Detail: *xerr* and *yerr* are passed directly to
        :meth:`errorbar`, so they can also have shape 2xN for
        independent specification of lower and upper errors.

        Other optional kwargs:

        %(Rectangle)s

        **Example:** A stacked bar chart.

        .. plot:: mpl_examples/pylab_examples/bar_stacked.py
        R#t	edgecolort	linewidthtxerrtyerrterror_kwtecolortcapsizeitaligntedgetorientationtverticalR~R�RcS st|�s|gS|SdS(N(R�(R`((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyt
make_iterable�sRRRIg0��.�++iit
horizontalsinvalid orientation: %sR�g@sinvalid alignment: %stxyR�R�RkRAidg�?R g�������?N(-R�R�RCRRuR:R
RR�R�RRtR�RRtlistRRt
to_rgba_arrayRARYRBRZRyRuR�RoRR�R�t_interpolation_stepsR�R{RdterrorbarR�RR[tamintamaxRzR!R�RR�(,R2R�R�R�R�RIR#RURVRWRXRYRZR[R\R^R~R�R`t_leftt_bottomtadjust_ylimtadjust_xlimtnbarsR�tiRHR�RcR�R�R%teR�RMt	holdstateR`RaRfRuRvRwRxt
bar_container((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pytbarBsR	
			
		



8;"

		

	
0/,3

..

cK s1|jd|d|d|d|dd|�}|S(s�

        Make a horizontal bar plot.

        Call signature::

          barh(bottom, width, height=0.8, left=0, **kwargs)

        Make a horizontal bar plot with rectangles bounded by:

          *left*, *left* + *width*, *bottom*, *bottom* + *height*
                (left, right, bottom and top edges)

        *bottom*, *width*, *height*, and *left* can be either scalars
        or sequences

        Return value is a list of
        :class:`matplotlib.patches.Rectangle` instances.

        Required arguments:

          ========   ======================================================
          Argument   Description
          ========   ======================================================
          *bottom*   the vertical positions of the bottom edges of the bars
          *width*    the lengths of the bars
          ========   ======================================================

        Optional keyword arguments:

          ===============   ==========================================
          Keyword           Description
          ===============   ==========================================
          *height*          the heights (thicknesses) of the bars
          *left*            the x coordinates of the left edges of the
                            bars
          *color*           the colors of the bars
          *edgecolor*       the colors of the bar edges
          *linewidth*       width of bar edges; None means use default
                            linewidth; 0 means don't draw edges.
          *xerr*            if not None, will be used to generate
                            errorbars on the bar chart
          *yerr*            if not None, will be used to generate
                            errorbars on the bar chart
          *ecolor*          specifies the color of any errorbar
          *capsize*         (default 3) determines the length in
                            points of the error bar caps
          *align*           'edge' (default) | 'center'
          *log*             [False|True] False (default) leaves the
                            horizontal axis as-is; True sets it to log
                            scale
          ===============   ==========================================

        Setting *align* = 'edge' aligns bars by their bottom edges in
        bottom, while *align* = 'center' interprets these values as
        the *y* coordinates of the bar centers.

        The optional arguments *color*, *edgecolor*, *linewidth*,
        *xerr*, and *yerr* can be either scalars or sequences of
        length equal to the number of bars.  This enables you to use
        barh as the basis for stacked bar charts, or candlestick
        plots.

        other optional kwargs:

        %(Rectangle)s
        R�R�R�R�R^Ra(Rr(R2R�R�R�R�RIR�((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pytbarhZsE!cK s6tj|||�}|j|dt�|j�|S(s�
        Plot horizontal bars.

        Call signature::

          broken_barh(self, xranges, yrange, **kwargs)

        A collection of horizontal bars spanning *yrange* with a sequence of
        *xranges*.

        Required arguments:

          =========   ==============================
          Argument    Description
          =========   ==============================
          *xranges*   sequence of (*xmin*, *xwidth*)
          *yrange*    sequence of (*ymin*, *ywidth*)
          =========   ==============================

        kwargs are
        :class:`matplotlib.collections.BrokenBarHCollection`
        properties:

        %(BrokenBarHCollection)s

        these can either be a single argument, ie::

          facecolors = 'black'

        or a sequence of arguments for the various bars, ie::

          facecolors = ('black', 'red', 'green')

        **Example:**

        .. plot:: mpl_examples/pylab_examples/broken_barh.py
        R�(RtBrokenBarHCollectionR�RR�(R2txrangestyrangeRItcol((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pytbroken_barh�s'
sb-sr-cC s1|j}|js|j�n|jt�|j|||dd�\}	|dkr_d}ng}
xTt||�D]C\}}|j||g||g|dd�\}
|
j|
�quW|jtj	|�tj
|�g||g|dd�\}|j|�t|	|
|fd|�}|j|�|S(s�
        Create a stem plot.

        Call signature::

          stem(x, y, linefmt='b-', markerfmt='bo', basefmt='r-')

        A stem plot plots vertical lines (using *linefmt*) at each *x*
        location from the baseline to *y*, and places a marker there
        using *markerfmt*.  A horizontal line at 0 is is plotted using
        *basefmt*.

        Return value is a tuple (*markerline*, *stemlines*,
        *baseline*).

        .. seealso::
            This `document <http://www.mathworks.com/help/techdoc/ref/stem.html>`_
            for details.


        **Example:**

        .. plot:: mpl_examples/pylab_examples/stem_plot.py
        R�RAiN(
R�R�RdRR.RRuR{R[RgRhRR�(R2R`Ratlinefmtt	markerfmttbasefmtR�R�t
remember_holdt
markerlinet	stemlinesR!RR�R%tstem_container((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pytstem�s&		

	*
	
g333333�?g�������?c
C s�|jt�tj|�jtj�}t|j��}|dkr[tj||�}n|dkr}dgt
|�}n|dkr�dgt
|�}n|dkr�d}nd }|
dkr�d}
n|	dkr�d}
n
|	d}
g}g}g}d}x�tj|||�D]m\}}}|\}}|
|}d
t
jd|
|}||t
j|�7}||t
j|�7}tj||f|
d|
d|d||t
|��}|j|�|j|�|j|�|r8tj|dd�}|jd|j��|jd�|j|�n|||
t
j|�}|||
t
j|�}|dkr�dp�d}|j|||dtdd|dd�}|j|�|dk	ry|||
t
j|�}|||
t
j|�}t|�r|d|}n+t|�r<|d|�}ntd��|j|||dddd�}|j|�n|}
|d7}qW|jd!�|jd"�|j g�|j!g�|dkr�||fS|||fSdS(#sD
        Plot a pie chart.

        Call signature::

          pie(x, explode=None, labels=None,
              colors=('b', 'g', 'r', 'c', 'm', 'y', 'k', 'w'),
              autopct=None, pctdistance=0.6, shadow=False,
              labeldistance=1.1, startangle=None, radius=None)

        Make a pie chart of array *x*.  The fractional area of each
        wedge is given by x/sum(x).  If sum(x) <= 1, then the values
        of x give the fractional area directly and the array will not
        be normalized.  The wedges are plotted counterclockwise,
        by default starting from the x-axis.

        Keyword arguments:

          *explode*: [ *None* | len(x) sequence ]
            If not *None*, is a ``len(x)`` array which specifies the
            fraction of the radius with which to offset each wedge.

          *colors*: [ *None* | color sequence ]
            A sequence of matplotlib color args through which the pie chart
            will cycle.

          *labels*: [ *None* | len(x) sequence of strings ]
            A sequence of strings providing the labels for each wedge

          *autopct*: [ *None* | format string | format function ]
            If not *None*, is a string or function used to label the
            wedges with their numeric value.  The label will be placed inside
            the wedge.  If it is a format string, the label will be ``fmt%pct``.
            If it is a function, it will be called.

          *pctdistance*: scalar
            The ratio between the center of each pie slice and the
            start of the text generated by *autopct*.  Ignored if
            *autopct* is *None*; default is 0.6.

          *labeldistance*: scalar
            The radial distance at which the pie labels are drawn

          *shadow*: [ *False* | *True* ]
            Draw a shadow beneath the pie.

          *startangle*: [ *None* | Offset angle ]
            If not *None*, rotates the start of the pie chart by *angle*
            degrees counterclockwise from the x-axis.

          *radius*: [ *None* | scalar ]
          The radius of the pie, if *radius* is *None* it will be set to 1.

        The pie chart will probably look best if the figure and axes are
        square.  Eg.::

          figure(figsize=(8,8))
          ax = axes([0.1, 0.1, 0.8, 0.8])

        Return value:
          If *autopct* is *None*, return the tuple (*patches*, *texts*):

            - *patches* is a sequence of
              :class:`matplotlib.patches.Wedge` instances

            - *texts* is a list of the label
              :class:`matplotlib.text.Text` instances.

          If *autopct* is not *None*, return the tuple (*patches*,
          *texts*, *autotexts*), where *patches* and *texts* are as
          above, and *autotexts* is a list of
          :class:`~matplotlib.text.Text` instances for the numeric
          labels.
        iRiRctgRMR%R
RaR}R�g�v@ig�?Rkg{�G�z��g�������?RAR�R�R!sxtick.labelsizeR&R$R�gY@s+autopct must be callable or a format stringg�g�?N(RcR�RMR%R
RaR}R�(ii(g�g�?(g�g�?("RYR
R[R�tastypetfloat32RwtsumtdivideRRtR)tsafezipRstpitcostsinRotWedgeR{R�R�tShadowR.t
get_zorderR"RRR�RNR.R:R�R�(R2R`texplodeR�Rtautopcttpctdistancetshadowt
labeldistancet
startangleR�tsxR�ttheta1R�tslicest	autotextsRntfracR�texplRattheta2tthetamR�tshadR�R�tlabel_alignmentRNR((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pytpies�M
			
%
#




	
		




t-ic1K s�
|dkrtd��n|jd|d|d|�|jsM|j�n|j}t|_|jdd�}t|�s�|g}nt|�s�|g}n|dk	r�t|�s�|gt|�}q�n|dk	rt|�s|gt|�}qnd}|	r?|dk	r?|j	|||dd|�\}ng}g}idd6}|rk||d<n:d|kr�|d|d<nd	|kr�|d	|d	<nd
|kr�|d
|d
<nt|
�s�t
j|
gt|�t�}
nt
j|
t�}
t|�s0t
j
|gt|�t�}nt
j|t�}t|�spt
j
|gt|�t�}nt
j|t�}t|
�s�t
j
|
gt|�t�}
nt
j|
t�}
t
jt|��|dk}d�}|dkr�id
|d6dd6}|dk	r'||d<nd|krD|d|d<nd|kra|d|d<nd
|kr�|d
|d
<q�n|dk	r�t|�r4t|�d
kr4t|d�r4t|d�r4gtj||d�D]\}}||^q�}gtj||d�D]\}}||^q}n^gtj||�D]\}}||^qG}gtj||�D]\}}||^qv}||||�\}}||||�\} }!|j|j|| |!|��|dkr�|j�r�|||||@�\}"}#|j|j	|"|#dddtj|��|}|||||@�\}"}#|j|j	|"|#d|��n7||||�\}"}#|j|j	|"|#d|��|
j�rT||||
|@�\}$}%|j|j	|$|%dddtj|��|
}
||||
|@�\}$}%|j|j	|$|%d|��q�||||�\}$}%|j|j	|$|%d|��q�n|dk	r�	t|�rDt|�d
krDt|d�rDt|d�rDgtj||d�D]\}&}|&|^q�}'gtj||d�D]\}&}|&|^q%}(n^gtj||�D]\}&}|&|^qW}'gtj||�D]\}&}|&|^q�}(|||'|�\})}||'|(|�\} }*|j|j|)| |*|��|dkr�	|
j�r�|||'|
|@�\}+},|j|j	|+|,dddtj|��|
}
|||'|
|@�\}+},|j|j	|+|,d|��n7|||'|�\}+},|j|j	|+|,d|��|j�rd	|||(||@�\}-}.|j|j	|-|.dddtj|��|}|||(||@�\}-}.|j|j	|-|.d|��q�	|||(|�\}-}.|j|j	|-|.d|��q�	n|	r�	|dk	r�	|j	||||�\}n|dkr
|dkr�	|jjj�}q
|j�}nx|D]}/|/j|�q
Wx|D]}/|/j|�q3
W|j �||_t!|t"|�t"|�fd|dk	d|dk	d|�}0|j#j|0�|0S(s�
        Plot an errorbar graph.

        Call signature::

          errorbar(x, y, yerr=None, xerr=None,
                   fmt='-', ecolor=None, elinewidth=None, capsize=3,
                   barsabove=False, lolims=False, uplims=False,
                   xlolims=False, xuplims=False, errorevery=1,
                   capthick=None)

        Plot *x* versus *y* with error deltas in *yerr* and *xerr*.
        Vertical errorbars are plotted if *yerr* is not *None*.
        Horizontal errorbars are plotted if *xerr* is not *None*.

        *x*, *y*, *xerr*, and *yerr* can all be scalars, which plots a
        single error bar at *x*, *y*.

        Optional keyword arguments:

          *xerr*/*yerr*: [ scalar | N, Nx1, or 2xN array-like ]
            If a scalar number, len(N) array-like object, or an Nx1 array-like
            object, errorbars are drawn +/- value.

            If a sequence of shape 2xN, errorbars are drawn at -row1 and
            +row2

          *fmt*: '-'
            The plot format symbol. If *fmt* is *None*, only the
            errorbars are plotted.  This is used for adding
            errorbars to a bar plot, for example.

          *ecolor*: [ *None* | mpl color ]
            A matplotlib color arg which gives the color the errorbar lines;
            if *None*, use the marker color.

          *elinewidth*: scalar
            The linewidth of the errorbar lines. If *None*, use the linewidth.

          *capsize*: scalar
            The length of the error bar caps in points

          *capthick*: scalar
            An alias kwarg to *markeredgewidth* (a.k.a. - *mew*). This
            setting is a more sensible name for the property that
            controls the thickness of the error bar cap in points. For
            backwards compatibility, if *mew* or *markeredgewidth* are given,
            then they will over-ride *capthick*.  This may change in future
            releases.

          *barsabove*: [ *True* | *False* ]
            if *True*, will plot the errorbars above the plot
            symbols. Default is below.

          *lolims* / *uplims* / *xlolims* / *xuplims*: [ *False* | *True* ]
            These arguments can be used to indicate that a value gives
            only upper/lower limits. In that case a caret symbol is
            used to indicate this. lims-arguments may be of the same
            type as *xerr* and *yerr*.

          *errorevery*: positive integer
            subsamples the errorbars. Eg if everyerror=5, errorbars for every
            5-th datapoint will be plotted. The data plot itself still shows
            all data points.

        All other keyword arguments are passed on to the plot command for the
        markers. For example, this code makes big red squares with
        thick green edges::

          x,y,yerr = rand(3,10)
          errorbar(x, y, yerr, marker='s',
                   mfc='red', mec='green', ms=20, mew=4)

        where *mfc*, *mec*, *ms* and *mew* are aliases for the longer
        property names, *markerfacecolor*, *markeredgecolor*, *markersize*
        and *markeredgewith*.

        valid kwargs for the marker properties are

        %(Line2D)s

        Returns (*plotline*, *caplines*, *barlinecols*):

            *plotline*: :class:`~matplotlib.lines.Line2D` instance
                *x*, *y* plot markers and/or line

            *caplines*: list of error bar cap
                :class:`~matplotlib.lines.Line2D` instances
            *barlinecols*: list of
                :class:`~matplotlib.collections.LineCollection` instances for
                the horizontal and vertical error ranges.

        **Example:**

        .. plot:: mpl_examples/pylab_examples/errorbar_demo.py

        is0errorevery has to be a strictly positive integerRRRIR�RARVR�R�icS sfgt||�D]\}}|r|^q}gt||�D]\}}|r>|^q>}||fS(so
            return xs[mask], ys[mask] where mask is True but xs and
            ys are not arrays
            (Ru(R�R�R,R!RcR((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pytxywhereVs..itmstmarkeredgewidthtmewtlsRR"sk|tk_thas_xerrthas_yerrN($RRR�R�RRCRR�RtR.R[R�RR�RvR)R�R{RR�R-Rt	CARETLEFTt
CARETRIGHTR$t	CARETDOWNtCARETUPR@R;Rft	get_colort	set_colorR�RR�RF(1R2R`RaRXRWR RZt
elinewidthR[t	barsabovetlolimstuplimstxlolimstxuplimst
erroreverytcapthickRIRpR�tl0tbarcolstcaplinestlines_kwt	everymaskR�tplot_kwR!tthiserrR�R�tyoR�tlotrotleftlotylotrightuptyupRR�R~txotuotxlotlowerlotxuptupperupR�terrorbar_container((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyRf�s$h	
		$

""""	

 03,,""% 03,,""%


		sb+g�?c= s�dd���fd�}�js1�j�n�j}
gggggf\}}}}}t|d�rKt|j�dkr�t|dd�r�t|�}qH|g}qKt|j�dkr<|j\}}|dkr�|g}qH|dkr
|j�g}qHgt|�D]}|dd�|f^q}qKtd	��nt|dd
�sj|g}nt|�}d}d}|
dk	r
t|
d�r�t|
j�dkr�t|��q|
jd|krt|��qq
t|
�|kr
t|��q
nd
}d}d}|dk	rt|d�r�t|j�dkr[t|��q|jd|kr}t|��q|jddkrt|��qqt|�|kr�t|��nx>|D]3}|dk	r�t|�dkr�t|��q�q�Wn|dkr&t
d|d�}n|dkrgt|�t|�}tdt|d�d�}nt
|t�s�t
|t�r�tj|ft�|}n�jt�x�t|�D]�\}}tj||�}t|�}|dkr�q�ntj|dddg�\}} }!|
dk	rH|
|dk	rH|
|} qHn|!|}"|!||"}#tj||#k|�}$t|$�dkr�|!}$nt|$�}$|||"}%tj||%k|�}&t|&�dkr�|}&nt|&�}&g}'g}(g})g}*t|�dkr}tj||$k|�}'tj||&k|�}(tj|'jd�|})tj|(jd�|}*n|||d}+|||d},tjd�|}-|||d}.|||d}/|.|/g}0| | g}1|r�|dk	r;||dk	r;tj||�}2tj||�}3n||| |"|	�\}3}2|+|,|,|/|,|,|+|+|.|+|+g}4|||3| |2|!|!|2| |3|g}5|.|/g}6| | g}1n6|+|,|,|+|+g}4|||!|!|g}5|+|,g}6d����fd��|r7�fd�}7�fd�}8n�fd�}7�fd�}8|rdd}9nd}9|j|7|-||&gd|-|!|$gd��|j|7|0|$|$gd |0|&|&gd ��|r�|j|8|4|5��n|j|7|4|5d!��|j|7|6|1|9d"��|j|7|)|'||*|(|��q�W|r]�j�j}:};n�j�j}:};t|�dt|�df}<|;|<�|:|��j|
�td#|d$|d%|d&|d'|�S((s�
        Make a box and whisker plot.

        Call signature::

          boxplot(x, notch=False, sym='+', vert=True, whis=1.5,
                  positions=None, widths=None, patch_artist=False,
                  bootstrap=None, usermedians=None, conf_intervals=None)

        Make a box and whisker plot for each column of *x* or each
        vector in sequence *x*.  The box extends from the lower to
        upper quartile values of the data, with a line at the median.
        The whiskers extend from the box to show the range of the
        data.  Flier points are those past the end of the whiskers.

        Function Arguments:

          *x* :
            Array or a sequence of vectors.

          *notch* : [ False (default) | True ]
            If False (default), produces a rectangular box plot.
            If True, will produce a notched box plot

          *sym* : [ default 'b+' ]
            The default symbol for flier points.
            Enter an empty string ('') if you don't want to show fliers.

          *vert* : [ False | True (default) ]
            If True (default), makes the boxes vertical.
            If False, makes horizontal boxes.

          *whis* : [ default 1.5 ]
            Defines the length of the whiskers as a function of the inner
            quartile range.  They extend to the most extreme data point
            within ( ``whis*(75%-25%)`` ) data range.

          *bootstrap* : [ *None* (default) | integer ]
            Specifies whether to bootstrap the confidence intervals
            around the median for notched boxplots. If bootstrap==None,
            no bootstrapping is performed, and notches are calculated
            using a Gaussian-based asymptotic approximation  (see McGill, R.,
            Tukey, J.W., and Larsen, W.A., 1978, and Kendall and Stuart,
            1967). Otherwise, bootstrap specifies the number of times to
            bootstrap the median to determine it's 95% confidence intervals.
            Values between 1000 and 10000 are recommended.

          *usermedians* : [ default None ]
            An array or sequence whose first dimension (or length) is
            compatible with *x*. This overrides the medians computed by
            matplotlib for each element of *usermedians* that is not None.
            When an element of *usermedians* == None, the median will be
            computed directly as normal.

          *conf_intervals* : [ default None ]
            Array or sequence whose first dimension (or length) is compatible
            with *x* and whose second dimension is 2. When the current element
            of *conf_intervals* is not None, the notch locations computed by
            matplotlib are overridden (assuming notch is True). When an element of
            *conf_intervals* is None, boxplot compute notches the method
            specified by the other kwargs (e.g. *bootstrap*).

          *positions* : [ default 1,2,...,n ]
            Sets the horizontal positions of the boxes. The ticks and limits
            are automatically set to match the positions.

          *widths* : [ default 0.5 ]
            Either a scalar or a vector and sets the width of each box. The
            default is 0.5, or ``0.15*(distance between extreme positions)``
            if that is smaller.

          *patch_artist* : [ False (default) | True ]
            If False produces boxes with the Line2D artist
            If True produces boxes with the Patch artist

        Returns a dictionary mapping each component of the boxplot
        to a list of the :class:`matplotlib.lines.Line2D`
        instances created. That dictionary has the following keys
        (assuming vertical boxplots):

            - boxes: the main body of the boxplot showing the quartiles
              and the median's confidence intervals if enabled.
            - medians: horizonal lines at the median of each box.
            - whiskers: the vertical lines extending to the most extreme,
              n-outlier data points.
            - caps: the horizontal lines at the ends of the whiskers.
            - fliers: points representing data that extend beyone the
              whiskers (outliers).

        **Example:**

        .. plot:: pyplots/boxplot_demo.py
        i�c	S s�t|�}ddg}tj|�}xPt|�D]B}tjjd|d|�}||}tj|d�||<q4Wtj||�}|S(Ng@g`X@iii2(RtR[tzerostrangetrandomtrandom_integerstmlabtprctile(	tdatatNtMt
percentiletestimateRitbsIndextbsDatatCI((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pytbootstrapMedianLs
c s�|dk	r5�|d|�}|d}|d}nBt|�}|d|tj|�}|d|tj|�}||fS(NR�iig��Q��?(RRtR[R�(R�tmedtiqt	bootstrapR�t	notch_mint	notch_maxR�(R�(s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pytcomputeConfIntervalXs

R]iiiNs*input x can have no more than 2 dimensionst__len__s5usermedians must either be a list/tuple or a 1d arrays-usermedians' length must be compatible with xs<conf_intervals must either be a list of tuples or a 2d arrays0conf_intervals' length must be compatible with xs8each conf_interval, if specificied, must have two valuesg333333�?g�?g�?ii2iKg�?cS s�g}x0t||�D]\}}|j||f�qW|jd�tjjgtjjgt|�dtjjg}||fS(Nii(ii(RuR{tmpathtPathtMOVETOtLINETORtt	CLOSEPOLY(R�R�R�txityitcodes((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pytto_vcs
'c sJ�||�\}}tj||�}tj|�}�j|�|gS(N(R�R�Rot	PathPatchR�(R�R�R�R�R�RN(R2R�(s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyt
patch_lists

c s
�j|�S(N(R.(RH(R2(s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pytdoplotsc s
�||�S(N((R�R�(R�(s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pytdopatchsc s`g}xJtdt|�d�D]0}|j||d||||dg�qW�j|�S(Niiii(RyRtR-R.(RHtshuffledRn(R2(s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyR�s.c s||}}�||�S(N((R�R�(R�(s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyR�s
R}RMsb--sk-sb-R�twhiskerstcapstboxestmedianstfliers(R�R�RMRtR]RctravelRyRRR�RzR�R�RwRR[tonesRdRt	enumerateR�R�tcompressR-R�R.R�R:Ru(=R2R`tnotchtsymtverttwhist	positionstwidthstpatch_artistR�tusermedianstconf_intervalsR�t
holdStatusR�R�R�R�R�tnrtncRnRwtmsg1tmsg2tmsg3tcitdistanceR
R1trowtq1R�tq3R�thi_valtwisk_hitlo_valtwisk_lotflier_hitflier_lot
flier_hi_xt
flier_lo_xt	box_x_mint	box_x_maxtwisk_xt	cap_x_mint	cap_x_maxtcap_xtmed_yR�R�tbox_xtbox_ytmed_xR�R�tmedian_colortsettickstsetlimt	newlimits((R�R�R2R�s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pytboxplot�s`	
	$2

$
					 


iRcR7cK s�|js|j�n|jd|d|d|�|j|�}|j|�}tjj|�}tjj|�}|j|jkr�t	d��ntjj|�}t
|�p�t|�}|s�tj|�}|j|jkr�tjj|�}q�nt
j||||�\}}}}|}|rFtjj||
�}n0|j|jkrad}ntjj||
�}|r�d}nd}tjdt�d}d}|dkr�|
dk	r�|
df}d}
ntj|�}|j�j|j��}|j�sd}ntj|f|d	|d
|d|dt||�d
|jd|j ��}|j!t"j#��|j$|
�|j%|�|dkr|dk	r�n|j&tj'|��|j(|�|j)|�|dk	s�|	dk	r|j*||	�q|j+�n|j,dkr<|jdkr<|j-d�n|j.dkrj|jdkrj|j/d�n|j0|�|j1�|S(s�
        Make a scatter plot.

        Call signatures::

          scatter(x, y, s=20, c='b', marker='o', cmap=None, norm=None,
                  vmin=None, vmax=None, alpha=None, linewidths=None,
                  verts=None, **kwargs)

        Make a scatter plot of *x* versus *y*, where *x*, *y* are
        converted to 1-D sequences which must be of the same length, *N*.

        Keyword arguments:

          *s*:
            size in points^2.  It is a scalar or an array of the same
            length as *x* and *y*.

          *c*:
            a color. *c* can be a single color format string, or a
            sequence of color specifications of length *N*, or a
            sequence of *N* numbers to be mapped to colors using the
            *cmap* and *norm* specified via kwargs (see below). Note
            that *c* should not be a single numeric RGB or RGBA
            sequence because that is indistinguishable from an array
            of values to be colormapped.  *c* can be a 2-D array in
            which the rows are RGB or RGBA, however.

          *marker*:
            can be one of:

            %(MarkerTable)s

        Any or all of *x*, *y*, *s*, and *c* may be masked arrays, in
        which case all masks will be combined and only unmasked points
        will be plotted.

        Other keyword arguments: the color mapping and normalization
        arguments will be used only if *c* is an array of floats.

          *cmap*: [ *None* | Colormap ]
            A :class:`matplotlib.colors.Colormap` instance or registered
            name. If *None*, defaults to rc ``image.cmap``. *cmap* is
            only used if *c* is an array of floats.

          *norm*: [ *None* | Normalize ]
            A :class:`matplotlib.colors.Normalize` instance is used to
            scale luminance data to 0, 1. If *None*, use the default
            :func:`normalize`. *norm* is only used if *c* is an array
            of floats.

          *vmin*/*vmax*:
            *vmin* and *vmax* are used in conjunction with norm to
            normalize luminance data.  If either are *None*, the min and
            max of the color array *C* is used.  Note if you pass a
            *norm* instance, your settings for *vmin* and *vmax* will
            be ignored.

          *alpha*: ``0 <= scalar <= 1``  or *None*
            The alpha value for the patches

          *linewidths*: [ *None* | scalar | sequence ]
            If *None*, defaults to (lines.linewidth,).  Note that this
            is a tuple, and if you set the linewidths argument you
            must set it as a sequence of floats, as required by
            :class:`~matplotlib.collections.RegularPolyCollection`.

        Optional kwargs control the
        :class:`~matplotlib.collections.Collection` properties; in
        particular:

          *edgecolors*:
            The string 'none' to plot faces with no outlines

          *facecolors*:
            The string 'none' to plot unfilled outlines

        Here are the standard descriptions of all the
        :class:`~matplotlib.collections.Collection` kwargs:

        %(Collection)s

        A :class:`~matplotlib.collections.Collection` instance is
        returned.
        RRRIsx and y must be the same sizetnones0replace "faceted=False" with "edgecolors='none'"itfacet
facecolorst
edgecolorst
linewidthstoffsetsttransOffsetR�g�������?N(2R�R�RRYRZR[RR�R!RRtis_sequence_of_stringst
asanyarrayR)tdelete_masked_pointsRRRdRR(R)R*tmmarkerstMarkerStyleR�R�Rt	is_filledRtPathCollectionRuRCR�RR�R�t	set_alphaR�t	set_arrayR�tset_cmaptset_normtset_climtautoscale_NoneR=RR>RR�R�(R2R`RaRR%R"tcmaptnormtvmintvmaxR�R&tfacetedR�RItc_is_stringytscalesRR%R�tsymstylet
marker_objR�R�((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pytscatterEs�[	
$				






idR R"cD sw|js|j�n|jd|d|d|�tj|||�\}}}t|�rk|\}}n|}t|tjd��}t	j
|t�}t	j
|t�}|dkr�t	j|dk�r�t
d��nt	j|�}n|dkr2t	j|dk�r t
d��nt	j|�}n|dk	rS|\}}}}n<t	j|�}t	j|�}t	j|�}t	j|�}d	||}||8}||7}|||}|||}|r�|j�}|j�}n|||}|||}t	j|�jt�}t	j|�jt�} t	j|�jt�}!t	j|�jt�}"|d
}#|d
}$|}%|}&|#|$|%|&}'||dd|| d}(||!d
dd||"d
d})|(|)k}*|dkr6t	j|'�}+|+|#|$ },|+|#|$}-|#|$f|,_|%|&f|-_x�tt|��D]�}.|*|.r�||.dkr)||.|#kr)| |.dkr)| |.|$kr)|,||.| |.fcd
7<q)qT|!|.dkrT|!|.|%krT|"|.dkrT|"|.|&krT|-|!|.|"|.fcd
7<qTqTW|dk	r�xWt|#�D]I}.x@t|$�D]2}/|,|.|/f|krYt	j|,|.|/f<qYqYWqFWxZt|%�D]I}.x@t|&�D]2}/|-|.|/f|kr�t	j|-|.|/f<q�q�Wq�Wnt	j|,jt�j�|-jt�j�f�}+t	j|+�}0n�|dkrKd}nt	j|#|$fdt�},x;t|#�D]-}.x$t|$�D]}/g|,|.|/f<q�WqsWt	j|%|&fdt�}-x;t|%�D]-}.x$t|&�D]}/g|-|.|/f<q�Wq�Wx�tt|��D]�}.|*|.r�||.dkr�||.|#kr�| |.dkr�| |.|$kr�|,||.| |.fj ||.�q�q|!|.dkr|!|.|%kr|"|.dkr|"|.|&kr|-|!|.|"|.fj ||.�qqWxyt|#�D]k}.xbt|$�D]T}/|,|.|/f}1t|1�|krT�|1�|,|.|/f<qt	j|,|.|/f<qWqWxyt|%�D]k}.xbt|&�D]T}/|-|.|/f}1t|1�|kr��|1�|-|.|/f<q�t	j|-|.|/f<q�Wq|Wt	j|,jt�j�|-jt�j�f�}+t	j|+�}0t	j|'dft�}2t	j!t	j"|#�|$�|2d|#|$�df<t	j#t	j"|$�|#�|2d|#|$�d
f<t	j!t	j"|%�d
|&�|2|#|$d�df<t	j#t	j"|&�|%�d
|2|#|$d�d
f<|2dd�dfc|9<|2dd�d
fc|9<|2dd�dfc|7<|2dd�d
fc|7<|2|0dd�f}2|+|0}+|dkr�	d|2dd�df|2dd�df<d|}d|}|j$d�n|dkrN
d|2dd�d
f|2dd�d
f<d|}d|}|j%d�nt	jd%t�}3|t	j
d
d
ddddg�|3dd�df<|t	j
dd
dd
ddg�d|3dd�d
f<|dkr�
d}nt&j'|3gd|d|d|2dt(j)�dd�}4t*|
t+j,�rM|+dkj�rM|+d
7}+qMn|
dk	r�|
j-dkr�|
j.dkr�|
j/|+�q�n|dkr�t	j|+d
�}+n~|dkr*t|�s	t0|+�t1|+�}5}6|d
8}|5|6|5t	j"|�|}nt	j2|�}|j3|+�}+n|
dk	r9n|4j4|+�|4j5|	�|4j6|
�|4j7|
�|4j8|�|dk	s�|dk	r�|4j9||�n
|4j:�||f||ff}7|j;|7�|j<dt=�|j>|4�|s�|4S|dkr
t	j?t|��}n�fd�}8t	j@|||�}9|8|||9�}:t	j|:�};gg}<}=x�tA|:�D]�\}.}>|9|.}?|.t|9�d
kr�
|9|.d
}@n|?t	jB|9�d }@|;|.s�
q
n|<j |?df|?d!f|@d!f|@dfg�|=j |>�q
Wt	j
|=�}=t(jC|jD|jE�}At&j'|<d"|Add���j4|=��j5|	��j6|
��j7|
��j8|�|j>��t	j@|||�}9|8|||9�}Bt	j|B�};gg}<}=x�tA|B�D]�\}.}>|9|.}?|.t|9�d
krC|9|.d
}@n|?t	jB|9�d }@|;|.sjqn|<j d|?fd|@fd!|@fd!|?fg�|=j |>�qWt	j
|=�}=t(jC|jE|jD�}At&j'|<d"|Add���j4|=��j5|	��j6|
��j7|
��j8|�|j>���|4_F�|4_G��fd#�}C|4jHjId$|C�|4S(&sv
        Make a hexagonal binning plot.

        Call signature::

           hexbin(x, y, C = None, gridsize = 100, bins = None,
                  xscale = 'linear', yscale = 'linear',
                  cmap=None, norm=None, vmin=None, vmax=None,
                  alpha=None, linewidths=None, edgecolors='none'
                  reduce_C_function = np.mean, mincnt=None, marginals=True
                  **kwargs)

        Make a hexagonal binning plot of *x* versus *y*, where *x*,
        *y* are 1-D sequences of the same length, *N*. If *C* is *None*
        (the default), this is a histogram of the number of occurences
        of the observations at (x[i],y[i]).

        If *C* is specified, it specifies values at the coordinate
        (x[i],y[i]). These values are accumulated for each hexagonal
        bin and then reduced according to *reduce_C_function*, which
        defaults to numpy's mean function (np.mean). (If *C* is
        specified, it must also be a 1-D sequence of the same length
        as *x* and *y*.)

        *x*, *y* and/or *C* may be masked arrays, in which case only
        unmasked points will be plotted.

        Optional keyword arguments:

        *gridsize*: [ 100 | integer ]
           The number of hexagons in the *x*-direction, default is
           100. The corresponding number of hexagons in the
           *y*-direction is chosen such that the hexagons are
           approximately regular. Alternatively, gridsize can be a
           tuple with two elements specifying the number of hexagons
           in the *x*-direction and the *y*-direction.

        *bins*: [ *None* | 'log' | integer | sequence ]
           If *None*, no binning is applied; the color of each hexagon
           directly corresponds to its count value.

           If 'log', use a logarithmic scale for the color
           map. Internally, :math:`log_{10}(i+1)` is used to
           determine the hexagon color.

           If an integer, divide the counts in the specified number
           of bins, and color the hexagons accordingly.

           If a sequence of values, the values of the lower bound of
           the bins to be used.

        *xscale*: [ 'linear' | 'log' ]
           Use a linear or log10 scale on the horizontal axis.

        *scale*: [ 'linear' | 'log' ]
           Use a linear or log10 scale on the vertical axis.

        *mincnt*: [ *None* | a positive integer ]
           If not *None*, only display cells with more than *mincnt*
           number of points in the cell

        *marginals*: [ *True* | *False* ]
           if marginals is *True*, plot the marginal density as
           colormapped rectagles along the bottom of the x-axis and
           left of the y-axis

        *extent*: [ *None* | scalars (left, right, bottom, top) ]
           The limits of the bins. The default assigns the limits
           based on gridsize, x, y, xscale and yscale.

        Other keyword arguments controlling color mapping and normalization
        arguments:

        *cmap*: [ *None* | Colormap ]
           a :class:`matplotlib.colors.Colormap` instance. If *None*,
           defaults to rc ``image.cmap``.

        *norm*: [ *None* | Normalize ]
           :class:`matplotlib.colors.Normalize` instance is used to
           scale luminance data to 0,1.

        *vmin* / *vmax*: scalar
           *vmin* and *vmax* are used in conjunction with *norm* to normalize
           luminance data.  If either are *None*, the min and max of the color
           array *C* is used.  Note if you pass a norm instance, your settings
           for *vmin* and *vmax* will be ignored.

        *alpha*: scalar between 0 and 1, or *None*
           the alpha value for the patches

        *linewidths*: [ *None* | scalar ]
           If *None*, defaults to rc lines.linewidth. Note that this
           is a tuple, and if you set the linewidths argument you
           must set it as a sequence of floats, as required by
           :class:`~matplotlib.collections.RegularPolyCollection`.

        Other keyword arguments controlling the Collection properties:

        *edgecolors*: [ *None* | ``'none'`` | mpl color | color sequence ]
           If ``'none'``, draws the edges in the same color as the fill color.
           This is the default, as it avoids unsightly unpainted pixels
           between the hexagons.

           If *None*, draws the outlines in the default color.

           If a matplotlib color arg or sequence of rgba tuples, draws the
           outlines in the specified color.

        Here are the standard descriptions of all the
        :class:`~matplotlib.collections.Collection` kwargs:

        %(Collection)s

        The return value is a
        :class:`~matplotlib.collections.PolyCollection` instance; use
        :meth:`~matplotlib.collections.PolyCollection.get_array` on
        this :class:`~matplotlib.collections.PolyCollection` to get
        the counts in each hexagon. If *marginals* is *True*, horizontal
        bar and vertical bar (both PolyCollections) will be attached
        to the return collection as attributes *hbar* and *vbar*.


        **Example:**

        .. plot:: mpl_examples/pylab_examples/hexbin_demo.py

        RRRIiR~gs8x contains non-positive values, so can not be log-scaleds8y contains non-positive values, so can not be log-scaledg��&�.>iig@g�?iRsNi
ig�g�?g�R"R#R%R&R'R(toffset_positionR�R�c s{|j|�jdt|�d�}tjt|��}x:tt|��D]&}�|||k�}|||<qMW|S(Nii(tsearchsortedtclipRtR[R�R�(R`RatcoarsetindtmusRntmu(treduce_C_function(s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyt
coarse_binis%i����g�������?R�c sP�j|j���j|j���j|j���j|j��dS(N(R2tget_cmapR4tget_clim(R�(thbartvbar(s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyt
on_changed�stchanged(ii(JR�R�RR)R+R�RRsR�R[R�RwR�RR|RRgRhR5R9R�tfloorR�R]RyRttnanRqR�tisnantemptytobjectR{trepeatRvttileR�R�RtPolyCollectionR�R�R�RtLogNormR8R9RR�RzR3RAR1R2R3R0R�R4R5R�R�RR�R�tlinspaceR�tdiffR�R�R�RKRLtcallbacksSMR�(DR2R`RaR�tgridsizetbinsR�R�textentR6R7R8R9R�R&R%RGtmincntt	marginalsRItnxtnyRuRvRwRxtpaddingR�tsytxorigtyorigtix1tiy1tix2tiy2tnx1tny1tnx2tny2Ritd1td2tbdisttaccumtlattice1tlattice2RnR�t	good_idxstvalsR'tpolygonR�tminimumtmaximumRRHRCtxcoarsetvalidR�tvaluesRRtthismintthismaxR�tycoarseRM((RKRGRLs5/usr/lib64/python2.7/site-packages/matplotlib/axes.pythexbins��	




&
  $  %!-	
  )  *-//33
*

*

59			
"










1








1





		cK sh|j|�}|j|�}|j|�}|j|�}tj|||||�}|j|�|S(s�
        Add an arrow to the axes.

        Call signature::

           arrow(x, y, dx, dy, **kwargs)

        Draws arrow on specified axis from (*x*, *y*) to (*x* + *dx*,
        *y* + *dy*). Uses FancyArrow patch to construct the arrow.

        Optional kwargs control the arrow construction and properties:

        %(FancyArrow)s

        **Example:**

        .. plot:: mpl_examples/pylab_examples/arrow_demo.py
        (RYRZRot
FancyArrowR�(R2R`RaR�R�RIR((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pytarrow�s
cO s#tj||�}|j|�|S(N(tmquivert	QuiverKeyR�(R2RHRhtqk((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyt	quiverkey�s
cO sY|js|j�ntj|||�}|j|t�|j|j�|j�|S(N(	R�R�R�tQuiverR�R
R�tXYR�(R2RHRhtq((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pytquiver�s	

cO stj||||�S(N(tmstackt	stackplot(R2R`RHRI((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyR��ss-|>g�������?cC sk|js|j�ntj|||||d|d|d|d|d|	d|
d|d|d	|
�	}|S(
NtdensityRVR#R6R7t	arrowsizet
arrowstylet	minlengthR�(R�R�tmstreamt
streamplot(R2R`RatuR~R�RVR#R6R7R�R�R�R�tstream_container((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyR��s	
	cO sY|js|j�ntj|||�}|j|�|j|j��|j�|S(sq
        %(barbs_doc)s

        **Example:**

        .. plot:: mpl_examples/pylab_examples/barb_demo.py
        (R�R�R�tBarbsR�R�tget_offsetsR�(R2RHRhRc((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pytbarbs�s		


cO sa|js|j�ng}x4|j||�D] }|j|�|j|�q/W|j�|S(s�
        Plot filled polygons.

        Call signature::

          fill(*args, **kwargs)

        *args* is a variable length argument, allowing for multiple
        *x*, *y* pairs with an optional color format string; see
        :func:`~matplotlib.pyplot.plot` for details on the argument
        parsing.  For example, to plot a polygon with vertices at *x*,
        *y* in blue.::

          ax.fill(x,y, 'b' )

        An arbitrary number of *x*, *y*, *color* groups can be specified::

          ax.fill(x1, y1, 'g', x2, y2, 'r')

        Return value is a list of :class:`~matplotlib.patches.Patch`
        instances that were added.

        The same color strings that :func:`~matplotlib.pyplot.plot`
        supports are supported by the fill format string.

        If you would like to fill below a curve, eg. shade a region
        between 0 and *y* along *x*, use :meth:`fill_between`

        The *closed* kwarg will close the polygon when *True* (default).

        kwargs control the :class:`~matplotlib.patches.Polygon` properties:

        %(Polygon)s

        **Example:**

        .. plot:: mpl_examples/pylab_examples/fill_demo.py

        (R�R�RAR�R{R�(R2RHRIR�tpoly((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyRls)	


c	 s�|jd�d�d|�|jd��tj|j����tj|j����tj|j�����jdkr�tj����n�jdkr�tj����n|d
kr�tj	t
��tj�}ntj|tj�}�j
�j
ko+�j
ko+|j
kns?td��nttjg���fD]}tj|�^qX�}|tjk	r�||M}ng}	x�tj|�D]y\}
}�|
|!}�|
|!}
�|
|!}t
|�s�q�nt
|�}tjd|ddftj�}|rS���fd�}||
�}||�}n(|d|df}|d|df}||d<|||d	<||d	|d	�df<|
|d	|d	�d	f<|d
d
d�||dd
�df<|d
d
d�||dd
�d	f<|	j|�q�Wtj|	|�}tj�|�|g�j}tj�|�|g�j}|jj||jdtdt�|jj||jdt dt�|j!|�|j"�|S(
s�
        Make filled polygons between two curves.

        Call signature::

          fill_between(x, y1, y2=0, where=None, **kwargs)

        Create a :class:`~matplotlib.collections.PolyCollection`
        filling the regions between *y1* and *y2* where
        ``where==True``

          *x* :
            An N-length array of the x data

          *y1* :
            An N-length array (or scalar) of the y data

          *y2* :
            An N-length array (or scalar) of the y data

          *where* :
            If *None*, default to fill between everywhere.  If not *None*,
            it is an N-length numpy boolean array and the fill will
            only happen over the regions where ``where==True``.

          *interpolate* :
            If *True*, interpolate between the two lines to find the
            precise point of intersection.  Otherwise, the start and
            end points of the filled region will only occur on explicit
            values in the *x* array.

          *kwargs* :
            Keyword args passed on to the
            :class:`~matplotlib.collections.PolyCollection`.

        kwargs control the :class:`~matplotlib.patches.Polygon` properties:

        %(PolyCollection)s

        .. plot:: mpl_examples/pylab_examples/fill_between_demo.py

        .. seealso::

            :meth:`fill_betweenx`
                for filling between two sets of x-values

        RRRIis$Argument dimensions are incompatibleic st|dd�}�||d!}�||d!�||d!}�||d!}t|�dkr�tjj|d�r��|�|fStjj|d�r��|�|fSn|j�}tjd||||�}tj|||�}||fS(Niii(RzRtR[Rt	is_maskedtargsorttinterp(RDtim1tx_valuestdiff_valuest	y1_valuest
diff_ordertdiff_root_xtdiff_root_y(R`R^R�(s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pytget_interp_point�s i����iNR�R�(#RRtmasked_invalidRYRZR^R[t	ones_likeRR�RtRR�R]Rtreducetmask_ortgetmasktnomaskR�tcontiguous_regionsR�RwR{RRVR�RR�R�R(RR
R�R�(R2R`R^R�RPtinterpolateRIRR,tpolystind0tind1txslicety1slicety2sliceR�tXR�R�tendR�tXY1tXY2((R`R^R�s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pytfill_betweenAsb337


#
''  



c	K s�|jd|d|d|�|jd|�tj|j|��}tj|j|��}tj|j|��}|jdkr�tj|�|}n|jdkr�tj|�|}n|d	kr�tj	t
|�tj�}ntj|tj�}|j
|j
ko+|j
ko+|j
kns?td��nttjg|||fD]}tj|�^qX�}|tjk	r�||M}ng}xHtj|�D]7\}	}
||	|
!}||	|
!}||	|
!}
t
|�s�q�nt
|�}tjd|ddftj�}|
d|df|d<|
d|df||d<||d|d�df<||d|d�df<|
d	d	d�||dd	�df<|d	d	d�||dd	�df<|j|�q�Wtj||�}tj||||g�j}tj||||g�j}|jj||jd
tdt�|jj||jd
t dt�|j!|�|j"�|S(s~
        Make filled polygons between two horizontal curves.

        Call signature::

          fill_between(y, x1, x2=0, where=None, **kwargs)

        Create a :class:`~matplotlib.collections.PolyCollection`
        filling the regions between *x1* and *x2* where
        ``where==True``

          *y* :
            An N-length array of the y data

          *x1* :
            An N-length array (or scalar) of the x data

          *x2* :
            An N-length array (or scalar) of the x data

          *where* :
             If *None*, default to fill between everywhere.  If not *None*,
             it is a N length numpy boolean array and the fill will
             only happen over the regions where ``where==True``

          *kwargs* :
            keyword args passed on to the
            :class:`~matplotlib.collections.PolyCollection`

        kwargs control the :class:`~matplotlib.patches.Polygon` properties:

        %(PolyCollection)s

        .. plot:: mpl_examples/pylab_examples/fill_betweenx_demo.py

        .. seealso::

            :meth:`fill_between`
                for filling between two sets of y-values

        RRRIis$Argument dimensions are incompatibleii����iNR�R�(#RRR�RZRYR^R[R�RR�RtRR�R]RR�R�R�R�R�R�R�RwR{RRVR�RR�R�R(RR
R�R�(R2RaRXR�RPRIRR,R�R�R�tyslicetx1slicetx2sliceR�R R�tX1YtX2Y((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyt
fill_betweenx�sV,37


#''  



g@c sE�js�j�n|dk	r%n|dkr>td}n�j|�tj�||||	|
d|d|
d||�}|j|�|j|��j	|�|j
�dkr�|j�j�n|dk	s�|dk	r�|j
||�n
|j�|j|�|j|j���jj|��fd�|_|S(sz
        Display an image on the axes.

        Call signature::

          imshow(X, cmap=None, norm=None, aspect=None, interpolation=None,
                 alpha=None, vmin=None, vmax=None, origin=None, extent=None,
                 **kwargs)

        Display the image in *X* to current axes.  *X* may be a float
        array, a uint8 array or a PIL image. If *X* is an array, *X*
        can have the following shapes:

        * MxN -- luminance (grayscale, float array only)
        * MxNx3 -- RGB (float or uint8 array)
        * MxNx4 -- RGBA (float or uint8 array)

        The value for each component of MxNx3 and MxNx4 float arrays should be
        in the range 0.0 to 1.0; MxN float arrays may be normalised.

        An :class:`matplotlib.image.AxesImage` instance is returned.

        Keyword arguments:

          *cmap*: [ *None* | Colormap ]
            A :class:`matplotlib.colors.Colormap` instance, eg. cm.jet.
            If *None*, default to rc ``image.cmap`` value.

            *cmap* is ignored when *X* has RGB(A) information

          *aspect*: [ *None* | 'auto' | 'equal' | scalar ]
            If 'auto', changes the image aspect ratio to match that of the axes

            If 'equal', and *extent* is *None*, changes the axes
            aspect ratio to match that of the image. If *extent* is
            not *None*, the axes aspect ratio is changed to match that
            of the extent.

            If *None*, default to rc ``image.aspect`` value.

          *interpolation*:

            Acceptable values are *None*, 'none', 'nearest', 'bilinear',
            'bicubic', 'spline16', 'spline36', 'hanning', 'hamming',
            'hermite', 'kaiser', 'quadric', 'catrom', 'gaussian',
            'bessel', 'mitchell', 'sinc', 'lanczos'

            If *interpolation* is *None*, default to rc
            ``image.interpolation``. See also the *filternorm* and
            *filterrad* parameters

            If *interpolation* is ``'none'``, then no interpolation is
            performed on the Agg, ps and pdf backends. Other backends
            will fall back to 'nearest'.

          *norm*: [ *None* | Normalize ]
            An :class:`matplotlib.colors.Normalize` instance; if
            *None*, default is ``normalization()``.  This scales
            luminance -> 0-1

            *norm* is only used for an MxN float array.

          *vmin*/*vmax*: [ *None* | scalar ]
            Used to scale a luminance image to 0-1.  If either is
            *None*, the min and max of the luminance values will be
            used.  Note if *norm* is not *None*, the settings for
            *vmin* and *vmax* will be ignored.

          *alpha*: scalar
            The alpha blending value, between 0 (transparent) and 1 (opaque)
            or *None*

          *origin*: [ *None* | 'upper' | 'lower' ]
            Place the [0,0] index of the array in the upper left or lower left
            corner of the axes. If *None*, default to rc ``image.origin``.

          *extent*: [ *None* | scalars (left, right, bottom, top) ]
            Data limits for the axes.  The default assigns zero-based row,
            column indices to the *x*, *y* centers of the pixels.

          *shape*: [ *None* | scalars (columns, rows) ]
            For raw buffer images

          *filternorm*:
            A parameter for the antigrain image resize filter.  From the
            antigrain documentation, if *filternorm* = 1, the filter normalizes
            integer values and corrects the rounding errors. It doesn't do
            anything with the source floating point values, it corrects only
            integers according to the rule of 1.0 which means that any sum of
            pixel weights must be equal to 1.0.  So, the filter function must
            produce a graph of the proper shape.

          *filterrad*:
            The filter radius for filters that have a radius
            parameter, i.e. when interpolation is one of: 'sinc',
            'lanczos' or 'blackman'

        Additional kwargs are :class:`~matplotlib.artist.Artist` properties:

        %(Artist)s

        **Example:**

        .. plot:: mpl_examples/pylab_examples/image_demo.py

        simage.aspectt
filternormt	filterradtresamplec s�jj|�S(N(R�R�(R�(R2(s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyR��sN(R�R�RRR�R:R�tset_dataR0RR�RTRNR4R5tset_urlt
set_extentt
get_extentR�R{R�(R2R�R6R7Rjt
interpolationR�R8R9toriginR]R]R�R�timlimR�turlRIR�((R2s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pytimshow:s.p	







cG s�t|�dkr`|d}|j\}}tjtj|d�tj|d��\}}n:t|�dkr�|\}}}ntd||f��|jd}|jd}	t|j�dks�|jddkr|jd|�}
|
j|	dd�}nt|j�dks.|jddkrX|j|	d�}|j|dd�}n|j|jkr�td||f��n|||fS(	Niiis%Illegal arguments to %s; see help(%s)i����iR�s,Incompatible X, Y inputs to %s; see help(%s)(RtR]R[tmeshgridRvRNtreshapeRT(R2tfuncnameRHR�tnumRowstnumColsR�R R?tNyR`Ra((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyt_pcolorargs�s*
5

((c-
O s,|js|j�n|jdd�}|jdd�}|jdd�}|jdd�}|jdd�}|jdd�}|jd|�\}	}
}|	j\}}
tj|�}tj|	�}	tj|
�}
tj|	�tj|
�}|d	d
�d	d
�f|dd�dd�f|d	d
�dd�f|dd�d	d
�f}tj|�d	|d�d	|
d�f|}t	j
}t	j}|d	kj�}||tj
|	d	d
�d	d
�f�j��}||tj
|
d	d
�d	d
�f�j��}||tj
|	dd�d	d
�f�j��}||tj
|
dd�d	d
�f�j��}||tj
|	dd�dd�f�j��}||tj
|
dd�dd�f�j��}||tj
|	d	d
�dd�f�j��}||tj
|
d	d
�dd�f�j��}t|�}t	j|dd�|f|dd�|f|dd�|f|dd�|f|dd�|f|dd�|f|dd�|f|dd�|f|dd�|f|dd�|ff
d
d�}|j|ddf�}||tj
|d	|d�d	|
d�f�j��}d}d|kr�|jd�|d<n|jd|�|dkr�d}nd}d|kr�|jd�|d<n|jd|�} d|kr0|jd�|d<nd|krgt| �rg| j�dkrgt|d<ntj||�}!|!j|�|!j|�|dk	r�n|!j|�|!j|�|!j||�|!j�|jt�|	j�}"|
j�}#|!j}$t |$t!j"�r;t#|$d�r;|$j$|j%�}$n|$r�t&|$j'|j(��r�|$|j(}%t	j)|"|#g�j*j+t	j,�}&|%j-|&�}'|'d}"|'d}#nt	j.|"�}(t	j/|"�})t	j.|#�}*t	j/|#�}+|(|*f|)|+ff},|j0|,�|j1�|j2|!�|!S( s�
        Create a pseudocolor plot of a 2-D array.

        Note: pcolor can be very slow for large arrays; consider
        using the similar but much faster
        :func:`~matplotlib.pyplot.pcolormesh` instead.

        Call signatures::

          pcolor(C, **kwargs)
          pcolor(X, Y, C, **kwargs)

        *C* is the array of color values.

        *X* and *Y*, if given, specify the (*x*, *y*) coordinates of
        the colored quadrilaterals; the quadrilateral for C[i,j] has
        corners at::

          (X[i,   j],   Y[i,   j]),
          (X[i,   j+1], Y[i,   j+1]),
          (X[i+1, j],   Y[i+1, j]),
          (X[i+1, j+1], Y[i+1, j+1]).

        Ideally the dimensions of *X* and *Y* should be one greater
        than those of *C*; if the dimensions are the same, then the
        last row and column of *C* will be ignored.

        Note that the the column index corresponds to the
        *x*-coordinate, and the row index corresponds to *y*; for
        details, see the :ref:`Grid Orientation
        <axes-pcolor-grid-orientation>` section below.

        If either or both of *X* and *Y* are 1-D arrays or column vectors,
        they will be expanded as needed into the appropriate 2-D arrays,
        making a rectangular grid.

        *X*, *Y* and *C* may be masked arrays.  If either C[i, j], or one
        of the vertices surrounding C[i,j] (*X* or *Y* at [i, j], [i+1, j],
        [i, j+1],[i+1, j+1]) is masked, nothing is plotted.

        Keyword arguments:

          *cmap*: [ *None* | Colormap ]
            A :class:`matplotlib.colors.Colormap` instance. If *None*, use
            rc settings.

          *norm*: [ *None* | Normalize ]
            An :class:`matplotlib.colors.Normalize` instance is used
            to scale luminance data to 0,1. If *None*, defaults to
            :func:`normalize`.

          *vmin*/*vmax*: [ *None* | scalar ]
            *vmin* and *vmax* are used in conjunction with *norm* to
            normalize luminance data.  If either is *None*, it
            is autoscaled to the respective min or max
            of the color array *C*.  If not *None*, *vmin* or
            *vmax* passed in here override any pre-existing values
            supplied in the *norm* instance.

          *shading*: [ 'flat' | 'faceted' ]
            If 'faceted', a black grid is drawn around each rectangle; if
            'flat', edges are not drawn. Default is 'flat', contrary to
            MATLAB.

            This kwarg is deprecated; please use 'edgecolors' instead:
              * shading='flat' -- edgecolors='none'
              * shading='faceted  -- edgecolors='k'

          *edgecolors*: [ *None* | ``'none'`` | color | color sequence]
            If *None*, the rc setting is used by default.

            If ``'none'``, edges will not be visible.

            An mpl color or sequence of colors will set the edge color

          *alpha*: ``0 <= scalar <= 1``   or *None*
            the alpha blending value

        Return value is a :class:`matplotlib.collections.Collection`
        instance.

        .. _axes-pcolor-grid-orientation:

        The grid orientation follows the MATLAB convention: an
        array *C* with shape (*nrows*, *ncolumns*) is plotted with
        the column number as *X* and the row number as *Y*, increasing
        up; hence it is plotted the way the array would be printed,
        except that the *Y* axis is reversed.  That is, *C* is taken
        as *C*(*y*, *x*).

        Similarly for :func:`meshgrid`::

          x = np.arange(5)
          y = np.arange(3)
          X, Y = meshgrid(x,y)

        is equivalent to::

          X = array([[0, 1, 2, 3, 4],
                     [0, 1, 2, 3, 4],
                     [0, 1, 2, 3, 4]])

          Y = array([[0, 0, 0, 0, 0],
                     [1, 1, 1, 1, 1],
                     [2, 2, 2, 2, 2]])

        so if you have::

          C = rand( len(x), len(y))

        then you need::

          pcolor(X, Y, C.T)

        or::

          pcolor(C.T)

        MATLAB :func:`pcolor` always discards the last row and column
        of *C*, but matplotlib displays the last row and column if *X* and
        *Y* are not specified, or if *X* and *Y* have one more row and
        column than *C*.

        kwargs can be used to control the
        :class:`~matplotlib.collections.PolyCollection` properties:

        %(PolyCollection)s

        Note: the default *antialiaseds* is False if the default
        *edgecolors*="none" is used.  This eliminates artificial lines
        at patch boundaries, and works regardless of the value of
        alpha.  If *edgecolors* is not "none", then the default
        *antialiaseds* is taken from
        rcParams['patch.antialiased'], which defaults to *True*.
        Stroking the edges may be preferred if *alpha* is 1, but
        will cause artifacts otherwise.

        .. seealso::

            :func:`~matplotlib.pyplot.pcolormesh`
                For an explanation of the differences between
                pcolor and pcolormesh.
        R�R7R6R8R9tshadingtflattpcolorii����iNR�iig�?RVR&R:R}R"RUR%tantialiasedtantialiasedst_as_mpl_transform.(g�?(R}(.i(.i(3R�R�RCRR�R]RR�tgetmaskarrayR[R_R�R�tfilledRttconcatenateR�R:RR�R
RRVR0R1R2R3R4R5R�t
compressedt
_transformR�R�t	TransformRMR�R/R�R�R�tvstackRR�RwR�RgRhR�R�R�(-R2RHRIR�R7R6R8R9R�R�R R�R�R?R,txymaskR_R�t	ravelmasktX1tY1tX2tY2tX3tY3tX4tY4tnpolyRbR�R&R%tecR�R`RaRNR�tptsttransformed_ptsRRRRR((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyR��s��	
j1		44444444,&&&,	<	






	
$




c	O sF|js|j�n|jdd�}|jdd�}|jdd�}|jdd�}|jdd�}|jdd�j�}|jdt�}	|jd	d
�|jd|�\}
}}|
j\}
}|dkrt	j
|d
|
d�d
|d�f�}n|j
�}|
j
�}
|j
�}tj||
dfdt
�}|
|dd�d
f<||dd�df<tj|d|
d|d|	d||�}|j|�|j|�|dk	r�n|j|�|j|�|j||�|j�|jt�|j}t|tj�rUt|d�rU|j|j�}n|r�t|j|j ��r�||j }tj!|
|g�j"j#tj
�}|j$|�}|d}
|d}ntj%|
�}tj&|
�}tj%|�}tj&|�}||f||ff}|j'|�|j(�|j)|�|S(s�

        Plot a quadrilateral mesh.

        Call signatures::

          pcolormesh(C)
          pcolormesh(X, Y, C)
          pcolormesh(C, **kwargs)

        Create a pseudocolor plot of a 2-D array.

        pcolormesh is similar to :func:`~matplotlib.pyplot.pcolor`,
        but uses a different mechanism and returns a different
        object; pcolor returns a
        :class:`~matplotlib.collections.PolyCollection` but pcolormesh
        returns a
        :class:`~matplotlib.collections.QuadMesh`.  It is much faster,
        so it is almost always preferred for large arrays.

        *C* may be a masked array, but *X* and *Y* may not.  Masked
        array support is implemented via *cmap* and *norm*; in
        contrast, :func:`~matplotlib.pyplot.pcolor` simply does not
        draw quadrilaterals with masked colors or vertices.

        Keyword arguments:

          *cmap*: [ *None* | Colormap ]
            A :class:`matplotlib.colors.Colormap` instance. If *None*, use
            rc settings.

          *norm*: [ *None* | Normalize ]
            A :class:`matplotlib.colors.Normalize` instance is used to
            scale luminance data to 0,1. If *None*, defaults to
            :func:`normalize`.

          *vmin*/*vmax*: [ *None* | scalar ]
            *vmin* and *vmax* are used in conjunction with *norm* to
            normalize luminance data.  If either is *None*, it
            is autoscaled to the respective min or max
            of the color array *C*.  If not *None*, *vmin* or
            *vmax* passed in here override any pre-existing values
            supplied in the *norm* instance.

          *shading*: [ 'flat' | 'gouraud' ]
            'flat' indicates a solid color for each quad.  When
            'gouraud', each quad will be Gouraud shaded.  When gouraud
            shading, edgecolors is ignored.

          *edgecolors*: [ *None* | ``'None'`` | ``'face'`` | color | color sequence]
            If *None*, the rc setting is used by default.

            If ``'None'``, edges will not be visible.

            If ``'face'``, edges will have the same color as the faces.

            An mpl color or sequence of colors will set the edge color

          *alpha*: ``0 <= scalar <= 1``  or *None*
            the alpha blending value

        Return value is a :class:`matplotlib.collections.QuadMesh`
        object.

        kwargs can be used to control the
        :class:`matplotlib.collections.QuadMesh` properties:

        %(QuadMesh)s

        .. seealso::

            :func:`~matplotlib.pyplot.pcolor`
                For an explanation of the grid orientation and the
                expansion of 1-D *X* and/or *Y* to 2-D arrays.
        R�R7R6R8R9R�R�R�R%Rt
pcolormeshtgouraudiiiRsNR�.(.i(.i(*R�R�RCRR�R
R:R�R]RR�R[R�RwRtQuadMeshR0R1R2R3R4R5R�R�R�R�R�RMR�R/R�R�R�R�RR�R�RgRhR�R�R�(R2RHRIR�R7R6R8R9R�R�R�R R�R�R?tcoordsR�RNR�R�R�RRRRR((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyR��sfL	
0





	
$




cO s�|js|j�n|jdd�}|jdd�}|jdd�}|jdd�}|jdd�}|dk	rn|d}|j\}	}
t|�dkr�d}d	|
g}d	|	g}
nGt|�d
kr|d \}}
tj|�}tj|
�}
|jdkr�|
jdkr�|j	dkrP|
j	dkrPd}qtj
|�}tj
|
�}tj|�dtj|j
��kr�tj|�dtj|j
��kr�d}qd
}q|jdkr�|
jdkr�d}qtd��ntd��|dkrBtj|�}|j�}|
j�}|
d}|	d}tj||dftj�}||dd�d	f<||dd�df<tj|
|	|d	dd�}|j|�|j|�|j|�|j|�|j|�|j�|j�|j�|j�f\}}}}|}n.|d	|d|
d	|
df\}}}}|dkr�tj|||ddddd||||f|�}|j|�|j|�|jj |�|}n|d
kr7tj!|||
|d|d|d||�}|jj |�|}n|j"|�|dk	s\|dk	ro|j#||�n
|j$�|j%tj&||g||gg��|j'dt(�|S(s�
        pseudocolor plot of a 2-D array

        Experimental; this is a pcolor-type method that
        provides the fastest possible rendering with the Agg
        backend, and that can handle any quadrilateral grid.
        It supports only flat shading (no outlines), it lacks
        support for log scaling of the axes, and it does not
        have a pyplot wrapper.

        Call signatures::

          ax.pcolorfast(C, **kwargs)
          ax.pcolorfast(xr, yr, C, **kwargs)
          ax.pcolorfast(x, y, C, **kwargs)
          ax.pcolorfast(X, Y, C, **kwargs)

        C is the 2D array of color values corresponding to quadrilateral
        cells. Let (nr, nc) be its shape.  C may be a masked array.

        ``ax.pcolorfast(C, **kwargs)`` is equivalent to
        ``ax.pcolorfast([0,nc], [0,nr], C, **kwargs)``

        *xr*, *yr* specify the ranges of *x* and *y* corresponding to the
        rectangular region bounding *C*.  If::

            xr = [x0, x1]

        and::

            yr = [y0,y1]

        then *x* goes from *x0* to *x1* as the second index of *C* goes
        from 0 to *nc*, etc.  (*x0*, *y0*) is the outermost corner of
        cell (0,0), and (*x1*, *y1*) is the outermost corner of cell
        (*nr*-1, *nc*-1).  All cells are rectangles of the same size.
        This is the fastest version.

        *x*, *y* are 1D arrays of length *nc* +1 and *nr* +1, respectively,
        giving the x and y boundaries of the cells.  Hence the cells are
        rectangular but the grid may be nonuniform.  The speed is
        intermediate.  (The grid is checked, and if found to be
        uniform the fast version is used.)

        *X* and *Y* are 2D arrays with shape (*nr* +1, *nc* +1) that specify
        the (x,y) coordinates of the corners of the colored
        quadrilaterals; the quadrilateral for C[i,j] has corners at
        (X[i,j],Y[i,j]), (X[i,j+1],Y[i,j+1]), (X[i+1,j],Y[i+1,j]),
        (X[i+1,j+1],Y[i+1,j+1]).  The cells need not be rectangular.
        This is the most general, but the slowest to render.  It may
        produce faster and more compact output using ps, pdf, and
        svg backends, however.

        Note that the the column index corresponds to the x-coordinate,
        and the row index corresponds to y; for details, see
        the "Grid Orientation" section below.

        Optional keyword arguments:

          *cmap*: [ *None* | Colormap ]
            A :class:`matplotlib.colors.Colormap` instance from cm. If *None*,
            use rc settings.

          *norm*: [ *None* | Normalize ]
            A :class:`matplotlib.colors.Normalize` instance is used to scale
            luminance data to 0,1. If *None*, defaults to normalize()

          *vmin*/*vmax*: [ *None* | scalar ]
            *vmin* and *vmax* are used in conjunction with norm to normalize
            luminance data.  If either are *None*, the min and max
            of the color array *C* is used.  If you pass a norm instance,
            *vmin* and *vmax* will be *None*.

          *alpha*: ``0 <= scalar <= 1``  or *None*
            the alpha blending value

        Return value is an image if a regular or rectangular grid
        is specified, and a :class:`~matplotlib.collections.QuadMesh`
        collection in the general quadrilateral case.

        R�R7R6R8R9i����iR�iiig{�G�z�?tpcolorimagetquadmeshs'arguments do not match valid signaturessneed 1 argument or 3 argumentsNR%RR�tnearestR�R�R]R�()R�R�RCRR]RtR[R�R^R!RYtptpR�tmeanRNRR�RRtfloat64RR�R0R1R2R3R�R�RzR:R�R�R�R{tPcolorImageRR4R5R�R�R�R(R2RHRIR�R7R6R8R9R�RRR\R`RaR�R�R�R R?R�R�R�txlR�tybR�RJR�((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyt
pcolorfastms�T	

	((			






6	.	

			

(cO s3|js|j�nt|d<tj|||�S(NR�(R�R�R
tmcontourtQuadContourSet(R2RHRI((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyR�%s	

cO s3|js|j�nt|d<tj|||�S(NR�(R�R�RR�R�(R2RHRI((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pytcontourf+s	

cO s|j||�S(N(tclabel(R2tCSRHRI((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyR�1scK stj||�S(s�
        Add a table to the current axes.

        Call signature::

          table(cellText=None, cellColours=None,
                cellLoc='right', colWidths=None,
                rowLabels=None, rowColours=None, rowLoc='left',
                colLabels=None, colColours=None, colLoc='center',
                loc='bottom', bbox=None):

        Returns a :class:`matplotlib.table.Table` instance.  For finer
        grained control over tables, use the
        :class:`~matplotlib.table.Table` class and add it to the axes
        with :meth:`~matplotlib.axes.Axes.add_table`.

        Thanks to John Gill for providing the class and table.

        kwargs control the :class:`~matplotlib.table.Table`
        properties:

        %(Table)s
        (tmtablettable(R2RI((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyR�5scO s%|jj|jt�||�}|S(sN
        make a twinx axes of self. This is used for twinx and twiny.
        (R�tadd_axesR	R(R2tklRItax2((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyt_make_twin_axesPs!cC sf|jd|dt�}|jj�|jjd�|jjd�|jj�|jjt�|S(s�
        Call signature::

          ax = twinx()

        create a twin of Axes for generating a plot with a sharex
        x-axis but independent y axis.  The y-axis of self will have
        ticks on left and the returned axes will have ticks on the
        right.

        .. note::
            For those who are 'picking' artists while using twinx, pick
            events are only called for the artists in the top-most axes.
        R�R�R�(	RR
RBt
tick_righttset_label_positiontset_offset_positiont	tick_leftRAtset_visible(R2R((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyttwinxXs

cC sV|jd|dt�}|jj�|jjd�|jj�|jjt�|S(s�
        Call signature::

          ax = twiny()

        create a twin of Axes for generating a plot with a shared
        y-axis but independent x axis.  The x-axis of self will have
        ticks on bottom and the returned axes will have ticks on the
        top.

        .. note::
            For those who are 'picking' artists while using twiny, pick
            events are only called for the artists in the top-most axes.
        R�R�R�(RR
RAttick_topRttick_bottomRBR(R2R((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyttwinyps

cC s|jS(s:Return a copy of the shared axes Grouper object for x axes(R�(R2((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pytget_shared_x_axes�scC s|jS(s:Return a copy of the shared axes Grouper object for y axes(R�(R2((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pytget_shared_y_axes�sRrRSR_c6K s�|js|j�n|}td}|d2krEtd|��n|	d3krdtd
|	��n|
d4kr�td
|
��n|jd�dk	r�td��n|dkr�|r�t}nt|t	j
�s�t|d�r�t	j|�}|j
dkr|j}n7|j
dkr;|jd|jd�}ntd��|jd|jdkr�tjd|jddd��q�n"g|D]}t	j|�^q�}t|�}|
dkr�gt|�D]}|jjj�^q�}
n3tjj|
�}
t|
�|kr#td��n|dk	r?t|t	j
�sRt|d�r�t	j|�}|j
dkr||j}q�|j
dkr�d|jdf|_q�td��n"g|D]}t	j|�^q�}t|�|kr�td��nxSt|�D]5}t||�t||�krtd��qqWn
dg|}|j�}|j�}|jt�|j t�|j!j"}t#j|�p�|dk}|st	j$}t	j$}x8|D]0}t%||j%��}t&||j&��}q�W||f}nt'd|�}t	j(dkr3t|d<ng}|}x�t)t|��D]�}t	j*|||d|||�\} }|dkr�t	j+t|�d| j,�}n|r�t	j-|�}!| j.t/�|!| j0�} n|r�| |7} | |(n|j1| �qRW|r�t2d�}"t#j3|�rQ|dkrQt2ddd�}"n|r�g|D]'} | t	j-|�|"j4�|"^q^}q�g|D]} | |"j4�|"^q�}n|j5�g}#|j6d�r�t	j-|�}$|dk	r
t%dt&d|��}%n!t|�dkr(d}%nd}%|dkr�|r�|%|$|}&|&}'|dkr~d |%|$dd|}(nd}(t}n+|dks�|r�|%|$}&d5\}(}'n|	dks�|	d!kr�|(d"|$7}(n|	d	kr�|(|$7}(n|
dkr|j7})n	|j8})x�t9||
�D]O\} }*|)|d |(| |&d#d$d%|d&|*�}+|#j1|+�|(|'7}(q+Wn4|j6d�r�
t	j+dt|�t	j/�}t	j+dt|�t	j/�},|||ddd�<|ddd�<t	j%|�}-|	dks|	d$kr9|d"|d|d8}n)|	d	krb|d"|d|d7}n|r�|-|-|,d<|,d<|
dkr�|j:d%�q�|j;d%�n|dk}.x�t9||
�D]�\} }*| | |,ddd�<|,ddd�<|r	|-|,|,|-k<n|
dkr-	|,|}},n|.r[	|#j1|j<||,d'td(|*��q�|#j1|j<||,d'td)|*d*t��q�W|
dkr
t&|dd+|-�}/|j!j=d}x'|D]} t	j>| | dk�}q�	Wt&|d+|-�}t%|/|�}||f|j!_=q�
|
dkr�
t&|dd+|-�}0|j!j?d}1x'|D]} t	j>| | dk�}2qX
Wt&|2d+|-�}2t%|0|2�}2|2|1f|j!_?q�
n|dkr�
dg}3n?t@|�r�
|g}3n'tA|�rtB|�}3ntd,��t|3�|kr<|3dg|t|3�7}3nx�t9|#|3�D]�\}+}4|+rL|+d}5|5jC|�|4dk	r�|5jD|4�n|5jEt�x/|+dD] }5|5jC|�|5jDd-�q�WqLqLW|rF|
dkr|jF|ddf|ddfgd.t�qF|jFd|dfd|dfgd/t�n|j|�|j |�|jG�|dkr�|d|t#jHd0|#d�fS||t#jHd1|#�fSdS(6s�
        Plot a histogram.

        Call signature::

          hist(x, bins=10, range=None, normed=False, weights=None,
                 cumulative=False, bottom=None, histtype='bar', align='mid',
                 orientation='vertical', rwidth=None, log=False,
                 color=None, label=None, stacked=False,
                 **kwargs)

        Compute and draw the histogram of *x*. The return value is a
        tuple (*n*, *bins*, *patches*) or ([*n0*, *n1*, ...], *bins*,
        [*patches0*, *patches1*,...]) if the input contains multiple
        data.

        Multiple data can be provided via *x* as a list of datasets
        of potentially different length ([*x0*, *x1*, ...]), or as
        a 2-D ndarray in which each column is a dataset.  Note that
        the ndarray form is transposed relative to the list form.

        Masked arrays are not supported at present.

        Keyword arguments:

          *bins*:
            Either an integer number of bins or a sequence giving the
            bins.  If *bins* is an integer, *bins* + 1 bin edges
            will be returned, consistent with :func:`numpy.histogram`
            for numpy version >= 1.3, and with the *new* = True argument
            in earlier versions.
            Unequally spaced bins are supported if *bins* is a sequence.

          *range*:
            The lower and upper range of the bins. Lower and upper outliers
            are ignored. If not provided, *range* is (x.min(), x.max()).
            Range has no effect if *bins* is a sequence.

            If *bins* is a sequence or *range* is specified, autoscaling
            is based on the specified bin range instead of the
            range of x.

          *normed*:
            If *True*, the first element of the return tuple will
            be the counts normalized to form a probability density, i.e.,
            ``n/(len(x)*dbin)``.  In a probability density, the integral of
            the histogram should be 1; you can verify that with a
            trapezoidal integration of the probability density function::

              pdf, bins, patches = ax.hist(...)
              print np.sum(pdf * np.diff(bins))

            .. note::

                Until numpy release 1.5, the underlying numpy
                histogram function was incorrect with *normed*=*True*
                if bin sizes were unequal.  MPL inherited that
                error.  It is now corrected within MPL when using
                earlier numpy versions

          *weights*:
            An array of weights, of the same shape as *x*.  Each value in
            *x* only contributes its associated weight towards the bin
            count (instead of 1).  If *normed* is True, the weights are
            normalized, so that the integral of the density over the range
            remains 1.

          *cumulative*:
            If *True*, then a histogram is computed where each bin
            gives the counts in that bin plus all bins for smaller values.
            The last bin gives the total number of datapoints.  If *normed*
            is also *True* then the histogram is normalized such that the
            last bin equals 1. If *cumulative* evaluates to less than 0
            (e.g. -1), the direction of accumulation is reversed.  In this
            case, if *normed* is also *True*, then the histogram is normalized
            such that the first bin equals 1.

          *histtype*: [ 'bar' | 'barstacked' | 'step' | 'stepfilled' ]
            The type of histogram to draw.

              - 'bar' is a traditional bar-type histogram.  If multiple data
                are given the bars are aranged side by side.

              - 'barstacked' is a bar-type histogram where multiple
                data are stacked on top of each other.

              - 'step' generates a lineplot that is by default
                unfilled.

              - 'stepfilled' generates a lineplot that is by default
                filled.

          *align*: ['left' | 'mid' | 'right' ]
            Controls how the histogram is plotted.

              - 'left': bars are centered on the left bin edges.

              - 'mid': bars are centered between the bin edges.

              - 'right': bars are centered on the right bin edges.

          *orientation*: [ 'horizontal' | 'vertical' ]
            If 'horizontal', :func:`~matplotlib.pyplot.barh` will be
            used for bar-type histograms and the *bottom* kwarg will be
            the left edges.

          *rwidth*:
            The relative width of the bars as a fraction of the bin
            width.  If *None*, automatically compute the width. Ignored
            if *histtype* = 'step' or 'stepfilled'.

          *log*:
            If *True*, the histogram axis will be set to a log scale.
            If *log* is *True* and *x* is a 1D array, empty bins will
            be filtered out and only the non-empty (*n*, *bins*,
            *patches*) will be returned.

          *color*:
            Color spec or sequence of color specs, one per
            dataset.  Default (*None*) uses the standard line
            color sequence.

          *label*:
            String, or sequence of strings to match multiple
            datasets.  Bar charts yield multiple patches per
            dataset, but only the first gets the label, so
            that the legend command will work as expected::

                ax.hist(10+2*np.random.randn(1000), label='men')
                ax.hist(12+3*np.random.randn(1000), label='women', alpha=0.5)
                ax.legend()

          *stacked*:
            If *True*, multiple data are stacked on top of each other
            If *False* multiple data are aranged side by side if
            histtype is 'bar' or on top of each other if histtype is 'step'

            .

        kwargs are used to update the properties of the
        :class:`~matplotlib.patches.Patch` instances returned by *hist*:

        %(Patch)s

        **Example:**

        .. plot:: mpl_examples/pylab_examples/histogram_demo.py

        R�Rrt
barstackedRTt
stepfilledshisttype %s is not recognizedR�RSR�s align kwarg %s is not recognizedRaR_s&orientation kwarg %s is not recognizedR�sFhist now uses the rwidth to give relative width and not absolute widthiiisx must be 1D or 2DsX2D hist input should be nsamples x nvariables;
 this looks transposed (shape is %d x %d)Ni����s+color kwarg must have one color per datasetsweights must be 1D or 2Ds'weights should have the same shape as xs1.3tnewtweightsg�?gg�������?g�R]g�?R\R�R~R#RmRkRURlg�������?s4invalid label: must be string or sequence of stringsRAR�R�R�sLists of Patches(sbarRsstepR(sleftsmidsright(s
horizontalsvertical(gg(IR�R�t__builtins__RRxRR*RR�R[tndarrayR�R�R^RR�R]R(R)RtRyR@R;RfRRRdR�R	R
RR
RR�R�R)tinfR�RzRut__version__treversedt	histogramR�RsRYR�RwR�R{tslicet
is_numliketcumsumtreverseRKRsRrRuR�R�RlRRgR!RR)RcR�R�tset_snapR�R�R�(6R2R`R\R�R;Rt
cumulativeR�thisttypeR\R^trwidthR~R#R�tstackedRIt	bin_rangeR�R`RnR�twit_saved_autoscalext_saved_autoscaleyt
_saved_boundst	binsgivenRuRvthist_kwargsRitmlastR
tdbtslcR�ttotwidthtdrR�tdwtboffsett_barfuncR%RNRaRwRltxmin0tymin0RxRwR�tlblR�((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pythist�sz�	

	#	"+#" 


	


)" 

7*
		

		
''





00


!c	K s�|}
td}tj||d|d|
d|d|�\}}}
|dk	rbd|||k<n|dk	r�d|||k<n|j||
|j|	�}|j|d|d�|j|
d|
d�|||
|fS(sJ	
        Make a 2D histogram plot.

        Call signature::

          hist2d(x, y, bins = None, range=None, weights=None, cmin=None, cmax=None **kwargs)

        Make a 2d histogram plot of *x* versus *y*, where *x*,
        *y* are 1-D sequences of the same length.

        The return value is ``(counts, xedges, yedges, Image)``.

        Optional keyword arguments:
        *bins*: [None | int | [int, int] | array_like | [array, array]]

            The bin specification:

                - If int, the number of bins for the two dimensions
                  (nx=ny=bins).

                - If [int, int], the number of bins in each dimension
                  (nx, ny = bins).

                - If array_like, the bin edges for the two dimensions
                  (x_edges=y_edges=bins).

                - If [array, array], the bin edges in each dimension
                  (x_edges, y_edges = bins).

            The default value is 10.

        *range*: [*None* | array_like shape(2,2)]
             The leftmost and rightmost edges of the bins along each
             dimension (if not specified explicitly in the bins
             parameters): [[xmin, xmax], [ymin, ymax]]. All values
             outside of this range will be considered outliers and not
             tallied in the histogram.

        *normed*:[True|False]
             Normalize histogram.
             The default value is False

        *weights*: [*None* | array]
            An array of values w_i weighing each sample (x_i, y_i).

        *cmin* : [None| scalar]
             All bins that has count less than cmin will not be
             displayed and these count values in the return value
             count histogram will also be set to nan upon return

        *cmax* : [None| scalar]
             All bins that has count more than cmax will not be
             displayed (set to none before passing to imshow) and
             these count values in the return value count histogram
             will also be set to nan upon return

        Remaining keyword arguments are passed directly to :meth:`pcolorfast`.

        Rendering the histogram with a logarithmic color scale is
        accomplished by passing a :class:`colors.LogNorm` instance to
        the *norm* keyword argument.

        **Example:**

        .. plot:: mpl_examples/pylab_examples/hist2d_demo.py
        R�R\R;Rii����N(RR[thistogram2dRR�RR.R:(R2R`RaR\R�R;RtcmintcmaxRIR!R�txedgestyedgestpc((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pythist2dF sG
iiR�c
K s]|js|j�ntj||||||||	|
�	\}}
t|
�f|_|
|7}
|
d	tfkrzd}nd}|j|
dt	j
|�|�|jd�|jd|�|j
t�|jj\}}||}tt	j
|��}|dkrd}nd|}t	jtj|�tj|�d|�}|j|�||
fS(
s�
        Plot the power spectral density.

        Call signature::

          psd(x, NFFT=256, Fs=2, Fc=0, detrend=mlab.detrend_none,
              window=mlab.window_hanning, noverlap=0, pad_to=None,
              sides='default', scale_by_freq=None, **kwargs)

        The power spectral density by Welch's average periodogram
        method.  The vector *x* is divided into *NFFT* length
        segments.  Each segment is detrended by function *detrend* and
        windowed by function *window*.  *noverlap* gives the length of
        the overlap between segments.  The :math:`|\mathrm{fft}(i)|^2`
        of each segment :math:`i` are averaged to compute *Pxx*, with a
        scaling to correct for power loss due to windowing.  *Fs* is the
        sampling frequency.

        %(PSD)s

          *noverlap*: integer
            The number of points of overlap between blocks.  The default value
            is 0 (no overlap).

          *Fc*: integer
            The center frequency of *x* (defaults to 0), which offsets
            the x extents of the plot to reflect the frequency range used
            when a signal is acquired and then filtered and downsampled to
            baseband.

        Returns the tuple (*Pxx*, *freqs*).

        For plotting, the power is plotted as
        :math:`10\log_{10}(P_{xx})` for decibels, though *Pxx* itself
        is returned.

        References:
          Bendat & Piersol -- Random Data: Analysis and Measurement
          Procedures, John Wiley & Sons (1986)

        kwargs control the :class:`~matplotlib.lines.Line2D` properties:

        %(Line2D)s

        **Example:**

        .. plot:: mpl_examples/pylab_examples/psd_demo.py
        sdB/HztdBi
t	FrequencysPower Spectral Density (%s)ig�������?iN(R�R�R�tpsdRtR]RRR.R[R|RRR�R�R!RRvRsROtceilR�(R2R`tNFFTtFstFcR<twindowtnoverlaptpad_totsidest
scale_by_freqRItpxxtfreqst	psd_unitsR8R9tintvtlogiRTR�((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyR=� s,4	

	 


	
+
cK s)|js|j�ntj||||||||	|
|�
\}
}t|�f|
_||7}|j|dtjtj	|
��|�|j
d�|jd�|jt
�|jj\}}||}dttj|��}tjtj|�tj|�d|�}|j|�|
|fS(s�
        Plot cross-spectral density.

        Call signature::

          csd(x, y, NFFT=256, Fs=2, Fc=0, detrend=mlab.detrend_none,
              window=mlab.window_hanning, noverlap=0, pad_to=None,
              sides='default', scale_by_freq=None, **kwargs)

        The cross spectral density :math:`P_{xy}` by Welch's average
        periodogram method.  The vectors *x* and *y* are divided into
        *NFFT* length segments.  Each segment is detrended by function
        *detrend* and windowed by function *window*.  The product of
        the direct FFTs of *x* and *y* are averaged over each segment
        to compute :math:`P_{xy}`, with a scaling to correct for power
        loss due to windowing.

        Returns the tuple (*Pxy*, *freqs*).  *P* is the cross spectrum
        (complex valued), and :math:`10\log_{10}|P_{xy}|` is
        plotted.

        %(PSD)s

          *noverlap*: integer
            The number of points of overlap between blocks.  The
            default value is 0 (no overlap).

          *Fc*: integer
            The center frequency of *x* (defaults to 0), which offsets
            the x extents of the plot to reflect the frequency range used
            when a signal is acquired and then filtered and downsampled to
            baseband.

        References:
          Bendat & Piersol -- Random Data: Analysis and Measurement
          Procedures, John Wiley & Sons (1986)

        kwargs control the Line2D properties:

        %(Line2D)s

        **Example:**

        .. plot:: mpl_examples/pylab_examples/csd_demo.py

        .. seealso:

            :meth:`psd`
                For a description of the optional parameters.
        i
R<sCross Spectrum Magnitude (dB)i(R�R�R�tcsdRtR]R.R[R|tabsoluteRRR�RR�R!RRvRsROR>R�(R2R`RaR?R@RAR<RBRCRDRERFRItpxyRHR8R9RJRTR�((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyRL� s 6	

)



+
c	K s�|js|j�ntj||||||||�\}
}||7}|j||
|�|jd�|jd�|jt�|
|fS(s}
        Plot the coherence between *x* and *y*.

        Call signature::

          cohere(x, y, NFFT=256, Fs=2, Fc=0, detrend = mlab.detrend_none,
                 window = mlab.window_hanning, noverlap=0, pad_to=None,
                 sides='default', scale_by_freq=None, **kwargs)

        Plot the coherence between *x* and *y*.  Coherence is the
        normalized cross spectral density:

        .. math::

          C_{xy} = \frac{|P_{xy}|^2}{P_{xx}P_{yy}}

        %(PSD)s

          *noverlap*: integer
            The number of points of overlap between blocks.  The
            default value is 0 (no overlap).

          *Fc*: integer
            The center frequency of *x* (defaults to 0), which offsets
            the x extents of the plot to reflect the frequency range used
            when a signal is acquired and then filtered and downsampled to
            baseband.

        The return value is a tuple (*Cxy*, *f*), where *f* are the
        frequencies of the coherence vector.

        kwargs are applied to the lines.

        References:

          * Bendat & Piersol -- Random Data: Analysis and Measurement
            Procedures, John Wiley & Sons (1986)

        kwargs control the :class:`~matplotlib.lines.Line2D`
        properties of the coherence plot:

        %(Line2D)s

        **Example:**

        .. plot:: mpl_examples/pylab_examples/cohere_demo.py
        R<t	Coherence(	R�R�R�tcohereR.RRR�R(R2R`RaR?R@RAR<RBRCRDRERFRItcxyRH((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyRP4!s3	




i�c

K s�|js|j�ntj|||||||
||�	\}}}dtj|�}tj|�}|	dkr�dtj|�f}	n|	\}}||7}|||d|df}|j	||d||
�}|j
d�||||fS(sl
        Plot a spectrogram.

        Call signature::

          specgram(x, NFFT=256, Fs=2, Fc=0, detrend=mlab.detrend_none,
                   window=mlab.window_hanning, noverlap=128,
                   cmap=None, xextent=None, pad_to=None, sides='default',
                   scale_by_freq=None, **kwargs)

        Compute a spectrogram of data in *x*.  Data are split into
        *NFFT* length segments and the PSD of each section is
        computed.  The windowing function *window* is applied to each
        segment, and the amount of overlap of each segment is
        specified with *noverlap*.

        %(PSD)s

          *noverlap*: integer
            The number of points of overlap between blocks.  The
            default value is 128.

          *Fc*: integer
            The center frequency of *x* (defaults to 0), which offsets
            the y extents of the plot to reflect the frequency range used
            when a signal is acquired and then filtered and downsampled to
            baseband.

          *cmap*:
            A :class:`matplotlib.colors.Colormap` instance; if *None*, use
            default determined by rc

          *xextent*:
            The image extent along the x-axis. xextent = (xmin,xmax)
            The default is (0,max(bins)), where bins is the return
            value from :func:`~matplotlib.mlab.specgram`

          *kwargs*:

            Additional kwargs are passed on to imshow which makes the
            specgram image

          Return value is (*Pxx*, *freqs*, *bins*, *im*):

          - *bins* are the time points the spectrogram is calculated over
          - *freqs* is an array of frequencies
          - *Pxx* is an array of shape `(len(times), len(freqs))` of power
          - *im* is a :class:`~matplotlib.image.AxesImage` instance

        Note: If *x* is real (i.e. non-complex), only the positive
        spectrum is shown.  If *x* is complex, both positive and
        negative parts of the spectrum are shown.  This can be
        overridden using the *sides* keyword argument.

        **Example:**

        .. plot:: mpl_examples/pylab_examples/specgram_demo.py
        g$@ii����R]R�N(R�R�R�tspecgramR[R|tflipudRRhR�R�(R2R`R?R@RAR<RBRCR6txextentRDRERFRItPxxRHR\tZRuRvR]R�((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyRRs!s?	


RhcK s	|d%kr"d}tjd�n|d%krR|d%krRt|d�rRd}n|d%kr|d%krtj|�}tj|�|k}d|kr�tjddgdd	�|d<n|j	\}}	d
|	d|dd
g}
|j
|dd
d|d|
dd|�}n^t|d�r�|j�}|dkrN|j}
|j
}q�tj|j�|k}|j|}
|j
|}n9tj|�}tj|�|k}tj|�\}
}|d%kr�d}n|d%kr�d}ntj||
ddd|d||�}|j|�|j	\}}	|jdd
d|	d�|jd|ddd
�|j|�|}|jjd�|jj�|jjd�|jjtjddd d!d"d#dgd$t��|jjtjddd d!d"d#dgd$t��|S(&s7	
        Plot the sparsity pattern on a 2-D array.

        Call signature::

          spy(Z, precision=0, marker=None, markersize=None,
              aspect='equal', **kwargs)

        ``spy(Z)`` plots the sparsity pattern of the 2-D array *Z*.

        If *precision* is 0, any non-zero value will be plotted;
        else, values of :math:`|Z| > precision` will be plotted.

        For :class:`scipy.sparse.spmatrix` instances, there is a
        special case: if *precision* is 'present', any value present in
        the array will be plotted, even if it is identically zero.

        The array will be plotted as it would be printed, with
        the first index (row) increasing down and the second
        index (column) increasing to the right.

        By default aspect is 'equal', so that each array element
        occupies a square space; set the aspect kwarg to 'auto'
        to allow the plot to fill the plot box, or to any scalar
        number to specify the aspect ratio of an array element
        directly.

        Two plotting styles are available: image or marker. Both
        are available for full arrays, but only the marker style
        works for :class:`scipy.sparse.spmatrix` instances.

        If *marker* and *markersize* are *None*, an image will be
        returned and any remaining kwargs are passed to
        :func:`~matplotlib.pyplot.imshow`; else, a
        :class:`~matplotlib.lines.Line2D` object will be returned with
        the value of marker determining the marker type, and any
        remaining kwargs passed to the
        :meth:`~matplotlib.axes.Axes.plot` method.

        If *marker* and *markersize* are *None*, useful kwargs include:

        * *cmap*
        * *alpha*

        .. seealso::

            :func:`~matplotlib.pyplot.imshow`
               For image options.

        For controlling colors, e.g. cyan background and red marks,
        use::

          cmap = mcolors.ListedColormap(['c','r'])

        If *marker* or *markersize* is not *None*, useful kwargs include:

        * *marker*
        * *markersize*
        * *color*

        Useful values for *marker* include:

        * 's'  square (default)
        * 'o'  circle
        * '.'  point
        * ','  pixel

        .. seealso::

            :func:`~matplotlib.pyplot.plot`
               For plotting options
        isUse precision=0 instead of NonettocooRR6R�R}REtbinaryg�g�?R�R�RjR]R�R~tpresenti
R!RR"t
markersizeRuRvRwRxg�������?R
tnbinsi	tstepsiiitintegerN( RR(R*RMR[R�RMRtListedColormapR]R�RWRRwR�tnonzeroRRgR�R.R:R�RLtset_yRAR	tset_ticks_positionR7tmtickertMaxNLocatorRRB(R2RVt	precisionR"RZRjRIR,RRR]RJR%RaR`R_tmarks((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pytspy�!s`J'		
		




c	K s�tj|�}|j\}}idd6dd6dd6}|j|�|j||�}|jjd�|jj�|jj	d�|jj
tjd	d
ddd
ddgdt
��|jj
tjd	d
ddd
ddgdt
��|S(s
        Plot a matrix or array as an image.

        The matrix will be shown the way it would be printed,
        with the first row at the top.  Row and column numbering
        is zero-based.

        Argument:
            *Z*   anything that can be interpreted as a 2-D array

        kwargs all are passed to :meth:`~matplotlib.axes.Axes.imshow`.
        :meth:`matshow` sets defaults for *origin*,
        *interpolation*, and *aspect*; if you want row zero to
        be at the bottom instead of the top, you can set the *origin*
        kwarg to "lower".

        Returns: an :class:`matplotlib.image.AxesImage` instance.
        R~R�R�R�RhRjg�������?R
R[i	R\iiii
R](R[R*R]R�R�RLR`RAR	RaR7RbRcRRB(R2RVRIRRRhR�((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pytmatshowA"s"





cC sHg|jD]}|j�r
|^q
}|jrD|j|j�n|S(N(R�R+RER{(R2RNtbbox_extra_artists((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pytget_default_bbox_extra_artistsf"s(	cC s5g}g}|j�sdS|j�}|rS|rS|||�}|j|�n
|j�|j|j|��|jj�r�|j|jj|��n|jj|�}|r�|j|�n|j	j|�}|r�|j|�nt
jjg|D]*}	|	j
dks"|	jdkr�|	^q��}
|
S(s�
        Return the tight bounding box of the axes.
        The dimension of the Bbox in canvas coordinate.

        If *call_axes_locator* is *False*, it does not call the
        _axes_locator attribute, which is necessary to get the correct
        bounding box. ``call_axes_locator==False`` can be used if the
        caller is only intereted in the relative size of the tightbbox
        compared to the axes bbox.
        iN(R+RRR�R{R�RLRAt
get_tightbboxRBR�R�R�R�R�(R2RDtcall_axes_locatorRCR%RR
tbb_xaxistbb_yaxisRct_bbox((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyRjm"s(
CcC sqxj|j|jfD]V}|j�dkrV|j}|jtj|j|j��q|jtj	��qWdS(s(Add autoscaling minor ticks to the axes.R~N(
RARBR4t_scaleR8Rbt
LogLocatortbasetsubstAutoMinorLocator(R2R#R((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyt
minorticks_on�"s
	"cC s0|jjtj��|jjtj��dS(s!Remove minor ticks from the axes.N(RAR8RbtNullLocatorRB(R2((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pytminorticks_off�"scO stj|||�S(N(tmtrit
tricontour(R2RHRI((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyRx�"scO stj|||�S(N(Rwttricontourf(R2RHRI((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyRy�"scO stj|||�S(N(Rwt	tripcolor(R2RHRI((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyRz�"scO stj|||�dS(N(Rwttriplot(R2RHRI((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyR{�"s(R�R�R�RER)tGrouperR�R�R�RRR3R8R�R�R�R�R�R�R�RRRR�R
R	RRR�RRRR�R�R`tpropertytframeRaR1RbRdRfR�RmRiRoR�R{R}R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�RRRRR	R
R�RRRRRRRRR�RR5RPRQRRt_Axes__draw_animateRXRYRZR[Rtdedent_interpdR�RlRpRyR�R�RzR{R|R}RqR�R-R.RR�R�R�R�R�R�R�R�R�R�R�R�RrR�R9R:R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�RR�R�t_Axes__pickR�R�R�RRRR"R	RR
RRtdedentRR$R.R(R0R2R3R5R�tdetrend_noneR4RJRMRORTRrRsRxR�R�RfR!R?R[R�RR�R�R�R�t
quiverkey_docR�R�t
quiver_docR�R�R�R�R�RlR�R�R�R�R�R�R�R�R�R�tcontour_docR�R�R�R�RRRRR
R3R:twindow_hanningR=RLRPRRRfRgRiRjRtRvRxRwt
TriContourSetttricontour_docRyRzR{(((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyR�Xs|
					
		(					!							u			
		6		
				�	G															
		+			
			
	*									
		:		*?v						
				'	X'L				
			
	X							Y	
												
			G						
			E			Q??78WP�G<33?	W	�	"�H-	4		�	�8	�X�			��				
2�m	�	���									��SKH<	L	}	%	(							(tGridSpectSubplotSpectSubplotBasecB s�eZdZd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�Zd
�Zd�Z
d�Zd
�ZRS(s�
    Base class for subplots, which are :class:`Axes` instances with
    additional methods to facilitate generating and manipulating a set
    of :class:`Axes` within a figure.
    c	O s�||_t|�dkr�t|dt�r>|d|_q�y2tt|d��}tt|�\}}}Wntk
r�td��nXt	||�|d|_n�t|�dkrq|\}}}t|�}t|�}t|t
�rNt|�dkrNg|D]}t|�^q}t	||�|dd|d!|_q�t	||�t|�d|_ntd|f��|j�|jj
|||j|�dS(s
        *fig* is a :class:`matplotlib.figure.Figure` instance.

        *args* is the tuple (*numRows*, *numCols*, *plotNum*), where
        the array of subplots in the figure has dimensions *numRows*,
        *numCols*, and where *plotNum* is the number of the subplot
        being created.  *plotNum* starts at 1 in the upper left
        corner and increases to the right.


        If *numRows* <= *numCols* <= *plotNum* < 10, *args* can be the
        decimal integer *numRows* * 100 + *numCols* * 10 + *plotNum*.
        iis4Single argument to subplot must be a 3-digit integeriis"Illegal argument(s) to subplot: %sN(R�RtR�R�t_subplotspecRRtmapRR�R�t
update_paramst_axes_classR3tfigbox(	R2R�RHRIRtrowstcolstnumRi((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyR3�"s,	

!(#
cC s`d�}g|jj�D]}||�r|^qd}t�|f|j�g}t|�S(NcS st|t�ot|t�S(N(t
issubclassR�R�(R%((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyR��"si(t	__class__tmrot!_PicklableSubplotClassConstructorR4R�(R2tnot_subplotbaseR%t
axes_classRM((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyt
__reduce__�"s	2cC s/|j�j�\}}}}|||dfS(s"get the subplot geometry, eg 2,2,3i(tget_subplotspectget_geometry(R2R�R�tnum1tnum2((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyR��"scC s8t||�|d|_|j�|j|j�dS(s0change subplot geometry, eg. from 1,1,1 to 2,2,3iN(R�R�R�RR�(R2tnumrowstnumcolsR�((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pytchange_geometry�"s
cC s|jS(s8get the SubplotSpec instance associated with the subplot(R�(R2((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyR�#scC s
||_dS(s8set the SubplotSpec instance associated with the subplotN(R�(R2tsubplotspec((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pytset_subplotspec#scC s@|j�j|jdt�\|_|_|_|_|_dS(s0update the subplot position from fig.subplotparst
return_allN(	R�R	R�RR�trowNumtcolNumR�R�(R2((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyR�
#scC s
|jdkS(Ni(R�(R2((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pytis_first_col#scC s
|jdkS(Ni(R�(R2((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pytis_first_row#scC s|j|jdkS(Ni(R�R�(R2((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pytis_last_row#scC s|j|jdkS(Ni(R�R�(R2((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pytis_last_col#scC sd|j�}|j�}x!|j�D]}|j|�q%Wx!|j�D]}|j|�qIWdS(s�
        set the visible property on ticklabels so xticklabels are
        visible only if the subplot is in the last row and yticklabels
        are visible only if the subplot is in the first column
        N(R�R�R�RR�(R2tlastrowtfirstcolR�((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pytlabel_outer #scO s"|jj|j�||�}|S(sN
        make a twinx axes of self. This is used for twinx and twiny.
        (R�tadd_subplotR�(R2RRIR((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyR/#s(R�R�R�R3R�R�R�R�R�R�R�R�R�R�R�R(((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyR��"s	/	
										cC sg|dkrt}ntj|�}|dkrctd|jt|fi|d6�}|t|<n|S(Ns	%sSubplotR�(RR�t_subplot_classesRxttypeR�R�(R�t	new_class((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pytsubplot_class_factory8#s	
	
R�cB seZdZd�ZRS(s�
    This stub class exists to return the appropriate subplot
    class when __call__-ed with an axes class. This is purely to
    allow Pickling of Axes and Subplots.
    cC s"t�}t|�}||_|S(N(R�R�R�(R2R�tsubplot_instancet
subplot_class((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyRKT#s		(R�R�R�RK(((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyR�N#stSubplot(st
__future__RRRstsysR(tdatetimetoperatorRR9tnumpyR[RR�Rtmatplotlib.artistR�R�Rtmatplotlib.axisR�R�tmatplotlib.cbookR)tmatplotlib.collectionsR�Rtmatplotlib.colorsRRtmatplotlib.contourR�R�tmatplotlib.datestdatesR�Rtmatplotlib.font_managerRGtmatplotlib.imageR�R:tmatplotlib.legendRORBtmatplotlib.linesR�Rtmatplotlib.markerstmarkersR,tmatplotlib.mlabR�tmatplotlib.pathR�R�tmatplotlib.patchesR�Rotmatplotlib.spinesR�Rtmatplotlib.quiverR�R�tmatplotlib.scaleR�R�tmatplotlib.stackplotR�R�tmatplotlib.streamplotR�R�tmatplotlib.tableR�R�tmatplotlib.textR"RJtmatplotlib.tickerttickerRbtmatplotlib.transformst
transformsR�tmatplotlib.trittriRwtmatplotlib.containerRRRR�RR)RR'R,RSR-R�R�tmatplotlib.gridspecR�R�R�R�RR�R�R�tinterpdR�tkwdoc(((s5/usr/lib64/python2.7/site-packages/matplotlib/axes.pyt<module>s�0							S	����������������������������������}�	

Anon7 - 2021