HEX
Server: LiteSpeed
System: Linux standart9.isimtescil.net 3.10.0-962.3.2.lve1.5.26.7.el7.x86_64 #1 SMP Wed Oct 2 07:53:12 EDT 2019 x86_64
User: karalev (5310)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: //opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pyo
�
�)�Uc@ sdZddlmZddlmZddljZddlmZddlj	Z	ddl
jZddlj
ZddljZddljZddljZddljZddljZddljZ ddl!Z"dZ#dej$fd��YZ%d	e%fd
��YZ&de%fd��YZ'd
fd��YZ(dej$fd��YZ)de)fd��YZ*de)fd��YZ+dS(s(
Classes for the ticks and x and y axis
i����(tdivision(trcParamsN(tallow_rasterizationi�tTickcB seZdZdddddddddeeeeed�Zd�Zd�Zdd�Z	e
jj	je	_d�Zd�Z
d�Zd�Zd	�Zd
�Zd�Zd�Zd
�Zd�Zed��Zd�ZeZd�Zd�Zd�Zed�Zd�ZRS(s�
    Abstract base class for the axis ticks, grid lines and labels

    1 refers to the bottom of the plot for xticks and the left for yticks
    2 refers to the top of the plot for xticks and the right for yticks

    Publicly accessible attributes:

      :attr:`tick1line`
          a Line2D instance

      :attr:`tick2line`
          a Line2D instance

      :attr:`gridline`
          a Line2D instance

      :attr:`label1`
          a Text instance

      :attr:`label2`
          a Text instance

      :attr:`gridOn`
          a boolean which determines whether to draw the tickline

      :attr:`tick1On`
          a boolean which determines whether to draw the 1st tickline

      :attr:`tick2On`
          a boolean which determines whether to draw the 2nd tickline

      :attr:`label1On`
          a boolean which determines whether to draw tick label

      :attr:`label2On`
          a boolean which determines whether to draw tick label

    cC s7tjj|�|d	kr)td}n|j|j�||_|jj	�}||_
||_|d	kr�|r�td|}q�td|}n||_||_
|d	kr�td|}n||_|d	kr|r�td|}qtd|}n||_|
d	kr)td|}
n|
|_|	d	krOtd|}	n|	|_|d	kr�|r}tjjd}q�tjj}n||_|j|�|j�|_|j�|_|j�|_|j�|_|j|_|j �|_!||_"|
|_#||_$||_%||_&|j'|�d	S(
s�
        bbox is the Bound2D bounding box in display coords of the Axes
        loc is the tick location in data coords
        size is the tick size in points
        s	axes.grids
%s.major.sizes
%s.minor.sizes%s.colors%s.major.pads%s.minor.pads%s.labelsizeg{�G�z�?N((tartisttArtistt__init__tNoneRt
set_figuretfiguretaxest__name__tlowert_namet_loct_sizet_widtht_colort	_base_padt_labelcolort
_labelsizetmlinestLine2Dtzordert_zordert
apply_tickdirt_get_tick1linet	tick1linet_get_tick2linet	tick2linet
_get_gridlinetgridlinet
_get_text1tlabel1tlabelt
_get_text2tlabel2tgridOnttick1Onttick2Ontlabel1Ontlabel2Ontupdate_position(tselfR
tlocR"tsizetwidthtcolorttickdirtpadt	labelsizet
labelcolorRR%R&R'R(R)tmajortname((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pyR>s\
										
					cC sdS(s;
        Calculate self._pad and self._tickmarkers
        N((R+R0((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pyR�scC s(|j|j|j|j|jg}|S(N(RRRR!R$(R+tchildren((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pytget_children�s$cC s-tjj|||�|jj||�dS(N(RRt
set_clip_pathR(R+tclippatht	transform((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pyR8�scC s|jj|jdS(NgR@(R	tdpit_pad(R+((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pytget_pad_pixels�scC s)t|j�r|j||�StifS(s�
        Test whether the mouse event occured in the Tick marks.

        This function always returns false.  It is more useful to test if the
        axis as a whole contains the mouse rather than the set of tick marks.
        (tcallablet	_containstFalse(R+t
mouseevent((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pytcontains�scC s
||_dS(sJ
        Set the tick label pad in points

        ACCEPTS: float
        N(R<(R+tval((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pytset_pad�scC s|jS(s-Get the value of the tick label pad in points(R<(R+((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pytget_pad�scC sdS(sGet the default Text 1 instanceN((R+((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pyR �scC sdS(sGet the default Text 2 instanceN((R+((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pyR#�scC sdS(s)Get the default line2D instance for tick1N((R+((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pyR�scC sdS(s)Get the default line2D instance for tick2N((R+((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pyR�scC sdS(s2Get the default grid Line2d instance for this tickN((R+((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pyR�scC s|jS(s2Return the tick location (data coords) as a scalar(R(R+((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pytget_loc�scC s�|j�sdS|j|j�tj|j�|j��}|r�|jr`|jj	|�n|j
r||jj	|�n|jr�|j
j	|�q�n|jr�|jj	|�n|jr�|jj	|�n|j|j�dS(N(tget_visiblet
open_groupRtmtransformstinterval_containstget_view_intervalRFR%RtdrawR&RR'RR(R!R)R$tclose_group(R+trenderertmidPoint((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pyRL�s 					cC s|jj|�dS(sA
        Set the text of ticklabel

        ACCEPTS: str
        N(R!tset_text(R+ts((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pyt
set_label1�scC s|jj|�dS(sB
        Set the text of ticklabel2

        ACCEPTS: str
        N(R$RP(R+RQ((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pyt
set_label2�scC s|j|j�dS(N(RR	(R+ta((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pyt_set_artist_propsscC std��dS(sCreturn the view Interval instance for the axis this tick is tickingsDerived must overrideN(tNotImplementedError(R+((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pyRKscC std��dS(NsDerived must override(RV(R+tvmintvmaxtignore((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pytset_view_interval	sc
K s(dddddg}g|D]}||kr|^q}x'|D]}t|||j|��qAWg|D]}|dkrk|^qk}|r4|jd|j�|_|j|jd|j��|j�d}|jj|�|j�d}|j	j|�|j
j|jd�|j
j|jd	�ntg|j�D]}|ddkrD|^qD�}|r�|j
j|�|j
j|�x1|j�D] \}}	t|d||	�q�Wng|j�D]}|ddkr�|^q�}
xw|
D]o\}}	t|d||	�|d
krH|j
j|	�|j
j|	�q�|j
j|	�|j
j|	�q�Wg|j�D]}|ddkry|^qy}|r$tg|D]\}}	|d|	f^q��}|jj|�|j	j|�x1|j�D] \}}	t|d||	�q�WndS(NR%R&R'R(R)R1R0iiR/Rt_R-R.R2R3i(spadstickdir(scolorszorder(ssizeswidth(s	labelsizes
labelcolor(tsetattrtpopRRt_tickdirt_get_text1_transformR!t
set_transformt_get_text2_transformR$Rt
set_markert_tickmarkersRtdicttitemstsettset_markersizetset_markeredgewidth(
R+tkwtswitchkwtktswitchestdirpadttranstkvttick_kwtvt	tick_listt
label_listtlabel_kw((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pyt
_apply_paramssJ%
%//N(Rt
__module__t__doc__RtTrueR@RRR7R8RRR=RBRDRER R#RRRRFRRLRRt	set_labelRSRURKRZRu(((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pyRsJ'I				
												tXTickcB s�eZdZdZd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d	�Z
d
�Zd�Ze
d�Zd
�Zd�ZRS(sq
    Contains all the Artists needed to make an x tick - the tick line,
    the label text and the grid line
    txtickcC s|jj|j�S(N(R
tget_xaxis_text1_transformR<(R+((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pyR_=scC s|jj|j�S(N(R
tget_xaxis_text2_transformR<(R+((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pyRa@scC s�|dkr td|j}n||_|jdkr\tjtjf|_|j|_	n(tjtjf|_|j|j
|_	dS(Ns%s.directiontin(RRR
R^RtTICKUPtTICKDOWNRcRR<R(R+R0((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pyRCs	c
C su|j�\}}}tjdddddtjd|j�d|jd|d|�}|j|�|j|�|S(	sGet the default Text instancetxitytfontpropertiesR-R/tverticalalignmentthorizontalalignment(	R_tmtexttTexttfont_managertFontPropertiesRRR`RU(R+Rntvertthoriztt((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pyR Ps			

c
C su|j�\}}}tjdddddtjd|j�d|jd|d	|�}|j|�|j|�|S(
sGet the default Text 2 instanceR�iR�iR�R-R/R�R�(	RaR�R�R�R�RRR`RU(R+RnR�R�R�((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pyR#cs			

cC s|tjdd
ddd|jddd|jdd|jd	|jd
|j�}|j|jj	dd��|j
|�|S(sGet the default line2D instancetxdataitydataR/t	linestyleRtmarkert
markersizetmarkeredgewidthRtwhichttick1(i(i(RRRRcRRRR`R
tget_xaxis_transformRU(R+tl((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pyRts	
		
cC s|tjddddd|jddd|jdd	|jd
|jd|j�}|j|jj	dd
��|j
|�|S(sGet the default line2D instanceR�iR�iR/R�RR�R�R�RR�ttick2(i(i(RRRRcRRRR`R
R�RU(R+R�((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pyR�s	
		
cC srtjdddddtddtd	d
td�}|j|jjdd
��t|j�_|j	|�|S(sGet the default line2D instanceR�gR�ig�?R/s
grid.colorR�sgrid.linestylet	linewidthsgrid.linewidthR�tgrid(gg(ig�?(
RRRR`R
R�tGRIDLINE_INTERPOLATION_STEPStget_patht_interpolation_stepsRU(R+R�((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pyR�s



cC s)|}t|jd�r0|jjj�dkpWt|jd�oW|jjj�dk}|jry|jj|f�n|jr�|j	j|f�n|j
r�|jj|f�n|jr�|j
j|�n|jr�|jj|�n|rt|j_t|j	_t|j_n||_dS(s9Set the location of tick in data coords with scalar *loc*tyaxistlineartxaxisN(thasattrR
R�t	get_scaleR�R&Rt	set_xdataR'RR%RR(R!tset_xR)R$Rxt_invalidR(R+R,R�t	nonlinear((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pyR*�s(					cC s
|jjjS(s6return the Interval instance for this axis view limits(R
tviewLimt	intervalx(R+((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pyRK�scC s[|r||f|jj_n9|j�\}}t||�t||�f|jj_dS(N(R
R�R�RKtmintmax(R+RWRXRYtVmintVmax((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pyRZ�scC s
|jjjS(N(R
tdataLimtminposx(R+((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pyt
get_minpos�scC s
|jjjS(s6return the Interval instance for this axis data limits(R
R�R�(R+((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pytget_data_interval�s(RRvRwR_RaRR R#RRRR*RKR@RZR�R�(((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pyRz6s			
								tYTickcB s�eZdZdZd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d	�Z
d
�Zd�Ze
d�Zd
�Zd�ZRS(sp
    Contains all the Artists needed to make a Y tick - the tick line,
    the label text and the grid line
    tytickcC s|jj|j�S(N(R
tget_yaxis_text1_transformR<(R+((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pyR_�scC s|jj|j�S(N(R
tget_yaxis_text2_transformR<(R+((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pyRa�scC s�|dkr td|j}n||_|jdkr\tjtjf|_|j|_	n(tjtjf|_|j|j
|_	dS(Ns%s.directionR~(RRR
R^Rt	TICKRIGHTtTICKLEFTRcRR<R(R+R0((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pyR�s	c
C su|j�\}}}tjdddddtjd|j�d|jd|d|�}|j|�|j|�|S(	sGet the default Text instanceR�iR�R�R-R/R�R�(	R_R�R�R�R�RRR`RU(R+RnR�R�R�((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pyR �s			

c
C su|j�\}}}tjdddddtjd|j�d|jd|d	|�}|j|�|j|�|S(
sGet the default Text instanceR�iR�iR�R-R/R�R�(	RaR�R�R�R�RRR`RU(R+RnR�R�R�((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pyR#�s			

cC svtjddd|jd|jdddd|jd|jd|j�}|j|jj	d	d
��|j
|�|S(
sGet the default line2D instanceiR/R�R�RR�R�RR�R�(i(i(RRRRcRRRR`R
tget_yaxis_transformRU(R+R�((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pyR	s	
		
cC svtjdd
d|jd|jdddd|jd|jd	|j�}|j|jj	d
d��|j
|�|S(sGet the default line2D instanceiiR/R�R�RR�R�RR�R�(i(i(RRRRcRRRR`R
R�RU(R+R�((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pyRs	
		
cC srtjdd
dddtddtdd	td
�}|j|jjdd��t|j�_|j	|�|S(sGet the default line2D instanceR�iiR�R/s
grid.colorR�sgrid.linestyleR�sgrid.linewidthR�R�(ii(ii(
RRRR`R
R�R�R�R�RU(R+R�((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pyR(s



cC s)|}t|jd�r0|jjj�dkpWt|jd�oW|jjj�dk}|jry|jj|f�n|jr�|j	j|f�n|j
r�|jj|f�n|jr�|j
j|�n|jr�|jj|�n|rt|j_t|j	_t|j_n||_dS(s7Set the location of tick in data coords with scalar locR�R�R�N(R�R
R�R�R�R&Rt	set_ydataR'RR%RR(R!tset_yR)R$RxR�R(R+R,R�R�((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pyR*7s(					cC s
|jjjS(s6return the Interval instance for this axis view limits(R
R�t	intervaly(R+((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pyRKRscC s[|r||f|jj_n9|j�\}}t||�t||�f|jj_dS(N(R
R�R�RKR�R�(R+RWRXRYR�R�((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pyRZVscC s
|jjjS(N(R
R�tminposy(R+((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pyR�]scC s
|jjjS(s6return the Interval instance for this axis data limits(R
R�R�(R+((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pyR�`s(RRvRwR_RaRR R#RRRR*RKR@RZR�R�(((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pyR��s											tTickercB seZdZdZRS(N(RRvRtlocatort	formatter(((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pyR�estAxiscB s�eZdZdZd�Zdd�ZdHd�Zd�Zd�Z	d�Z
d	�Zd
�Zd�Z
d�Zd
ed�Zeed��ZdHd�Zd�Zed�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zed��Z d�Z!d�Z"d�Z#d�Z$d �Z%d!�Z&d"�Z'd#�Z(ed$�Z)d%�Z*d&�Z+ed'�Z,d(�Z-d)�Z.ed*�Z/d+�Z0d,�Z1d-�Z2d.�Z3d/�Z4d0�Z5d1�Z6dHd2�Z7dHd3�Z8dHd
d4�Z9d5�Z:d6�Z;d7�Z<d8�Z=d9�Z>d:�Z?dHd;�Z@d<�ZAd=�ZBd>�ZCd?�ZDd@�ZEdA�ZFedB�ZGdC�ZHdD�ZIdE�ZJdF�ZKdHdG�ZLRS(Is�
    Public attributes

    * :attr:`axes.transData` - transform data coords to display coords
    * :attr:`axes.transAxes` - transform axis coords to display coords
    * :attr:`labelpad` - number of points between the axis and its label
    icC s'|jjdt|jjjd��S(Ns(%f,%f)i(ii(t	__class__RttupleR
t	transAxesttransform_point(R+((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pyt__str__vs	icC stjj|�|j|j�t|_t|_t|_t|_	t|_
||_t�|_
t�|_tjd�|_t|_t|_|j�|_d|_|j�|_g|_g|_||_t�|_t�|_|j �|j!d�dS(s=
        Init the axis with the parent Axes instance
        tunitssunits finalizeiR�N(sunitssunits finalize("RRRRR	RxtisDefault_majloctisDefault_minloctisDefault_majfmttisDefault_minfmttisDefault_labelR
R�R4tminortcbooktCallbackRegistryt	callbackst
_autolabelposR@t
_smart_boundst
_get_labelR"tlabelpadt_get_offset_textt
offsetTextt
majorTickst
minorTickst
pickradiusRdt_major_tick_kwt_minor_tick_kwtclat	set_scale(R+R
R�((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pyRzs.												
cC sNt|_|dkr$|jj}n|jj|�|jj||f�dS(s
        Set the coordinates of the label.  By default, the x
        coordinate of the y label is determined by the tick label
        bounding boxes, but this can lead to poor alignment of
        multiple ylabels if there are multiple axes.  Ditto for the y
        coodinate of the x label.

        You can also specify the coordinate system of the label with
        the transform.  If None, the default coordinate system will be
        the axes coordinate system (0,0) is (left,bottom), (0.5, 0.5)
        is middle, etc

        N(R@R�RR
R�R"R`tset_position(R+R�R�R:((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pytset_label_coords�s
	cC s
|jj�S(N(t_scalet
get_transform(R+((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pyR��scC s
|jjS(N(R�R5(R+((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pyR��scK sPtj|||�|_|jj|�t|_t|_t|_t|_dS(N(	tmscalet
scale_factoryR�t#set_default_locators_and_formattersRxR�R�R�R�(R+tvaluetkwargs((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pyR��s			cC s|jj|||j��S(N(R�tlimit_range_for_scaleR�(R+RWRX((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pyR��scC sH|j|jg}|j�}|j�}|j|�|j|�|S(N(R"R�tget_major_tickstget_minor_tickstextend(R+R6t
majortickst
minorticks((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pyR7�s

cC s|jtj��|jtj��|jtj��|jtj��|j	d�|j
|j�t|_
t|_t|_t|_t|_tjd�|_td|_t|_|jjd�|j
|j�|j�d|_d|_|jd�dS(sclear the current axistR�sunits finalizes	axes.gridN(sunitssunits finalize(tset_major_locatortmtickertAutoLocatortset_major_formattertScalarFormattertset_minor_locatortNullLocatortset_minor_formattert
NullFormattertset_label_textRUR"RxR�R�R�R�R�R�R�R�Rt_gridOnMajorR@t_gridOnMinorRPtreset_ticksRt	converterR�t	set_units(R+((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pyR��s(
					
	
		cC sttj|j�tj|j�|jj|jdt�g�|jj|jdt�g�d|_d|_	dS(NR4i(
R�tpopallR�R�R�t	_get_tickRxR@t_lastNumMajorTickst_lastNumMinorTicks(R+((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pyR��s	R4cK s7g}|dks|dkr1|j|j�n|dksI|dkr\|j|j�n|j|dt�}x.|D]&}|r�|j�n|j|�qxW|r�|j�n~|dks�|dkr�x$|jD]}|j	|j�q�Wn|dks|dkr3x$|j
D]}|j	|j�qWndS(s�
        Set appearance parameters for ticks and ticklabels.

        For documentation of keyword arguments, see
        :meth:`matplotlib.axes.Axes.tick_params`.
        R4tbothR�t
to_init_kwN(tappendR�R�t_translate_tick_kwRxtcleartupdateR�R�RuR�(R+R�tresetRitdictstkwtranstdttick((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pytset_tick_paramss$


c	
C sd�}dddddddd	d
ddd
dg
}ddddddddddg
}||}t�}|rod|kr�|jd�|d<nd|kr�|jd�|d<nd|kr�||jd��|d<nd|kr||jd��|d<nd|kr/||jd��|d<nd|krW||jd��|d<nd|kr||jd��|d
<nd|kr�||jd��|d
<nd|kr�||jd��|d<nd|kr�||jd��|d<nd|kr)|jd�}||d<||d<nx3|D]+}||kr0td||f��q0q0W|j|�ntd��|S(NcS sXtj|�rN|j�dkr%tS|j�dkr;tStd|��nt|�S(Ntontoffs#String "%s" should be "on" or "off"(R�tis_string_likeRRxR@t
ValueErrortbool(targ((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pyt_bool'sR-R.R/R0R1R2R3RR%R&R'R(R)tlengtht	directiontlefttbottomtrightttopt	labellefttlabelbottomt
labelrighttlabeltoptcolorss3keyword %s is not recognized; valid keywords are %ssInverse translation is deferred(RdR]R
RRV(	RiR�Rtkwkeys0tkwkeys1tkwkeysRtctkey((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pyR"sR	

	


cC s]tjj|||�|j�}|j�}x(|j|jD]}|j||�q?WdS(N(RRR8R�R�R�R�(R+R9R:R�R�tchild((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pyR8]s
cC std��dS(s6return the Interval instance for this axis view limitssDerived must overrideN(RV(R+((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pyRKdscC std��dS(NsDerived must override(RV(R+RWRXRY((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pyRZhscC std��dS(s6return the Interval instance for this axis data limitssDerived must overrideN(RV(R+((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pyR�kscC std��dS(sset the axis data limitssDerived must overrideN(RV(R+((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pytset_data_intervaloscC sdS(sRset the default limits for the axis data and view interval if they are not mutatedN((R+((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pytset_default_intervalssscC s$|dkrdS|j|j�dS(N(RRR	(R+RT((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pyRU�scc s%|jj�}|jt|��}|jjj|�gt|�D]!\}}|jj||�^qD}|jj�}|jt|��}|jjj|�gt|�D]!\}}|jj||�^q�}|||f|||fg}	x*|	D]"}
xt	|
�D]}|VqWq�WdS(sC
        Iterate through all of the major and minor ticks.
        N(
R4R�R�tlenR�tset_locst	enumerateR�R�tzip(R+t	majorLocsR�tiRCtmajorLabelst	minorLocsR�tminorLabelstmajor_minortgroupR((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pyt
iter_ticks�s44
cC sg}g}|j�}x�|j�D]�\}}}|dkrFq%ntj||�s^q%n|j|�|j|�|j|�|jr�|j	j
�r�|j	j|�}|j|�n|j
r%|jj
�r%|jj|�}|j|�q%q%Wt|�rtjj|�}	ntjjdddd�}	t|�rZtjj|�}
ntjjdddd�}
|	|
fS(sX
        Get the extents of the tick labels on either side
        of the axes.
        iN(RKR/RRIRJR*RRRSR(R!RGtget_window_extentRR)R$R$tBboxtuniontfrom_extents(R+RNtticklabelBoxestticklabelBoxes2tintervalRR,R"textenttbboxtbbox2((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pytget_ticklabel_extents�s0


cC s
||_dS(s!set the axis to have smart boundsN(R�(R+R�((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pytset_smart_bounds�scC s|jS(s%get whether the axis has smart bounds(R�(R+((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pytget_smart_bounds�scO s&g}g}|j�sdS|jt�|j�}g|j�D]}|^qB}|jr�t|�t|�}	}
|j�\}}||kr�||}}ng|D]}
|
d^q�}|j	�t
j|�}t|�r�||	kr�|	}n?||k}||}t|�dkr0|d}n
|d}||
krO|
}n?||k}||}t|�dkr�|d}n
|d}g|D],}
|
d|kr�|
d|kr�|
^q�}q�nx�|D]�\}}}|dkr�q�ntj||�s
q�n|j|�|j|�|j|�|j|�|jr{|jj�r{|jj|�}|j|�n|jr�|jj�r�|jj|�}|j|�q�q�W|j||�|jj|�|j||�|jj|jj j!��|jj|�|j"t�dS(s6Draw the axis lines, grid lines, tick lines and labelsNiii����(#RGRHRRKR/R�R�R�R�tsorttnptarrayR$RRIRJR*RRRSRLR(R!R0RR)R$t_update_label_positionR"t_update_offset_text_positionR�RPR4R�t
get_offsetRM(R+RNtargsR�R4R5R6R�t	tick_tupstview_lowt	view_hightdata_lowt	data_highttitlocstilowtcondt	good_locstihighRR,R"R7((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pyRL�sj
	
	


	



2



cC std��dS(NsDerived must override(RV(R+((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pyR�scC std��dS(NsDerived must override(RV(R+((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pyR�scC s2|j�}tjdg|D]}|j^q�S(s2Return the grid lines as a list of Line2D instancesLine2D gridline(R�R�tsilent_listR(R+tticksR((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pyt
get_gridlinesscC s|jS(s(Return the axis label as a Text instance(R"(R+((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pyt	get_label!scC s|jS(s-Return the axis offsetText as a Text instance(R�(R+((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pytget_offset_text%scC s|jS(s/Return the depth of the axis used by the picker(R�(R+((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pytget_pickradius)scC sj|j�}g|D]}|jr|j^q}g|D]}|jr8|j^q8}tjd||�S(s8Return a list of Text instances for the major ticklabelssText major ticklabel(R�R(R!R)R$R�RO(R+RPRtlabels1tlabels2((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pytget_majorticklabels-s%%cC sj|j�}g|D]}|jr|j^q}g|D]}|jr8|j^q8}tjd||�S(s8Return a list of Text instances for the minor ticklabelssText minor ticklabel(R�R(R!R)R$R�RO(R+RPRRURV((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pytget_minorticklabels4s%%cC s|r|j�S|j�S(s.Return a list of Text instances for ticklabels(RXRW(R+R�((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pytget_ticklabels;s
cC sSg}|j�}x.|D]&}|j|j�|j|j�qWtjd|�S(s9Return the major tick lines as a list of Line2D instancessLine2D ticklines(R�RRRR�RO(R+tlinesRPR((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pytget_majorticklinesAs
cC sSg}|j�}x.|D]&}|j|j�|j|j�qWtjd|�S(s9Return the minor tick lines as a list of Line2D instancessLine2D ticklines(R�RRRR�RO(R+RZRPR((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pytget_minorticklinesJs
cC s|r|j�S|j�S(s3Return the tick lines as a list of Line2D instances(R\R[(R+R�((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pyt
get_ticklinesSs
cC s
|jj�S(sAGet the major tick locations in data coordinates as a numpy array(R4R�(R+((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pytget_majorticklocsYscC s
|jj�S(sAGet the minor tick locations in data coordinates as a numpy array(R�R�(R+((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pytget_minorticklocs]scC s |r|jj�S|jj�S(s;Get the tick locations in data coordinates as a numpy array(R�R�R4(R+R�((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pytget_ticklocsas
cC std��dS(s return the default tick intsancesderived must overrideN(RV(R+R4((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pyR�gscC s�|dks|dkrdS|jj|j�|jj|j�|jj|j�|jj|j�|jj|j�|j|_|j|_|j	|_	|j
|_
dS(s)Copy the props from src tick to dest tickN(RR!tupdate_fromR$RRRR&R'R(R)(R+tsrctdest((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pyt_copy_tick_propskscC s
|jj�S(sGet the text of the label(R"tget_text(R+((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pytget_label_textzscC s
|jjS(s#Get the locator of the major ticker(R4R�(R+((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pytget_major_locator~scC s
|jjS(s#Get the locator of the minor ticker(R�R�(R+((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pytget_minor_locator�scC s
|jjS(s%Get the formatter of the major ticker(R4R�(R+((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pytget_major_formatter�scC s
|jjS(s%Get the formatter of the minor ticker(R�R�(R+((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pytget_minor_formatter�scC s|dkr$t|j���}nt|j�|kr�xFt|t|j��D](}|jdt�}|jj|�qSWn|j|kr�|jd}xXt|jt|j��D]8}|j|}|j	r�t|_
n|j||�q�Wn||_|j| }|S(s)get the tick instances; grow as necessaryR4iN(RR$RgR�trangeR�RxRR�R�R%Rd(R+tnumticksR)Rt	protoTickRP((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pyR��s  
"
		
cC s|dkr$t|j���}nt|j�|kr�xFt|t|j��D](}|jdt�}|jj|�qSWn|j|kr�|jd}xXt|jt|j��D]8}|j|}|j	r�t
|_n|j||�q�Wn||_|j| }|S(s/get the minor tick instances; grow as necessaryR4iN(
RR$RhR�RkR�R@RR�R�RxR%Rd(R+RlR)RRmRP((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pyR��s  
"
		
cK sUt|�rt}n|j�}|dkr�|dkrI|j|_n	||_xQ|jD]F}|dkrtq\n|j|_t|�r\tj|j	|�q\q\W|j|j
d<n|dkrQ|dkr�|j|_n	||_xQ|jD]F}|dkrq�n|j|_t|�r�tj|j	|�q�q�W|j|j
d<ndS(s�
        Set the axis grid on or off; b is a boolean. Use *which* =
        'major' | 'minor' | 'both' to set the grid for major or minor ticks.

        If *b* is *None* and len(kwargs)==0, toggle the grid state.  If
        *kwargs* are supplied, it is assumed you want the grid on and *b*
        will be set to True.

        *kwargs* are used to set the line properties of the grids, eg,

          xax.grid(color='r', linestyle='-', linewidth=2)
        R�R�R%R4N(sminorsboth(smajorsboth(R$RxRRR�R�R%RtsetpRR�R�R�R�(R+tbR�R�R((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pyR��s2
			cC s�tjj|�}|dkr"tS|j|k}||_|jj||�}|dk	rz|jdkrz|j|�n|r�|j	�nt
S(s�
        introspect *data* for units converter and update the
        axis.converter instance if necessary. Return *True*
        if *data* is registered for unit conversion.
        N(tmunitstregistryt
get_converterRR@R�t
default_unitsR�R�t_update_axisinfoRx(R+tdataR�tneednewtdefault((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pytupdate_units�s	
cC s�|jdkrdS|jj|j|�}|dkr;dS|jdk	r�|jj|jkr�|jr�|j|j�t	|_n|j
dk	r�|jj|j
kr�|jr�|j
|j
�t	|_n|jdk	r|jj|jkr|jr|j|j�t	|_n|jdk	r_|jj|jkr_|jr_|j|j�t	|_n|jdk	r�|jr�|j|j�t	|_n|j�dS(ss
        check the axis converter for the stored units to see if the
        axis info needs to be updated
        N(R�RtaxisinfoR�tmajlocR4R�R�R�RxtminlocR�R�R�tmajfmtR�R�R�tminfmtR�R�R"R�R�R#(R+tinfo((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pyRt�s*----cC s|jdk	p|jdk	S(N(R�RR�(R+((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pyt
have_unitsscC sY|jdkr'tjj|�|_n|jdkr:|S|jj||j|�}|S(N(R�RRpRqRrtconvertR�(R+R�tret((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pyt
convert_unitsscC s|t}|dkr$d|_t}n!||jkrE||_t}n|rx|j�|jjd�|jjd�ndS(sF
        set the units for axis

        ACCEPTS: a units tag
        R�sunits finalizeN(R@RR�RxRtR�tprocess(R+tutpchanged((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pyR�$s				
cC s|jS(sreturn the units for axis(R�(R+((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pyt	get_units8scK sOt|_|jj|�|dk	r8|jj|�n|jj|�|jS(s_  Sets the text value of the axis label

        ACCEPTS: A string value for the label
        N(R@R�R"RPRR(R+R"tfontdictR�((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pyR�<s	cC s&t|_||j_|j|�dS(sz
        Set the formatter of the major ticker

        ACCEPTS: A :class:`~matplotlib.ticker.Formatter` instance
        N(R@R�R4R�tset_axis(R+R�((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pyR�Gs	cC s&t|_||j_|j|�dS(sz
        Set the formatter of the minor ticker

        ACCEPTS: A :class:`~matplotlib.ticker.Formatter` instance
        N(R@R�R�R�R�(R+R�((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pyR�Rs	cC s&t|_||j_|j|�dS(sv
        Set the locator of the major ticker

        ACCEPTS: a :class:`~matplotlib.ticker.Locator` instance
        N(R@R�R4R�R�(R+R�((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pyR�]s	cC s&t|_||j_|j|�dS(sv
        Set the locator of the minor ticker

        ACCEPTS: a :class:`~matplotlib.ticker.Locator` instance
        N(R@R�R�R�R�(R+R�((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pyR�hs	cC s
||_dS(se
        Set the depth of the axis used by the picker

        ACCEPTS: a distance in points
        N(R�(R+R�((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pytset_pickradiusrsc
O s%|jdt�}|r=|jtj|��|j�}n"|jtj|��|j�}g}g}x�t|�D]�\}}	|t	|�krx|	j
r�|	jj||�|	jj
|�|j|	j�n|	jr|	jj||�|j|	j�|	jj
|�qqxqxW||S(s�
        Set the text values of the tick labels. Return a list of Text
        instances.  Use *kwarg* *minor=True* to select minor ticks.
        All other kwargs are used to update the text object properties.
        As for get_ticklabels, label1 (left or bottom) is
        affected for a given tick only if its label1On attribute
        is True, and similarly for label2.  The list of returned
        label text objects consists of all such label1 objects followed
        by all such label2 objects.

        The input *ticklabels* is assumed to match the set of
        tick locations, regardless of the state of label1On and
        label2On.

        ACCEPTS: sequence of strings
        R�(R]R@R�R�tFixedFormatterR�R�R�R&R$R(R!RPRRR)R$(
R+t
ticklabelsRCR�R�RPtret1tret2R)R((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pytset_ticklabels{s&		cC s�|j|�}t|�dkr}|j�\}}||kr^|jt|�t|��q}|jt|�t|��n|r�|jtj|��|j	t|��S|j
tj|��|jt|��SdS(sn
        Set the locations of the tick marks from sequence ticks

        ACCEPTS: sequence of floats
        iN(R�R$RKRZR�R�R�R�tFixedLocatorR�R�R�(R+RPR�txlefttxright((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pyt	set_ticks�scC std��dS(sq
        Update the label position based on the sequence of bounding
        boxes of all the ticklabels
        sDerived must overrideN(RV(R+tbboxestbboxes2((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pyR@�scC std��dS(sq
        Update the label position based on the sequence of bounding
        boxes of all the ticklabels
        sDerived must overrideN(RV(R+R�R�((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pyt_update_offset_text_postion�scC s|jjj|�dS(s,Pan *numsteps* (can be positive or negative)N(R4R�tpan(R+tnumsteps((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pyR��scC s|jjj|�dS(s@Zoom in/out on axis; if *direction* is >0 zoom in, else zoom outN(R4R�tzoom(R+R((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pyR��sc
C snddl}t|ttf�r?ddl}|j|�}n|j|jddddddd|��dS(s�
        Sets up x-axis ticks and labels that treat the x data as dates.
        *tz* is a :class:`tzinfo` instance or a timezone string.
        This timezone is used to create date labels.
        i����Ni�ii(tdatetimet
isinstancetstrtunicodetpytzttimezoneRx(R+ttzR�R�((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pyt	axis_date�s

N(MRRvRwt
OFFSETTEXTPADR�RRR�R�R�R�R�R7R�R�R@R	tstaticmethodRxRR8RKRZR�R"R#RUR/R:R;R<RRLR�R�RQRRRSRTRWRXRYR[R\R]R^R_R`R�RdRfRgRhRiRjR�R�R�RxRtRR�R�R�R�R�R�R�R�R�R�R�R@R�R�R�R�(((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pyR�ks�	-								#	:				
			 		T																					$										
			(				tXAxiscB s�eZdZdZd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d	�Z
d
�Zd�Zd�Z
d
�Zd�Zd�Zed�Zd�Zd�Zed�Zd�ZRS(R�R�cC st|j�r|j||�S|j|j}}y1|jjj�}|j||f�\}}Wntk
r}t	ifSX|jjjd�\}}|jjjd�\}	}
|dko|dko||kr�|||j
kp||
ko||
|j
k}|ifS(s<Test whether the mouse event occured in the x axis.
        ii(ii(ii(R>R?R�R�R
R�tinvertedR�R
R@R�(R+RAR�R�RntxaxestyaxesR�RotrR�tinaxis((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pyRB�s
cC s7|r|j}n	|j}t|jddd||�S(NiR�R4(R�R�RzR
(R+R4Rp((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pyR��s	c
C s�tjdddddtjdtd�dtd	d
ddd
�}|jtj|jj	tj
���|j|�d|_|S(NR�g�?R�iR�R-saxes.labelsizeR/saxes.labelcolorR�RR�tcenterR(
R�R�R�R�RR`RItblended_transform_factoryR
R�tIdentityTransformRUtlabel_position(R+R"((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pyR��s	

	
	c
C s�tjdddddtjdtd�dtd	d
ddd
�}|jtj|jj	tj
���|j|�d|_|S(NR�iR�iR�R-sxtick.labelsizeR/sxtick.colorR�RR�RR(
R�R�R�R�RR`RIR�R
R�R�RUtoffset_text_position(R+R�((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pyR�s	

	
	cC s|jS(s;
        Return the label position (top or bottom)
        (R�(R+((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pytget_label_positionscC s<|dkr|jjd�n|jjd�||_dS(s_
        Set the label position (top or bottom)

        ACCEPTS: [ 'top' | 'bottom' ]
        RtbaselineN(R"tset_verticalalignmentR�(R+tposition((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pytset_label_position$scC s|js
dS|jj�\}}|jdkr�t|�sO|jjj}ntj	j
|�}|j}|jj|||j
|jjdf�ndt|�s�|jjj}ntj	j
|�}|j}|jj|||j
|jjdf�dS(sq
        Update the label position based on the sequence of bounding
        boxes of all the ticklabels
        NRgR@(R�R"tget_positionR�R$R
R8tyminRIR1R2ty0R�R�R	R;tymaxty1(R+R�R�R�R�RR8R((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pyR@1s		.	cC s}|jj�\}}t|�s3|jjj}ntjj|�}|j	}|jj
|||j|jj
df�dS(sw
        Update the offset_text position based on the sequence of bounding
        boxes of all the ticklabels
        gR@N(R�R�R$R
R8R�RIR1R2R�R�R�R	R;(R+R�R�R�R�RR8((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pyRAHs	cC s�|j|�\}}|jdj�}d}|jrK||j|7}nd}|jrn||j|7}n|j�dkr�||jj|�j|7}n||jj|�j|7}||fS(s�
        Returns the amount of space one should reserve for text
        above and below the axes.  Returns a tuple (above, below)
        igR(R:R�R=theightR�R"R0(R+RNR8R9t	padPixelstabovetbelow((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pytget_text_heightsUs		 cC s|dkr7|jdddtdtdtdt�n�|dkrn|jdddtdtdtdt�n�|dkr�|jdddtdt�nr|dkr�|jdddtdt�nG|dkr�|jdddtdtdtdt�ntd	|��d
S(s�
        Set the ticks position (top, bottom, both, default or none)
        both sets the ticks to appear on both positions, but does not
        change the tick labels.  'default' resets the tick positions to
        the default: ticks on both positions, labels at bottom.  'none'
        can be used if you don't want any ticks. 'none' and 'both'
        affect only the ticks, not the labels.

        ACCEPTS: [ 'top' | 'bottom' | 'both' | 'default' | 'none' ]
        RR�R�RRRtnoneRwsinvalid position: %sN(R	RxR@R
(R+R�((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pytset_ticks_positionks 

cC s|jd�dS(suse ticks only on topRN(R�(R+((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pyttick_top�scC s|jd�dS(suse ticks only on bottomRN(R�(R+((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pyttick_bottom�sc	C s0|jd}|jd}|jo=|jo=|jo=|j}|joc|joc|joc|j}|rv|rvdS|jo�|jo�|jo�|j}|jo�|jo�|jo�|j}|r�|r�dS|jo�|jo�|jo�|j}|jo|jo|jo|j}|r,|r,dSdS(sM
        Return the ticks position (top, bottom, default or unknown)
        iRRRwtunknown(R�R�R&R'R(R)(	R+tmajttmTtmajorToptminorToptMajorBottomtMinorBottomtmajorDefaulttminorDefault((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pytget_ticks_position�s

&&&&%%cC s
|jjjS(s6return the Interval instance for this axis view limits(R
R�R�(R+((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pyRK�scC s�|r||f|jj_n{|j�\}}||krlt|||�t|||�f|jj_n-t|||�t|||�f|jj_dS(s�
        If *ignore* is *False*, the order of vmin, vmax
        does not matter; the original axis orientation will
        be preserved.
        N(R
R�R�RKR�R�(R+RWRXRYR�R�((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pyRZ�s!cC s
|jjjS(N(R
R�R�(R+((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pyR��scC s
|jjjS(s6return the Interval instance for this axis data limits(R
R�R�(R+((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pyR��scC s[|r||f|jj_n9|j�\}}t||�t||�f|jj_dS(sset the axis data limitsN(R
R�R�R�R�R�(R+RWRXRYR�R�((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pyR"�scC sd\}}|jjj�}|jjj�}|s>|r�|jdk	r�|jj|j|�}|jdk	r�|j\}}|jj	||j|�}|jj	||j|�}q�n|s�||f|jj_
n|s�||f|jj_
q�ndS(sDset the default limits for the axis interval if they are not mutatedgg�?N(gg�?(R
R�tmutatedxR�R�RRyR�tdefault_limitsR�R�(R+txmintxmaxtdataMutatedtviewMutatedR~tvalmintvalmax((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pyR#�s!(RRvt	axis_nameRBR�R�R�R�R�R@RAR�R�R�R�R�RKR@RZR�R�R"R#(((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pyR��s*						
		
									tYAxiscB s�eZdZdZd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d	�Z
d
�Zd�Zd�Z
d
�Zd�Zd�Zd�Zed�Zd�Zd�Zed�Zd�ZRS(R�R�cC st|j�r|j||�S|j|j}}y1|jjj�}|j||f�\}}Wntk
r}t	ifSX|jjjd�\}}|jjjd�\}	}
|dko|dko||kr�|||j
kp||	ko||	|j
k}|ifS(s_Test whether the mouse event occurred in the y axis.

        Returns *True* | *False*
        ii(ii(ii(R>R?R�R�R
R�R�R�R
R@R�(R+RAR�R�RnR�R�R�RoR�R�R�((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pyRB�s
cC s7|r|j}n	|j}t|jddd||�S(NiR�R4(R�R�R�R
(R+R4Rp((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pyR��s	cC s�tjdddddtjdtd�dtd	d
ddd
dd�}|jtjtj�|j	j
��|j|�d|_|S(NR�iR�g�?R�R-saxes.labelsizeR/saxes.labelcolorR�R�R�RtrotationtverticalR(
R�R�R�R�RR`RIR�R�R
R�RUR�(R+R"((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pyR��s	

	
	c
C s�tjdddddtjdtd�dtd	d
ddd
�}|jtj|jj	tj
���|j|�d
|_|S(NR�iR�g�?R�R-sytick.labelsizeR/sytick.colorR�R�R�R(
R�R�R�R�RR`RIR�R
R�R�RUR�(R+R�((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pyR�s	

	
	cC s|jS(s;
        Return the label position (left or right)
        (R�(R+((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pyR�scC s<|dkr|jjd�n|jjd�||_dS(s_
        Set the label position (left or right)

        ACCEPTS: [ 'left' | 'right' ]
        RRN(R"tset_horizontalalignmentR�(R+R�((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pyR�%scC s|js
dS|jj�\}}|jdkr�t|�sO|jjj}ntj	j
|�}|j}|jj||j
|jjd|f�ndt|�s�|jjj}ntj	j
|�}|j}|jj||j
|jjd|f�dS(sq
        Update the label position based on the sequence of bounding
        boxes of all the ticklabels
        NRgR@(R�R"R�R�R$R
R8R�RIR1R2tx0R�R�R	R;R�tx1(R+R�R�R�R�RR8R((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pyR@2s		.	cC sS|jj�\}}|jjj}|jj|||j|jjdf�dS(sw
        Update the offset_text position based on the sequence of bounding
        boxes of all the ticklabels
        gR@N(	R�R�R
R8R�R�R�R	R;(R+R�R�R�R�R((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pyRAKscC sZ|jj�\}}|dkr*d}nd}|jj|�|jj||f�dS(NRii(R�R�tset_haR�(R+R�R�R�((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pytset_offset_positionTs	cC s�|j|�\}}|jdj�}d}|jrK||j|7}nd}|jrn||j|7}n|j�dkr�||jj|�j|7}n||jj|�j|7}||fS(NigR(R:R�R=R.R�R"R0(R+RNR8R9R�RR((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pytget_text_widths^s		 cC s|dkr7|jdddtdtdtdt�n�|dkrn|jdddtdtdtdt�n�|dkr�|jdddtdt�nr|dkr�|jdddtdt�nG|dkr�|jdddtdtdtdt�ntd	|��d
S(s�
        Set the ticks position (left, right, both, default or none)
        'both' sets the ticks to appear on both positions, but does not
        change the tick labels.  'default' resets the tick positions to
        the default: ticks on both positions, labels at left.  'none'
        can be used if you don't want any ticks. 'none' and 'both'
        affect only the ticks, not the labels.

        ACCEPTS: [ 'left' | 'right' | 'both' | 'default' | 'none' ]
        RR�R�RRRR�Rwsinvalid position: %sN(R	RxR@R
(R+R�((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pyR�ps 

cC s|jd�dS(suse ticks only on rightRN(R�(R+((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pyt
tick_right�scC s|jd�dS(suse ticks only on leftRN(R�(R+((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pyt	tick_left�sc	C s0|jd}|jd}|jo=|jo=|jo=|j}|joc|joc|joc|j}|rv|rvdS|jo�|jo�|jo�|j}|jo�|jo�|jo�|j}|r�|r�dS|jo�|jo�|jo�|j}|jo|jo|jo|j}|r,|r,dSdS(sJ
        Return the ticks position (left, right, both or unknown)
        iRRRwR�(R�R�R&R'R(R)(	R+R�R�t
majorRightt
minorRightt	majorLeftt	minorLeftR�R�((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pyR��s

&&&&%%cC s
|jjjS(s6return the Interval instance for this axis view limits(R
R�R�(R+((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pyRK�scC s�|r||f|jj_n{|j�\}}||krlt|||�t|||�f|jj_n-t|||�t|||�f|jj_dS(s�
        If *ignore* is *False*, the order of vmin, vmax
        does not matter; the original axis orientation will
        be preserved.
        N(R
R�R�RKR�R�(R+RWRXRYR�R�((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pyRZ�s!cC s
|jjjS(N(R
R�R�(R+((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pyR��scC s
|jjjS(s6return the Interval instance for this axis data limits(R
R�R�(R+((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pyR��scC s[|r||f|jj_n9|j�\}}t||�t||�f|jj_dS(sset the axis data limitsN(R
R�R�R�R�R�(R+RWRXRYR�R�((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pyR"�scC sd\}}|jjj�}|jjj�}|s>|r�|jdk	r�|jj|j|�}|jdk	r�|j\}}|jj	||j|�}|jj	||j|�}q�n|s�||f|jj_
n|s�||f|jj_
q�ndS(sDset the default limits for the axis interval if they are not mutatedgg�?N(gg�?(R
R�tmutatedyR�R�RRyR�R�R�R�(R+R�R�R�R�R~R�R�((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pyR#�s!(RRvR�RBR�R�R�R�R�R@RAR�R�R�R�R�R�RKR@RZR�R�R"R#(((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pyR��s,						
				
								(,Rwt
__future__Rt
matplotlibRtmatplotlib.artistRRtmatplotlib.cbookR�tmatplotlib.font_managerR�tmatplotlib.linesRZRtmatplotlib.patchestpatchestmpatchestmatplotlib.scaletscaleR�tmatplotlib.textttextR�tmatplotlib.tickerttickerR�tmatplotlib.transformst
transformsRItmatplotlib.unitsR�RptnumpyR>R�RRRzR�R�R�R�R�(((sB/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/axis.pyt<module>s4�!�����x�