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/patches.pyo
�
�)�Uc
@ s�ddlmZddlZddlZddlZddljZddl	j
Z
ddl	mZddlj
Z
ddlmZddljZddlmZejjdd�de
jfd��YZe
je�ZxLd	d
ddd
ddddddddf
D]Zejjiee6�q	Wejejj�defd��YZd	efd��YZdefd��YZdefd��YZ defd��YZ!d
efd��YZ"defd��YZ#de!fd��YZ$defd��YZ%defd ��YZ&defd!��YZ'd
e'fd"��YZ(de'fd#��YZ)e*e+d$�Z,d%e*d&�Z-d'd(�Z.d'd)�Z/d*e0fd+��YZ1d,e1fd-��YZ2ejjd.e/e2j3��defd/��YZ4dd0l5m6Z6dd1l5m7Z7m8Z8m9Z9dd2l5m:Z:dd3l5m;Z;m<Z<dd4l5m=Z=m>Z>d5e1fd6��YZ?d7e1fd8��YZ@ejjd9e/e@j3�d:e/e?j3��d;efd<��YZAd=eAfd>��YZBdS(?i����(tdivisionN(tallow_rasterization(t	docstring(tPathtPatchs$

          =================   ==============================================
          Property            Description
          =================   ==============================================
          alpha               float
          animated            [True | False]
          antialiased or aa   [True | False]
          clip_box            a matplotlib.transform.Bbox instance
          clip_on             [True | False]
          edgecolor or ec     any matplotlib color
          facecolor or fc     any matplotlib color
          figure              a matplotlib.figure.Figure instance
          fill                [True | False]
          hatch               unknown
          label               any string
          linewidth or lw     float
          lod                 [True | False]
          transform           a matplotlib.transform transformation instance
          visible             [True | False]
          zorder              any number
          =================   ==============================================

          c
B s�eZdZdZd�Zd&d&d&d&d&d&d&ed&d�	Zd�Zd�Z	d�Z
d�Zd�Zd	�Z
d
�Zd�Zd�ZeZd
�ZeZd�ZeZd�ZeZd�ZeZd�Zd�Zd�Zd�Zd�Zd�Zd�Z d�Z!d�Z"d�Z#d�Z$d�Z%d�Z&d�Z'e(e'e&�Z)d�Z*d �Z+d!�Z,d"�Z-e.d#��Z/d$�Z0d&d%�Z1RS('s�
    A patch is a 2D thingy with a face color and an edge color.

    If any of *edgecolor*, *facecolor*, *linewidth*, or *antialiased*
    are *None*, they default to their rc params setting.
    icC st|j�jd�dS(Nt.i����(tstrt	__class__tsplit(tself((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyt__str__4sc
K sPtjj|�|dkr,tjd}n|dkrAd}n|dkr]tjd}nt|_|dk	r�|dk	s�|dk	r�ddl}|j	d�n|j
|�n|j|�|j|�|j
|�|j|�|j|�|j|�|j|�tj�|_|j|	�t|
�rLtj||
�ndS(sQ
        The following kwarg properties are supported

        %(Patch)s
        spatch.linewidthtsolidspatch.antialiasedi����NsQSetting the 'color' property will overridethe edgecolor or facecolor properties. (tartisttArtistt__init__tNonetmpltrcParamstTruet_filltwarningstwarnt	set_colort
set_edgecolort
set_facecolort
set_linewidtht
set_linestyletset_antialiasedt	set_hatchtset_fillt
transformstIdentityTransformt_combined_transformtset_path_effectstlentsetp(R	t	edgecolort	facecolortcolort	linewidtht	linestyletantialiasedthatchtfilltpath_effectstkwargsR((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR7s2		







cC s?|j�}|j�}|j|�}t|�r;|dSgS(s�
        Return a copy of the vertices used in this patch

        If the patch contains Bezier curves, the curves will be
        interpolated by line segments.  To access the curves as
        curves, use :meth:`get_path`.
        i(t
get_transformtget_pathtto_polygonsR"(R	ttranstpathtpolygons((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyt	get_vertsdscC sSt|j�r|j||�S|j�j|j|jf|j��}|ifS(sUTest whether the mouse event occurred in the patch.

        Returns T/F, {}
        (tcallablet	_containsR/tcontains_pointtxtyR.(R	t
mouseeventtinside((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pytcontainsss
	cC s|j�j||j��S(sz
        Returns *True* if the given point is inside the path
        (transformed with its transform attribute).
        (R/R7R.(R	tpoint((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR7�scC s�tjj||�|j|j��|j|j��|j|j��|j	|j
��|j|j��|j
|j��|j|j��|j|j��|j|j��dS(sM
        Updates this :class:`Patch` from the properties of *other*.
        N(RR
tupdate_fromRt
get_edgecolorRt
get_facecolorRtget_fillRt	get_hatchRt
get_linewidthRt
get_linestylet
set_transformtget_data_transformt
set_figuret
get_figuret	set_alphat	get_alpha(R	tother((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR>�scC s|j�j|j��S(s�
        Return a :class:`~matplotlib.transforms.Bbox` object defining
        the axis-aligned extents of the :class:`Patch`.
        (R/tget_extentsR.(R	((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyRL�scC s|j�tjj|�S(sm
        Return the :class:`~matplotlib.transforms.Transform` applied
        to the :class:`Patch`.
        (tget_patch_transformRR
R.(R	((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR.�scC stjj|�S(N(RR
R.(R	((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyRF�scC s
tj�S(N(RR(R	((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyRM�scC s|jS(sV
        Returns True if the :class:`Patch` is to be drawn with antialiasing.
        (t_antialiased(R	((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pytget_antialiased�scC s|jS(s>
        Return the edge color of the :class:`Patch`.
        (t
_edgecolor(R	((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR?�scC s|jS(s>
        Return the face color of the :class:`Patch`.
        (t
_facecolor(R	((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR@�scC s|jS(s2
        Return the line width in points.
        (t
_linewidth(R	((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyRC�scC s|jS(sk
        Return the linestyle.  Will be one of ['solid' | 'dashed' |
        'dashdot' | 'dotted']
        (t
_linestyle(R	((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyRD�scC s)|dkrtjd}n||_dS(sp
        Set whether to use antialiased rendering

        ACCEPTS: [True | False]  or None for default
        spatch.antialiasedN(RRRRN(R	taa((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR�scC s
|j|�S(salias for set_antialiased(R(R	RT((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pytset_aa�scC s;|dkrtjd}ntjj||j�|_dS(sx
        Set the patch edge color

        ACCEPTS: mpl color spec, or None for default, or 'none' for no color
        spatch.edgecolorN(RRRtcolorstcolorConvertertto_rgbat_alphaRP(R	R&((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR�scC s
|j|�S(salias for set_edgecolor(R(R	R&((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pytset_ec�scC so|dkrtjd}n||_tjj||j�|_|j	skt
|j�|_d|jd<ndS(sx
        Set the patch face color

        ACCEPTS: mpl color spec, or None for default, or 'none' for no color
        spatch.facecoloriiN(RRRt_original_facecolorRVRWRXRYRQRtlist(R	R&((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR�s		cC s
|j|�S(salias for set_facecolor(R(R	R&((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pytset_fc�scC s|j|�|j|�dS(s�
        Set both the edgecolor and the facecolor.

        ACCEPTS: matplotlib color spec

        .. seealso::

            :meth:`set_facecolor`, :meth:`set_edgecolor`
               For setting the edge or face color individually.
        N(RR(R	tc((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR�s
cC s�|dk	r=yt|�Wq=tk
r9td��q=Xntjj||�|j|j�tj	j
|jd |j�|_dS(sY
        Set the alpha tranparency of the patch.

        ACCEPTS: float or None
        salpha must be a float or NoneiN(
Rtfloatt	TypeErrorRR
RIRR[RVRWRXRPRY(R	talpha((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyRIs
	cC s)|dkrtjd}n||_dS(s_
        Set the patch linewidth in points

        ACCEPTS: float or None for default
        spatch.linewidthN(RRRRR(R	tw((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyRscC s
|j|�S(salias for set_linewidth(R(R	tlw((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pytset_lw$scC s"|dkrd}n||_dS(sg
        Set the patch linestyle

        ACCEPTS: ['solid' | 'dashed' | 'dashdot' | 'dotted']
        RN(RRS(R	tls((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR(s	cC s
|j|�S(salias for set_linestyle(R(R	Re((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pytset_ls1scC s#t|�|_|j|j�dS(sP
        Set whether to fill the patch

        ACCEPTS: [True | False]
        N(tboolRRR[(R	tb((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR5scC s|jS(sreturn whether fill is set(R(R	((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyRA>scC s
||_dS(s�
        Set the hatching pattern

        *hatch* can be one of::

          /   - diagonal hatching
          \   - back diagonal
          |   - vertical
          -   - horizontal
          +   - crossed
          x   - crossed diagonal
          o   - small circle
          O   - large circle
          .   - dots
          *   - stars

        Letters can be combined, in which case all the specified
        hatchings are done.  If same letter repeats, it increases the
        density of hatching of that pattern.

        Hatching is supported in the PostScript, PDF, SVG and Agg
        backends only.

        ACCEPTS: [ '/' | '\\' | '|' | '-' | '+' | 'x' | 'o' | 'O' | '.' | '*' ]
        N(t_hatch(R	R*((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyRGscC s|jS(s#Return the current hatching pattern(Ri(R	((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyRBcscC s
||_dS(s�
        set path_effects, which should be a list of instances of
        matplotlib.patheffect._Base class or its derivatives.
        N(t
_path_effects(R	R,((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR!gscC s|jS(N(Rj(R	((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pytget_path_effectsnsc
C s�|j�sdS|jd|j��|j�}|j|jdt�|j}|jddkrmd}n|j|�|j	|j
�|j|j�|j
|�|jd�|j|j�|j|j��|j}|ddkr�d}n|j|jd�|jddkr7|j|jd�n|jrS|j|j�n|j�}|j�}|j|�}|j�}|j�r�xF|j�D]}	|	j|||||�q�Wn|j||||�|j�|jd�dS(s0Draw the :class:`Patch` to the given *renderer*.NtpatchtisRGBiit
projecting( tget_visiblet
open_grouptget_gidtnew_gctset_foregroundRPRRRRRRSRRNt_set_gc_cliptset_capstyletset_urlt_urltset_snaptget_snapRQRRIRiRR/R.ttransform_path_non_affinet
get_affineRkt	draw_pathtrestoretclose_group(
R	trenderertgcRctrgbFaceR2t	transformttpathtaffinetpath_effect((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pytdrawqsB		


			 
cC std��dS(s/
        Return the path of this patch
        sDerived must overrideN(tNotImplementedError(R	((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR/�scC s|j�j|j��S(N(R/RLR.(R	R((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pytget_window_extent�sN(2t__name__t
__module__t__doc__tzorderR
RRRR4R<R7R>RLR.RFRMROtget_aaR?tget_ecR@tget_fcRCtget_lwRDtget_lsRRURRZRR]RRIRRdRRfRRAtpropertyR+RRBR!RkRR�R/R�(((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR,sh	$																																				/	t	RectangletCircletRegularPolygontPolygontWedgetArrowt
FancyArrowtYAArrowt
CirclePolygontEllipsetArctFancyBboxPatchtShadowcB sweZd�Zejdd��Zd�Zd�Zd�Z	d�Z
d�Zd�Zd�Z
d	�Zd
�ZRS(cC sdt|j�S(Ns
Shadow(%s)(RRl(R	((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR
�scK sOtj|�||_||_|||_|_tj�|_|j	�dS(s
        Create a shadow of the given *patch* offset by *ox*, *oy*.
        *props*, if not *None*, is a patch property update dictionary.
        If *None*, the shadow will have have the same color as the face,
        but darkened.

        kwargs are
        %(Patch)s
        N(
RRRltpropst_oxt_oyRtAffine2Dt_shadow_transformt_update(R	RltoxtoyR�R-((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR�s
		cC s�|j|j�|jdk	r2|j|j�n�tjj|jj��\}}}}d}||}||}||}|j	|||df�|j
|||df�|jd�dS(Ng333333�?g�?(R>RlR�RtupdateRVRWRXR@RRRI(R	trtgRhtatrho((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR��s'


cC sA|j|j�}|j|j�}|jj�j||�dS(N(tpoints_to_pixelsR�R�R�tcleart	translate(R	RR�R�((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyt_update_transform�scC s|jS(N(R�(R	((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyt_get_ox�scC s
||_dS(N(R�(R	R�((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyt_set_ox�scC s|jS(N(R�(R	((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyt_get_oy�scC s
||_dS(N(R�(R	R�((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyt_set_oy�scC s
|jj�S(N(RlR/(R	((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR/�scC s|jj�|jS(N(RlRMR�(R	((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyRM�scC s!|j|�tj||�dS(N(R�RR�(R	R((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR��s
N(R�R�R
Rtdedent_interpdRRR�R�R�R�R�R�R/RMR�(((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR��s									cB s�eZdZd�Zejd��Zd�Zd�Zd�Z	d�Z
d�Zd�Zd	�Z
d
�Zd�Zd�Zd
�Zd�Zd�Zd�Zd�Zd�Zee
e�ZRS(sh
    Draw a rectangle with lower left at *xy* = (*x*, *y*) with
    specified *width* and *height*.
    cC s*|jjd|j|j|j|jfS(Ns
(%g,%g;%gx%g)(RR�t_xt_yt_widtht_height(R	((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR
�s	cK sOtj||�|d|_|d|_||_||_tj�|_dS(s|

        *fill* is a boolean indicating whether to fill the rectangle

        Valid kwargs are:
        %(Patch)s
        iiN(	RRR�R�R�R�RRt_rect_transform(R	txytwidththeightR-((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR�s


		cC s
tj�S(s6
        Return the vertices of the rectangle
        (Rtunit_rectangle(R	((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR/
scC sy|j|j�}|j|j�}|j|j�}|j|j�}tjj||||�}tj	|�|_
dS(sNOTE: This cannot be called until after this has been added
                 to an Axes, otherwise unit conversion will fail. This
                 maxes it very important to call the accessor method and
                 not directly access the transformation member variable.
        N(tconvert_xunitsR�tconvert_yunitsR�R�R�RtBboxtfrom_boundstBboxTransformToR�(R	R8R9R�R�tbbox((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyt_update_patch_transformscC s|j�|jS(N(R�R�(R	((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyRM s
cC s�|jdks|jdkr(tifS|j�j�j|j|jf�\}}|dko�|dko�|dko�|dkifS(Nigg�?(R�R�tFalseR.tinvertedttransform_pointR8R9(R	R:R8R9((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR<$s

cC s|jS(s&Return the left coord of the rectangle(R�(R	((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pytget_x-scC s|jS(s(Return the bottom coord of the rectangle(R�(R	((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pytget_y1scC s|j|jfS(s2Return the left and bottom coords of the rectangle(R�R�(R	((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pytget_xy5scC s|jS(s"Return the width of the  rectangle(R�(R	((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyt	get_width9scC s|jS(s"Return the height of the rectangle(R�(R	((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyt
get_height=scC s
||_dS(sM
        Set the left coord of the rectangle

        ACCEPTS: float
        N(R�(R	R8((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pytset_xAscC s
||_dS(sO
        Set the bottom coord of the rectangle

        ACCEPTS: float
        N(R�(R	R9((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pytset_yIscC s|\|_|_dS(sc
        Set the left and bottom coords of the rectangle

        ACCEPTS: 2-item sequence
        N(R�R�(R	R�((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pytset_xyQscC s
||_dS(sA
        Set the width rectangle

        ACCEPTS: float
        N(R�(R	Rb((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyt	set_widthYscC s
||_dS(sA
        Set the width rectangle

        ACCEPTS: float
        N(R�(R	th((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyt
set_heightascG set|�dkr+|d\}}}}n|\}}}}||_||_||_||_dS(sj
        Set the bounds of the rectangle: l,b,w,h

        ACCEPTS: (left, bottom, width, height)
        iN(R"R�R�R�R�(R	targstlRhRbR�((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyt
set_boundsis			cC s%tjj|j|j|j|j�S(N(RR�R�R�R�R�R�(R	((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pytget_bboxxs(R�R�R�R
RR�RR/R�RMR<R�R�R�R�R�R�R�R�R�R�R�R�R�R�(((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR��s(			
															cB s�eZdZd�Zejddd��Zd�Zd�Zd�Z	e
ee	�Zd�Zd	�Z
e
ee
�Zd
�Zd�Ze
ee�Zd�Zd
�Ze
ee�Zd�Zd�ZRS(s"
    A regular polygon patch.
    cC s"d|j|jd|jdfS(Ns
Poly%d(%g,%g)ii(t_numVerticest_xy(R	((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR
�siicK sc||_||_||_||_tj|�|_tj�|_	|j
�tj||�dS(sf
        Constructor arguments:

        *xy*
          A length 2 tuple (*x*, *y*) of the center.

        *numVertices*
          the number of vertices.

        *radius*
          The distance from the center to each of the vertices.

        *orientation*
          rotates the polygon (in radians).

        Valid kwargs are:
        %(Patch)s
        N(
R�R�t_orientationt_radiusRtunit_regular_polygont_pathRR�t_poly_transformR�RR(R	R�tnumVerticestradiustorientationR-((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR�s				
cC s5|jj�j|j�j|j�j|j�dS(N(R�R�tscaleR�trotateR�R�R�(R	((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR��scC s|jS(N(R�(R	((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyt_get_xy�scC s||_|j�dS(N(R�R�(R	R�((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyt_set_xy�s	cC s|jS(N(R�(R	((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyt_get_orientation�scC s||_|j�dS(N(R�R�(R	R�((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyt_set_orientation�s	cC s|jS(N(R�(R	((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyt_get_radius�scC s||_|j�dS(N(R�R�(R	R�((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyt_set_radius�s	cC s|jS(N(R�(R	((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyt_get_numvertices�scC s
||_dS(N(R�(R	R�((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyt_set_numvertices�scC s|jS(N(R�(R	((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR/�scC s|j�|jS(N(R�R�(R	((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyRM�s
(R�R�R�R
RR�RR�R�R�R�R�R�R�R�R�R�R�R�R�tnumverticesR/RM(((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR�}s&											t	PathPatchcB s2eZdZd�Zejd��Zd�ZRS(s)
    A general polycurve path patch.
    cC sdt|jjd�S(NsPoly((%g, %g) ...)i(ttupleR�tvertices(R	((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR
�scK stj||�||_dS(s�
        *path* is a :class:`matplotlib.path.Path` object.

        Valid kwargs are:
        %(Patch)s

        .. seealso::

            :class:`Patch`
                For additional kwargs

        N(RRR�(R	R2R-((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR�scC s|jS(N(R�(R	((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR/�s(R�R�R�R
RR�RR/(((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR��s	cB szeZdZd�Zejed��Zd�Zd�Z	d�Z
d�Zd�ZeZ
eZeeed	d�ZRS(
s"
    A general polygon patch.
    cC sdt|jjd�S(NsPoly((%g, %g) ...)i(R�R�R�(R	((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR
�scK sEtj||�tj|tj�}t|�|_|j|�dS(s0
        *xy* is a numpy array with shape Nx2.

        If *closed* is *True*, the polygon will be closed so the
        starting and ending points are the same.

        Valid kwargs are:
        %(Patch)s

        .. seealso::

            :class:`Patch`
                For additional kwargs

        N(RRtnptasarraytfloat_RR�t
set_closed(R	R�tclosedR-((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR�scC s|jS(N(R�(R	((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR/scC s|jS(N(t_closed(R	((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyt
get_closedscC s�||_|j�}|rct|�r�|d|dkj�r�tj||dgg�}q�n<t|�dkr�|d|dkj�r�|dd!}n|j|�dS(Nii����i(R�R�R"tanyR�tconcatenatetallR�(R	R�R�((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR�	s	&",cC s
|jjS(N(R�R�(R	((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR�scC st|�|_dS(N(RR�(R	R�((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR�ssSet/get the vertices of the polygon.  This property is
           provided for backward compatibility with matplotlib 0.91.x
           only.  New code should use
           :meth:`~matplotlib.patches.Polygon.get_xy` and
           :meth:`~matplotlib.patches.Polygon.set_xy` instead.N(R�R�R�R
RR�RRR/R�R�R�R�R�R�R�RR�(((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR��s							cB s5eZdZd�Zejdd��Zd�ZRS(s
    Wedge shaped patch.
    cC sd|j|jfS(NsWedge(%g,%g)(ttheta1ttheta2(R	((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR
&scK s�tj||�||_|||_|_|||_|_||}t||d�dkr{d\}}tj	}n	tj
}tj||�}	|dk	r8|	j
}
|	j
ddd�t||�|}tj|
||
ddd�fdg�}tj|	j|	j|tjg�}
||
t|	j�<nXtj|	j
d|	j
ddd�fd	gg�}tj|	j||tjgg�}
||9}|tj|�7}t||
�|_tj�|_dS(
s(
        Draw a wedge centered at *x*, *y* center with radius *r* that
        sweeps *theta1* to *theta2* (in degrees).  If *width* is given,
        then a partial wedge is drawn from inner radius *r* - *width*
        to outer radius *r*.

        Valid kwargs are:

        %(Patch)s
        ihg�-���q=iNi����(iih(ii(ii(ii(RRtcenterR�R�R�R�tabsRtMOVETOtLINETOtarcRR�R_R�tvstackthstacktcodest	CLOSEPOLYR"R�R�RRt_patch_transform(R	R�R�R�R�R�R-tdeltat	connectorRtv1tv2tvR^((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR)s,	
		(+$4$
cC s|jS(N(R�(R	((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR/XsN(	R�R�R�R
RR�RRR/(((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR�"s
	.c
B s�eZdZd�Zeddgddgddgddgddgddgddgddgg�Zejdd	��Zd
�Z	d�Z
RS(s
    An arrow patch.
    cC sdS(NsArrow()((R	((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR
asgg�������?g��������g�������?g333333ӿg�?g333333�?cK s�tj||�tj|d|d�p.d}t|�|}t|�|}	tj�j||�}
tjj||	|	|dd�}tj�j	||�}|
||}
|
j
�|_dS(s�
        Draws an arrow, starting at (*x*, *y*), direction and length
        given by (*dx*, *dy*) the width of the arrow is scaled by *width*.

        Valid kwargs are:
        %(Patch)s
        iigN(RRR�tsqrtR_RR�R�tfrom_valuesR�tfrozenR(R	R8R9tdxtdyR�R-tLtcxtsxttrans1ttrans2ttrans3R1((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyRjs	!"cC s|jS(N(R�(R	((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR/~scC s|jS(N(R(R	((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyRM�s(R�R�R�R
RR�RR�RR/RM(((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR�]s		c	B s>eZdZd�Zejdedddded��ZRS(sP
    Like Arrow, but lets you set head width and head height independently.
    cC sdS(NsFancyArrow()((R	((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR
�sg����MbP?tfullicK s"|d
krd|}n|d
kr2d|}ntj|d|d�}
|r\|
}n
|
|}|sug}n�|||
|f\}}}}tjddg||dg|d||dg||dg|dgg�}|s||dg7}n|r ||ddg7}n|	dkr5|}ng|dd	g}|	d
krZ|}nB|	dkr�tj|d	 |dd
d	�g�}n
td|	�t|�|
}t|�|
}tj||g||gg�}tj||�||||f}tj	|t
t|�|�d
S(s
        Constructor arguments

            *length_includes_head*:
               *True* if head is counted in calculating the length.

            *shape*: ['full', 'left', 'right']

            *overhang*:
              distance that the arrow is swept back (0 overhang means
              triangular shape).

            *head_starts_at_zero*:
              If *True*, the head starts being drawn at coordinate 0
              instead of ending at coordinate 0.

        Valid kwargs are:
        %(Patch)s

        ig�?igg@iitlefti����trightRi����NsGot unknown shape: %s(RR�RtarrayR�t
ValueErrorR_tdotR�RtmapR�(R	R8R9RRR�tlength_includes_headt
head_widththead_lengthtshapetoverhangthead_starts_at_zeroR-tdistancetlengthtvertsthwthlthsRctleft_half_arrowtcoordstright_half_arrowRRtM((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR�sF

	
				

"$N(	R�R�R�R
RR�R�RR(((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR��s	cB sMeZdZd�Zejdddd��Zd�Zd�Zd�Z	RS(	s�
    Yet another arrow class.

    This is an arrow that is defined in display space and has a tip at
    *x1*, *y1* and a base at *x2*, *y2*.
    cC sdS(Ns	YAArrow()((R	((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR
�sig�������?icK sJ||_||_||_||_||_||_tj||�dS(s
        Constructor arguments:

        *xytip*
          (*x*, *y*) location of arrow tip

        *xybase*
          (*x*, *y*) location the arrow base mid point

        *figure*
          The :class:`~matplotlib.figure.Figure` instance
          (fig.dpi)

        *width*
          The width of the arrow in points

        *frac*
          The fraction of the arrow length occupied by the head

        *headwidth*
          The width of the base of the arrow head in points

        Valid kwargs are:
        %(Patch)s

        N(tfiguretxytiptxybaseR�tfract	headwidthRR(R	R-R.R/R�R0R1R-((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR�s						c	C s�|j\}}|j\}}|j|jjdd}|j|jjdd}|j|||||�\}}}	}
tj||||�}tj	||d||d�}||j
|tj|�}
||j
|tj|�}|j|||
||�\}}}}|j|||
||�\}}}}|j
||	||||||g�}|j||
||||||g�}tt||��S(NgR@g@(R.R/R�R-tdpiR1t	getpointstmathtatan2RR0tcostsinR�R�Rtzip(R	tx1ty1tx2ty2tk1tk2txb1tyb1txb2tyb2tthetaR�txmtymtxc1tyc1txc2tyc2txd1tyd1txd2tyd2txstys((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR/s'#''''cC s
tj�S(N(RR(R	((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyRMscC s[tt|||||f�\}}}}}||dkrU||||||fS||dkr}||||||fS||||}d|}d}d|}	|d|d|dd|d}
|	tj|	dd||
�d|}||||}|	tj|	dd||
�d|}
|
|||}||||
fS(s
        For line segment defined by (*x1*, *y1*) and (*x2*, *y2*)
        return the points on the line that is perpendicular to the
        line and intersects (*x2*, *y2*) and the distance from (*x2*,
        *y2*) of the returned points is *k*.
        ig�ii����g@g�?i(RR_R4R(R	R9R:R;R<tktmtpmR�RhR^ty3atx3aty3btx3b((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR3s-

&,,(
R�R�R�R
RR�RR/RMR3(((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR��s	#		cB s/eZdZd�Zejddd��ZRS(s4
    A polygon-approximation of a circle patch.
    cC sd|jS(NsCirclePolygon(%d,%d)(R�(R	((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR
?siicK s#tj||||dd|�dS(s/
        Create a circle at *xy* = (*x*, *y*) with given *radius*.
        This circle is approximated by a regular polygon with
        *resolution* sides.  For a smoother circle drawn with splines,
        see :class:`~matplotlib.patches.Circle`.

        Valid kwargs are:
        %(Patch)s

        R�iN(R�R(R	R�R�t
resolutionR-((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyRBs
(R�R�R�R
RR�R(((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR�;s
	cB sPeZdZd�Zejdd��Zd�Zd�Zd�Z	d�Z
RS(s
    A scale-free ellipse.
    cC s(d|jd|jd|j|jfS(NsEllipse(%s,%s;%sx%s)ii(R�R�R�(R	((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR
[sgcK sWtj||�||_|||_|_||_tj�|_t	j
�|_dS(s*
        *xy*
          center of ellipse

        *width*
          total length (diameter) of horizontal axis

        *height*
          total length (diameter) of vertical axis

        *angle*
          rotation in degrees (anti-clockwise)

        Valid kwargs are:
        %(Patch)s
        N(RRR�R�R�tangleRtunit_circleR�RRR(R	R�R�R�RXR-((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR^s		cC s�|j|jd�|j|jd�f}|j|j�}|j|j�}tj�j|d|d�j|j	�j
|�|_dS(sNOTE: This cannot be called until after this has been added
                 to an Axes, otherwise unit conversion will fail. This
                 maxes it very important to call the accessor method and
                 not directly access the transformation member variable.
        iig�?N(R�R�R�R�R�RR�R�t
rotate_degRXR�R(R	R�R�R�((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyt_recompute_transformyscC s|jS(s6
        Return the vertices of the rectangle
        (R�(R	((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR/�scC s|j�|jS(N(R[R(R	((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyRM�s
cC sq|jdks|jdkr(tifS|j�j�j|j|jf�\}}||||dkifS(Ng�?(R8RR9R�R.R�R�(R	tevR8R9((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR<�s
-(R�R�R�R
RR�RR[R/RMR<(((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR�Ws				cB sMeZdZd�Zejdd��Zd�Zd�Ze	ee�Z
RS(s
    A circle patch.
    cC s"d|jd|jd|jfS(NsCircle((%g,%g),r=%g)ii(R�R�(R	((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR
�sicK sfd|kr8ddl}|jdt�|jd�n||_tj|||d|d|�dS(s7
        Create true circle at center *xy* = (*x*, *y*) with given
        *radius*.  Unlike :class:`~matplotlib.patches.CirclePolygon`
        which is a polygonal approximation, this uses Bézier splines
        and is much closer to a scale-free circle.

        Valid kwargs are:
        %(Patch)s

        RWi����Ns5Circle is now scale free.  Use CirclePolygon instead!i(RRtDeprecationWarningtpopR�R�R(R	R�R�R-R((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR�s	cC sd||_|_dS(sF
        Set the radius of the circle

        ACCEPTS: float
        iN(R�R�(R	R�((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyt
set_radius�scC s|jdS(sreturn the radius of the circleg@(R�(R	((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyt
get_radius�s(R�R�R�R
RR�RR_R`R�R�(((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR��s			cB sAeZdZd�Zejdddd��Zed��ZRS(ss
    An elliptical arc.  Because it performs various optimizations, it
    can not be filled.

    The arc must be used in an :class:`~matplotlib.axes.Axes`
    instance---it can not be added directly to a
    :class:`~matplotlib.figure.Figure`---because it is optimized to
    only render the segments that are inside the axes bounding box
    with high resolution.
    cC s(d|jd|jd|j|jfS(NsArc(%s,%s;%sx%s)ii(R�R�R�(R	((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR
�sgg�v@c	K st|jdt�}|r'td��ntj||||||�||_||_tj|j|j�|_	dS(s
        The following args are supported:

        *xy*
          center of ellipse

        *width*
          length of horizontal axis

        *height*
          length of vertical axis

        *angle*
          rotation in degrees (anti-clockwise)

        *theta1*
          starting angle of the arc in degrees

        *theta2*
          ending angle of the arc in degrees

        If *theta1* and *theta2* are not provided, the arc will form a
        complete ellipse.

        Valid kwargs are:

        %(Patch)s
        R+sArc objects can not be filledN(
t
setdefaultR�RR�RR�R�RRR�(	R	R�R�R�RXR�R�R-R+((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR�s		c s�t|d�std��n|j�|j|j�}|j|j�}|j�j||f�\}}d}||kr�||kr�t	j
||�Sd���fd�}tj�}t
j|jj�|j�j�}|j|�}tj}|d}	d	|}
|d	}|j}|j}
i}x�t|jd
 |jd�D]�\}}|\}}|\}}xz|||||�D]c\}}tj|�}|dkr�|	|}n||
9}||kr�||
kr�d||<q�q�WqPW|j�}|j�|j|
�|}||}|jtj|�tj |�f�}|j!}xN|D]F}|r�tj"||d
�}t	j
||�t#}nt$}|}q_W||_!dS(s�
        Ellipses are normally drawn using an approximation that uses
        eight cubic bezier splines.  The error of this approximation
        is 1.89818e-6, according to this unverified source:

          Lancaster, Don.  Approximating a Circle or an Ellipse Using
          Four Bezier Cubic Splines.

          http://www.tinaja.com/glib/ellipse4.pdf

        There is a use case where very large ellipses must be drawn
        with very high accuracy, and it is too expensive to render the
        entire ellipse with enough segments (either splines or line
        segments).  Therefore, in the case where either radius of the
        ellipse is large enough that the error of the spline
        approximation will be visible (greater than one pixel offset
        from the ideal), a different technique is used.

        In that case, only the visible parts of the ellipse are drawn,
        with each visible arc using a fixed number of spline segments
        (8).  The algorithm proceeds as follows:

          1. The points where the ellipse intersects the axes bounding
             box are located.  (This is done be performing an inverse
             transformation on the axes bbox such that it is relative
             to the unit circle -- this makes the intersection
             calculation much easier than doing rotated ellipse
             intersection directly).

             This uses the "line intersecting a circle" algorithm
             from:

               Vince, John.  Geometry for Computer Graphics: Formulae,
               Examples & Proofs.  London: Springer-Verlag, 2005.

          2. The angles of each of the intersection points are
             calculated.

          3. Proceeding counterclockwise starting in the positive
             x-direction, each of the visible arc-segments between the
             pairs of vertices are drawn using the bezier arc
             approximation technique implemented in
             :meth:`matplotlib.path.Path.arc`.
        taxess'Arcs can only be used in Axes instancesg�?g��J��ؿ>g�?cs s||}||}||||}||||}||}||}	|	dkr�|||}
|||}|
|fVn�|	dkr|dkr�d}nd}tj|	�}
x^dD]S}||||||
|}
|||tj|�|
|}|
|fVq�WndS(Ngg�g�?(g�?g�(R�RR�(tx0ty0R9R:RRtdr2tDtD2tdiscrimR8R9tsign_dytsqrt_discrimtsign((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pytiter_circle_intersect_on_line7s&



	
$c3 s�d}||kr"||}}n
||}}||krK||}}n
||}}||8}||8}||7}||7}xa�||||�D]J\}	}
|	|kr�|	|kr�|
|kr�|
|kr�|	|
fVq�q�WdS(Ng��&�.>((RcRdR9R:tepsilontx0etx1ety0ety1eR8R9(Rl(sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyt!iter_circle_intersect_on_line_segQs





"0g@g�f@i����iiiNg�\!�� Ag�\!��A(%thasattrtRuntimeErrorR[R�R�R�R�R.R�RR�RR�RR�RbR�R�ttransformedR�tpiR�R�R8R�tarccosRtkeystsorttappendR7R6R7R�RR�R(R	RR�R�t	inv_errorRrtbox_pathtbox_path_transformtPItTWOPItRAD2DEGtDEG2RADR�R�tthetastp0tp1RcRdR9R:R8R9RCt
last_thetat
theta1_radR;t
path_originalR�((RlsE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR��s`.
		


		*"




'	
	
(	R�R�R�R
RR�RRR�(((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR��s

	)c	C s�|dkri}n|j�}|jdd�}|j|�}|j|�}|j\}}}}	||d8}||d8}||7}|	|7}	td||fd|d|	d|�}
|
jtj	��|
j
t�|
j|�|
j
|�dS(	sd
    This is a debug function to draw a rectangle around the bounding
    box returned by
    :meth:`~matplotlib.artist.Artist.get_window_extent` of an artist,
    to test whether the artist is returning the correct bbox.

    *props* is a dict of rectangle props with the additional property
    'pad' that sets the padding around the bbox in points.
    tpadig@R�R�R�R+N(RtcopyR^R�R�tboundsR�RERRtset_clip_onR�R�R�(RRR�R+R�R�R�RhRbR�R�((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pytbbox_artist�s&
	

	

RPc	C s||j\}}}}td||fd|d|d|dt�}|dk	r^|j|�n|jt�|j|�dS(s�
    This is a debug function to draw a rectangle around the bounding
    box returned by
    :meth:`~matplotlib.artist.Artist.get_window_extent` of an artist,
    to test whether the artist is returning the correct bbox.
    R�R�R�R$R+N(R�R�R�RRER�R�(	R�RR&R1R�RhRbR�R�((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyt	draw_bbox�s	
ic	C s�|rd|}nd}g|dD]}g^q$}x;|D]3}x*t||�D]\}}|j|�qSWq=Wg|D]+}tg|D]}t|�^q��^q{}g}|djg|D]}	d|	^q��}
|jd�|j|
�|j|djgt|d|�D]\}}	|j|	�^q��|j|
�|jg|dD]D}|djgt||�D]\}}	|j|	�^q|�^q]�|j|
�|jd�dj|�S(sR
    Given the list of list of strings, return a string of REST table format.
    t tis   t=is
(R8RztmaxR"tjointljusttextend(t_tabletleadingspaceR�tcelltcolumnstrowtcolumntcol_lentlinestclttable_formatstr((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyt
_pprint_table�s&

8*

I
	S

cC s;|rd|}nd}ggg}}}ddl}dddgg}x�t|j��D]�\}}	|j|	j�\}
}}}
|
r�gt|
d|
�D]\}}||f^q�}
nd}
|
dkr�d	}n2d
jg|
D]\}}d||f^q��}|j|	j	d||g�q^Wt
|�S(
s�
    A helper function for the _Style class.  Given the dictionary of
    (stylename : styleclass), return a formatted string listing all the
    styles. Used to update the documentation.
    R�R�i����NtClasstNametAttrsiRt,s%s=%ss``%s``(tinspecttsortedtitemst
getargspecRR8RR�RzR�R�(t_stylesR�R�tnamestattrsstclssR�R�tnametclsR�tvarargstvarkwtdefaultstargnamet
argdefaulttargstrtantav((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyt_pprint_styles�s"
2	2!t_StylecB s5eZdZd�Zed��Zed��ZRS(s�
    A base class for the Styles. It is meant to be a container class,
    where actual styles are declared as subclass of it, and it
    provides some helper functions.
    cK s�|jdd�jd�}|dj�}y|j|}Wn!tk
r_td|��nXy[g|dD]}|jd�^qn}tg|D]\}}	|t|	�f^q��}
Wn!tk
r�td|��nX|
j|�||
�S(	sP
        return the instance of the subclass with the given style name.
        R�R�R�isUnknown style : %siR�sIncorrect style argument : %s(	treplaceRtlowert_style_listtKeyErrorRtdictR_R�(R	t	stylenametkwt_listt_namet_clstcst
_args_pairRPR
t_args((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyt__new__s
&5

cC s|jS(sP
        A class method which returns a dictionary of available styles.
        (R�(tklass((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyt
get_styles1scC s
t|j�S(sP
        A class method which returns a string of the available styles.
        (R�R�(R�((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyt
pprint_styles8s(R�R�R�R�tclassmethodR�R�(((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR�s	tBoxStylecB s3eZdZiZdefd��YZdefd��YZeed<defd��YZeed<d	efd
��YZeed<defd
��YZ	e	ed<defd��YZ
e
ed<defd��YZeed<defd��YZeed<er1e
je�iee�d6ZnRS(s�
    :class:`BoxStyle` is a container class which defines several
    boxstyle classes, which are used for :class:`FancyBoxPatch`.

    A style object can be created as::

           BoxStyle.Round(pad=0.2)

    or::

           BoxStyle("Round", pad=0.2)

    or::

           BoxStyle("Round, pad=0.2")

    Following boxstyle classes are defined.

    %(AvailableBoxstyles)s

    An instance of any boxstyle class is an callable object,
    whose call signature is::

       __call__(self, x0, y0, width, height, mutation_size, aspect_ratio=1.)

    and returns a :class:`Path` instance. *x0*, *y0*, *width* and
    *height* specify the location and size of the box to be
    drawn. *mutation_scale* determines the overall size of the
    mutation (by which I mean the transformation of the rectangle to
    the fancy box).  *mutation_aspect* determines the aspect-ratio of
    the mutation.

    .. plot:: mpl_examples/pylab_examples/fancybox_demo2.py
    t_BasecB s,eZdZd�Zd�Zdd�ZRS(s_
        :class:`BBoxTransmuterBase` and its derivatives are used to make a
        fancy box around a given rectangle. The :meth:`__call__` method
        returns the :class:`~matplotlib.path.Path` of the fancy box. This
        class is not an artist and actual drawing of the fancy box is done
        by the :class:`FancyBboxPatch` class.
        cC sttj|�j�dS(s(
            initializtion.
            N(tsuperR�R�R(R	((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyRvscC std��dS(s�
            The transmute method is a very core of the
            :class:`BboxTransmuter` class and must be overriden in the
            subclasses. It receives the location and size of the
            rectangle, and the mutation_size, with which the amount of
            padding and etc. will be scaled. It returns a
            :class:`~matplotlib.path.Path` instance.
            sDerived must overrideN(R�(R	RcRdR�R�t
mutation_size((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyt	transmutes	g�?c
C s�|dk	r�||||}}|j|||||�}|j|j}}	|dd�df||dd�df<t||	�S|j|||||�SdS(sH
            Given the location and size of the box, return the path of
            the box around it.

              - *x0*, *y0*, *width*, *height* : location and size of the box
              - *mutation_size* : a reference scale for the mutation.
              - *aspect_ratio* : aspect-ration for the mutation.
            Ni(RR�R�RR(
R	RcRdR�R�R�taspect_ratioR2R�R((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyt__call__�s
*
(R�R�R�RR�R�(((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR�is			tSquarecB s#eZdZdd�Zd�ZRS(s&
        A simple square box.
        g333333�?cC s#||_ttj|�j�dS(sB
             *pad*
                amount of padding
            N(R�R�R�R�R(R	R�((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR�s	cC s�||j}|d||d|}}||||}}||||}}||f||f||f||f||f||fg}	tjtjtjtjtjtjg}
t|	|
�}|S(Ng@(R�RR�R�R(R	RcRdR�R�R�R�R9R:tcptcomR2((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR��s
$(R�R�R�RR�(((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR��s	tsquaretLArrowcB s#eZdZdd�Zd�ZRS(s"
        (left) Arrow Box
        g333333�?cC s#||_ttj|�j�dS(N(R�R�R�R�R(R	R�((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR�s	c
C sH||j}|d||d|}}||||}}||||}}||d}	|	d}
||d}||
|f||f||f||
|f||
||
f||	||	f||
||
f||
|f||
|fg	}tjtjtjtjtjtjtjtjtjg	}t||�}
|
S(Ng@g�?gffffff�?(R�RR�R�R(R	RcRdR�R�R�R�R9R:RtdxxR�R�R2((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR��s 

,3 (R�R�R�RR�(((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR��stlarrowtRArrowcB s#eZdZdd�Zd�ZRS(s#
        (right) Arrow Box
        g333333�?cC sttj|�j|�dS(N(R�R�R�R(R	R�((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyRscC s]tjj||||||�}d|||jdd�df|jdd�df<|S(Nii(R�R�R�R�(R	RcRdR�R�R�tp((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR�s8(R�R�R�RR�(((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR��strarrowtRoundcB s&eZdZddd�Zd�ZRS(s+
        A box with round corners.
        g333333�?cC s,||_||_ttj|�j�dS(s�
            *pad*
              amount of padding

            *rounding_size*
              rounding radius of corners. *pad* if None
            N(R�t
rounding_sizeR�R�R�R(R	R�R�((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyRs		c
C s�||j}|jr&||j}n|}|d||d|}}||||}}||||}}	|||f|||f||f|||f||	|f||	f|||	f|||	f||	f||	|f|||f||f|||f|||fg}
tjtjtjtjtjtjtjtjtjtjtjtjtjtjg}t|
|�}|S(Ng@(R�R�RR�R�tCURVE3R(
R	RcRdR�R�R�R�tdrR9R:R�R�R2((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR�$s<
	




N(R�R�R�RRR�(((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR�stroundtRound4cB s&eZdZddd�Zd�ZRS(s/
        Another box with round edges.
        g333333�?cC s,||_||_ttj|�j�dS(s�
            *pad*
              amount of padding

            *rounding_size*
              rounding size of edges. *pad* if None
            N(R�R�R�R�R�R(R	R�R�((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyRZs			c
C s�||j}|jr&||j}n
|d}|d|d||d|d|}}||||||}}||||}}	||f||||f||||f||f||||f|||	|f||	f|||	|f|||	|f||	f|||	|f||||f||f||fg}
tjtjtjtjtjtjtjtjtjtjtjtjtjtjg}t|
|�}|S(Ng@i(R�R�RR�tCURVE4R(
R	RcRdR�R�R�R�R�R9R:R�R�R2((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR�gs,
	
	++++N(R�R�R�RRR�(((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR�Us
tround4tSawtoothcB s/eZdZddd�Zd�Zd�ZRS(s!
        A sawtooth box.
        g333333�?cC s,||_||_ttj|�j�dS(s�
            *pad*
              amount of padding

            *tooth_size*
              size of the sawtooth. pad* if None
            N(R�t
tooth_sizeR�R�R�R(R	R�R�((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR�s		cC s!||j}|jdkr0|jd|}n
|j|}|d}|d|||d||}}tt|||d��d}	|||	}
tt|||d��d}|||}||||||}}||||}
}|ggt|	d�D]}|||
d|^q|
|g}|g||||||g|	||g}|
g|
||
|
||
g|	|
|g}|ggt|d�D]}|||d|^q�||g}|
ggt|	d�D]}|
||
d|^q�||g}|g||||||g|	||g}|g||||||g|||g}|ggt|d�D]}|||d|^q�||g}t||�t||�t||�t||�|d|dfg}|S(Ng�?g@ii(R�R�RtintR�trangeR8(R	RcRdR�R�R�R�R�ttooth_size2tdsx_ntdsxtdsy_ntdsyR9R:titbottom_saw_xtbottom_saw_ytright_saw_xtright_saw_yt	top_saw_xt	top_saw_yt
left_saw_xt
left_saw_ytsaw_vertices((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyt_get_sawtooth_vertices�s@


""7""77""73cC s+|j|||||�}t|�}|S(N(R�R(R	RcRdR�R�R�R�R2((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR��sN(R�R�R�RRR�R�(((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR��s	Atsawtootht
RoundtoothcB s&eZdZddd�Zd�ZRS(s&
        A roundtooth(?) box.
        g333333�?cC s ttj|�j||�dS(s�
            *pad*
              amount of padding

            *tooth_size*
              size of the sawtooth. pad* if None
            N(R�R�R�R(R	R�R�((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR�sc	C s\|j|||||�}tjgtjtjgt|�dd}t||�}|S(Nii(R�RR�R�R"(	R	RcRdR�R�R�R�R�R2((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR��s.N(R�R�R�RRR�(((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR��st
roundtoothtAvailableBoxstyles(R�R�R�R�tobjectR�R�R�R�R�R�R�R�tcbooktdedentR�(((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR�Bs(">)
&

?
7
X

R�cB s�eZdZd�Zejddddd��Zejdd��Zd�Z	d�Z
d�Zd	�Zd
�Z
d�Zd�Zd
�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�ZRS(s}
    Draw a fancy box around a rectangle with lower left at *xy*=(*x*,
    *y*) with specified width and height.

    :class:`FancyBboxPatch` class is similar to :class:`Rectangle`
    class, but it draws a fancy box around the rectangle. The
    transformation of the rectangle box to the fancy box is delegated
    to the :class:`BoxTransmuterBase` and its derived classes.

    cC s*|jjd|j|j|j|jfS(NsFancyBboxPatch(%g,%g;%gx%g)(RR�R�R�R�R�(R	((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR
s	R�g�?c	K s�tj||�|d|_|d|_||_||_|dkro|dkrctd��n||_n
|j	|�||_
||_dS(s�
        *xy* = lower left corner

        *width*, *height*

        *boxstyle* determines what kind of fancy box will be drawn. It
        can be a string of the style name with a comma separated
        attribute, or an instance of :class:`BoxStyle`. Following box
        styles are available.

        %(AvailableBoxstyles)s

        *mutation_scale* : a value with which attributes of boxstyle
        (e.g., pad) will be scaled. default=1.

        *mutation_aspect* : The height of the rectangle will be
        squeezed by this value before the mutation and the mutated
        box will be stretched by the inverse of it. default=None.

        Valid kwargs are:
        %(Patch)s
        iitcustoms7bbox_transmuter argument is needed with custom boxstyleN(RRR�R�R�R�RRt_bbox_transmutertset_boxstylet_mutation_scalet_mutation_aspect(	R	R�R�R�tboxstyletbbox_transmutertmutation_scaletmutation_aspectR-((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyRs

		
	cK sb|dkrtj�St|tj�r4||_n*t|�rL||_nt||�|_dS(s�
        Set the box style.

        *boxstyle* can be a string with boxstyle name with optional
        comma-separated attributes. Alternatively, the attrs can
        be provided as keywords::

            set_boxstyle("round,pad=0.2")
            set_boxstyle("round", pad=0.2)

        Old attrs simply are forgotten.

        Without argument (or with *boxstyle* = None), it returns
        available box styles.

        ACCEPTS: [ %(AvailableBoxstyles)s ]

        N(RR�R�t
isinstanceR�R�R5(R	RR�((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyRKs
cC s
||_dS(sA
        Set the mutation scale.

        ACCEPTS: float
        N(R(R	R�((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pytset_mutation_scalekscC s|jS(s,
        Return the mutation scale.
        (R(R	((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pytget_mutation_scalesscC s
||_dS(sT
        Set the aspect ratio of the bbox mutation.

        ACCEPTS: float
        N(R(R	taspect((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pytset_mutation_aspectyscC s|jS(s?
        Return the aspect ratio of the bbox mutation.
        (R(R	((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pytget_mutation_aspect�scC s|jS(sReturn the boxstyle object(R�(R	((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pytget_boxstyle�scC s=|j�|j|j|j|j|j�|j��}|S(s:
        Return the mutated path of the rectangle
        (R
R�R�R�R�R	R(R	R�((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR/�s
	cC s|jS(s&Return the left coord of the rectangle(R�(R	((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR��scC s|jS(s(Return the bottom coord of the rectangle(R�(R	((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR��scC s|jS(s"Return the width of the  rectangle(R�(R	((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR��scC s|jS(s"Return the height of the rectangle(R�(R	((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR��scC s
||_dS(sM
        Set the left coord of the rectangle

        ACCEPTS: float
        N(R�(R	R8((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR��scC s
||_dS(sO
        Set the bottom coord of the rectangle

        ACCEPTS: float
        N(R�(R	R9((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR��scC s
||_dS(sA
        Set the width rectangle

        ACCEPTS: float
        N(R�(R	Rb((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR��scC s
||_dS(sA
        Set the width rectangle

        ACCEPTS: float
        N(R�(R	R�((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR��scG set|�dkr+|d\}}}}n|\}}}}||_||_||_||_dS(sj
        Set the bounds of the rectangle: l,b,w,h

        ACCEPTS: (left, bottom, width, height)
        iN(R"R�R�R�R�(R	R�R�RhRbR�((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR��s			cC s%tjj|j|j|j|j�S(N(RR�R�R�R�R�R�(R	((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR��sN(R�R�R�R
RR�RRRRR	RRR
R/R�R�R�R�R�R�R�R�R�R�(((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR�s2
	+															(t)split_bezier_intersecting_with_closedpath(tget_intersectiont
inside_circlet
get_parallels(tmake_wedged_bezier2(tsplit_path_inouttget_cos_sin(tmake_path_regulartconcatenate_pathstConnectionStylecB s�eZdZiZdefd��YZdefd��YZeed<defd��YZeed<d	efd
��YZeed<defd
��YZ	e	ed<defd��YZ
e
ed<er�eje�ie
e�d6ZnRS(s
    :class:`ConnectionStyle` is a container class which defines
    several connectionstyle classes, which is used to create a path
    between two points. These are mainly used with
    :class:`FancyArrowPatch`.

    A connectionstyle object can be either created as::

           ConnectionStyle.Arc3(rad=0.2)

    or::

           ConnectionStyle("Arc3", rad=0.2)

    or::

           ConnectionStyle("Arc3, rad=0.2")

    The following classes are defined

    %(AvailableConnectorstyles)s


    An instance of any connection style class is an callable object,
    whose call signature is::

        __call__(self, posA, posB, patchA=None, patchB=None, shrinkA=2., shrinkB=2.)

    and it returns a :class:`Path` instance. *posA* and *posB* are
    tuples of x,y coordinates of the two points to be
    connected. *patchA* (or *patchB*) is given, the returned path is
    clipped so that it start (or end) from the boundary of the
    patch. The path is further shrunk by *shrinkA* (or *shrinkB*)
    which is given in points.

    R�cB sHeZdZddd��YZd�Zd�Zddddd�ZRS(	s�
        A base class for connectionstyle classes. The dervided needs
        to implement a *connect* methods whose call signature is::

          connect(posA, posB)

        where posA and posB are tuples of x, y coordinates to be
        connected.  The methods needs to return a path connecting two
        points. This base class defines a __call__ method, and few
        helper methods.
        tSimpleEventcB seZd�ZRS(cC s|\|_|_dS(N(R8R9(R	R�((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR	s(R�R�R(((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR	sc s��rQ�fd�}yt||�\}}Wntk
rG|}nX|}n�r��fd�}yt||�\}}Wntk
r�|}nX|}n|S(sI
            Clip the path to the boundary of the patchA and patchB.
            The starting point of the path needed to be inside of the
            patchA and the end point inside the patch B. The *contains*
            methods of each patch object is utilized to test if the point
            is inside the path.
            c s#tjj|�}�j|�dS(Ni(RR�RR<(t
xy_displaytxy_event(tpatchA(sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pytinsideA+	sc s#tjj|�}�j|�dS(Ni(RR�RR<(RR(tpatchB(sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pytinsideB8	s(RR(R	R2RRRRRR((RRsE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyt_clip!	s	

	

	c
C s�|ra|jd\}}t|||�}yt||�\}}|}Wqatk
r]qaXn|r�|jd\}}t|||�}	yt||	�\}}|}Wq�tk
r�q�Xn|S(s\
            Shrink the path by fixed size (in points) with shrinkA and shrinkB
            ii����(R�RRR(
R	R2tshrinkAtshrinkBR8R9RRRR((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyt_shrinkG	s"



g@c
C s@|j||�}|j|||�}|j|||�}	|	S(s�
            Calls the *connect* method to create a path between *posA*
             and *posB*. The path is clipped and shrinked.
            (tconnectRR"(
R	tposAtposBR R!RRR2tclipped_patht
shrinked_path((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR�a	s(N(R�R�R�RRR"RR�(((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR�	s
	&	tArc3cB s#eZdZdd�Zd�ZRS(sM
        Creates a simple quadratic bezier curve between two
        points. The curve is created so that the middle contol points
        (C1) is located at the same distance from the start (C0) and
        end points(C2) and the distance of the C1 to the line
        connecting C0-C2 is *rad* times the distance of C0-C2.
        gcC s
||_dS(sE
            *rad*
              curvature of the curve.
            N(trad(R	R)((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyRy	scC s�|\}}|\}}||d||d}}||||}	}
|j}|||
|||	}}
||f||
f||fg}tjtjtjg}t||�S(Ng@(R)RR�R�(R	R$R%R9R:R;R<tx12ty12RRtfRtcyR�R((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR#�	s			(R�R�R�RR#(((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR(p	starc3tAngle3cB s&eZdZddd�Zd�ZRS(s�
        Creates a simple quadratic bezier curve between two
        points. The middle control points is placed at the
        intersecting point of two lines which crosses the start (or
        end) point and has a angle of angleA (or angleB).
        iZicC s||_||_dS(s�
            *angleA*
              starting angle of the path

            *angleB*
              ending angle of the path
            N(tangleAtangleB(R	R0R1((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR�	s		c	C s�|\}}|\}}tj|jdtj�tj|jdtj�}}tj|jdtj�tj|jdtj�}	}
t|||||||	|
�\}}||f||f||fg}
tjtj	tj	g}t|
|�S(Ng�f@(
R4R6R0RvR7R1RRR�R�(R	R$R%R9R:R;R<tcosAtsinAtcosBtsinBRR-R�R((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR#�	s!!!(R�R�R�RR#(((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR/�	s
tangle3tAnglecB s)eZdZdddd�Zd�ZRS(sL
        Creates a picewise continuous quadratic bezier path between
        two points. The path has a one passing-through point placed at
        the intersecting point of two lines which crosses the start
        (or end) point and has a angle of angleA (or angleB).  The
        connecting edges are rounded with *rad*.
        iZigcC s||_||_||_dS(s�
            *angleA*
              starting angle of the path

            *angleB*
              ending angle of the path

            *rad*
              rounding radius of the edge
            N(R0R1R)(R	R0R1R)((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR�	s		c	C s|\}}|\}}tj|jdtj�tj|jdtj�}}tj|jdtj�tj|jdtj�}	}
t|||||||	|
�\}}||fg}
tjg}|j	dkr|
j
||f�|j
tj�n�||||}}|d|dd}|j	|}||||}}|d|dd}|j	|}|
j||||||f||f||||||fg�|jtjtj
tj
g�|
j
||f�|j
tj�t|
|�S(Ng�f@gig�?(R4R6R0RvR7R1RRR�R)RzR�R�R�(R	R$R%R9R:R;R<R2R3R4R5RR-R�Rtdx1tdy1td1tf1tdx2tdy2td2tf2((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR#�	s4!!

	 (R�R�R�RR#(((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR7�	sRXR�cB s/eZdZdddddd�Zd�ZRS(s9
        Creates a picewise continuous quadratic bezier path between
        two points. The path can have two passing-through points, a
        point placed at the distance of armA and angle of angleA from
        point A, another point with respect to point B. The edges are
        rounded with *rad*.
        igcC s1||_||_||_||_||_dS(sH
            *angleA* :
              starting angle of the path

            *angleB* :
              ending angle of the path

            *armA* :
              length of the starting arm

            *armB* :
              length of the ending arm

            *rad* :
              rounding radius of the edges
            N(R0R1tarmAtarmBR)(R	R0R1R@RAR)((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR	
s
				cC s1|\}}|\}}||fg}g}tjg}	|jr�tj|jdtj�}
tj|jdtj�}|j|j}|j	|||
|||f�|j}|j	|||
|||f�n|j
r`tj|jdtj�}
tj|jdtj�}||j
|
||j
|}}|r�|d\}}||||}}||||d}|j	||j||||j||f�|j|�|	jtj
tjtjg�n;|d\}}||||}}||||d}||j}||||||||f||fg}n|r|d\}}||||}}||||d}|j	||j||||j||f�|j|�|	jtj
tjtjg�n|j	||f�|	j	tj
�t||	�S(Ng�f@i����g�?(RR�R@R4R6R0RvR7R)RzRAR1R�R�R�(R	R$R%R9R:R;R<R�troundedRR2R3tdR4R5tx_armBty_armBtxptypRRtdd((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR#"
sV	#	&	#1

!1
N(R�R�R�RRR#(((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR�
sRtBarcB s,eZdZddddd�Zd�ZRS(s
        A line with *angle* between A and B with *armA* and
        *armB*. One of the arm is extend so that they are connected in
        a right angle. The length of armA is determined by (*armA*
        + *fraction* x AB distance). Same for armB.
        gg333333�?cC s(||_||_||_||_dS(s#
            *armA* : minimum length of armA
            *armB* : minimum length of armB
            *fraction* : a fraction of the distance between two points that will be added to armA and armB.
            *angle* : anlge of the connecting line (if None, parallel to A and B)
            N(R@RAtfractionRX(R	R@RARJRX((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyRg
s			c C s0|\}}|\}}\}}||d||d}	}
tj||||�}||||}}
|||
|
d}|||
|}}|j|j}}|jdk	r{|jdtj}||}|tj|�}|tj|�}||tj|�||tj|�}}||}||||}}
|||
|
d}|||
|}}nd}t	||�}|j
||}||||||}}||||||}}||f||f||f||fg}tjtj
tj
tj
g}t||�S(Ng@g�?g�f@g(R4R5R@RARXRRvR7R6R�RJRR�R�( R	R$R%R9R:tx20ty20R;R<R*R+R�RRRHtddxtddyR@RAttheta0tdthetatdltdLtdd2tarmR,tcx1tcy1tcx2tcy2R�R((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR#s
s@
/
			N(R�R�R�RRR#(((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyRI_
stbartAvailableConnectorstyles(R�R�R�R�R�R�R(R/R7R�RIR�R�R�(((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR�s $`#
'
=
[
R
t
ArrowStylecB s?eZdZiZdefd��YZdefd��YZdefd��YZeed<defd	��YZeed
<defd��YZ	e	ed
<defd��YZ
e
ed<defd��YZeed<defd��YZeed<defd��YZ
e
ed<defd��YZdefd��YZeed<defd ��YZeed!<d"efd#��YZeed$<d%efd&��YZeed'<d(efd)��YZeed*<d+efd,��YZeed-<d.efd/��YZeed0<er=eje�iee�d16ZnRS(2s�
    :class:`ArrowStyle` is a container class which defines several
    arrowstyle classes, which is used to create an arrow path along a
    given path. These are mainly used with :class:`FancyArrowPatch`.

    A arrowstyle object can be either created as::

           ArrowStyle.Fancy(head_length=.4, head_width=.4, tail_width=.4)

    or::

           ArrowStyle("Fancy", head_length=.4, head_width=.4, tail_width=.4)

    or::

           ArrowStyle("Fancy, head_length=.4, head_width=.4, tail_width=.4")

    The following classes are defined

    %(AvailableArrowstyles)s


    An instance of any arrow style class is an callable object,
    whose call signature is::

        __call__(self, path, mutation_size, linewidth, aspect_ratio=1.)

    and it returns a tuple of a :class:`Path` instance and a boolean
    value. *path* is a :class:`Path` instance along witch the arrow
    will be drawn. *mutation_size* and *aspect_ratio* has a same
    meaning as in :class:`BoxStyle`. *linewidth* is a line width to be
    stroked. This is meant to be used to correct the location of the
    head so that it does not overshoot the destination point, but not all
    classes support it.

    .. plot:: mpl_examples/pylab_examples/fancyarrow_demo.py
    R�cB s;eZdZd�Zed��Zd�Zdd�ZRS(s�
        Arrow Transmuter Base class

        ArrowTransmuterBase and its derivatives are used to make a fancy
        arrow around a given path. The __call__ method returns a path
        (which will be used to create a PathPatch instance) and a boolean
        value indicating the path is open therefore is not fillable.  This
        class is not an artist and actual drawing of the fancy arrow is
        done by the FancyArrowPatch class.

        cC sttj|�j�dS(N(R�R[R�R(R	((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR�
scC s6t|j��}t|dd�t|dd�S(s2 Some ArrowStyle class only wokrs with a simple
            quaratic bezier curve (created with Arc3Connetion or
            Angle3Connector). This static method is to check if the
            provided path is a simple quadratic bezier curve and returns
            its control points if true.
            ii(R\t
iter_segments(R2tsegments((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pytensure_quadratic_bezier�
scC std��dS(s�
            The transmute method is a very core of the ArrowStyle
            class and must be overriden in the subclasses. It receives
            the path object along which the arrow will be drawn, and
            the mutation_size, with which the amount arrow head and
            etc. will be scaled. The linewidth may be used to adjust
            the the path so that it does not pass beyond the given
            points. It returns a tuple of a Path instance and a
            boolean. The boolean value indicate whether the path can
            be filled or not. The return value can also be a list of paths
            and list of booleans of a same length.
            sDerived must overrideN(R�(R	R2R�R'((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR�sg�?cC s.t|�}|dk	r|j|j}}|dd�df||dd�df<t||�}|j|||�\}}	tj|	�r
g}
xgt|�D]Y}|j|j}}
|dd�df||dd�df<|
j	t||
��q�W|
|	fS||	fSn|j|||�SdS(s�
            The __call__ method is a thin wrapper around the transmute method
            and take care of the aspect ratio.
            Ni(
RRR�RRR�R�titerableR8Rz(R	R2R�R'R�R�Rt
path_shrinkedtpath_mutatedtfillablet	path_listR�R
R^((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR�s"*	*

(R�R�R�RtstaticmethodR^R�R�(((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR��
s
		t_CurvecB s;eZdZddeeddd�Zd�Zd�ZRS(s*
        A simple arrow which will work with any path instance. The
        returned path is simply concatenation of the original path + at
        most two paths representing the arrow head at the begin point and the
        at the end point. The arrow heads can be either open or closed.
        g�������?g�������?cC sS|||_|_|||_|_|||_|_ttj|�j	�dS(s>
            The arrows are drawn if *beginarrow* and/or *endarrow* are
            true. *head_length* and *head_width* determines the size
            of the arrow relative to the *mutation scale*.  The
            arrowhead at the begin (or end) is closed if fillbegin (or
            fillend) is True.
            N(
t
beginarrowtendarrowRRt	fillbegintfillendR�R[ReR(R	RfRgRhRiRR((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyREs
c	C s3||||}	}
tj|	d|
d�}d||}||	|}
||
|}|	|||
||}	}
||	||
||	||
}}||	||
||	||
}}||
||||f||
||f||
||||fg}tjtjtjg}|||
|fS(s
            Return the paths for arrow heads. Since arrow lines are
            drawn with capstyle=projected, The arrow goes beyond the
            desired point. This method also returns the amount of the path
            to be shrinked so that it does not overshoot.
            ig�?(R4RRR�R�(R	RcRdR9R:t	head_disttcos_ttsin_tR'RRtcp_distancet
pad_projectedRMRNR8R9R<R=tvertices_arrowtcodes_arrow((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyt_get_arrow_wedgeVs
&%c	C s�|j||j|}}tj|d|d�}||||}}|jd\}	}
|jd\}}|jr�|j|||	|
||||�\}
}}}ngg}
}d\}}|jd\}}|jd\}}|jr(|j||||||||�\}}}}ngg}}d\}}tt	j
|	||
|fg|jdd!||||fgg�|j�g}tg}|jr?|j
rt	j
|
|
d|
dgg�}t	j
|tjtjgg�}|jt||��|jt�q?|jt|
|��|jt�n|jr�|jr�|jt�t	j
||d|dgg�}t	j
|tjtjgg�}|jt||��q�|jt�|jt||��n||fS(	Niiigi����i����(gg(gg(RRR4RR�RfRqRgRR�R�RR�RhR�RRzRRi(R	R2R�R'RRRjRkRlRcRdR9R:t	verticesAtcodesAtddxAtddyAR;R<tx3ty3t	verticesBtcodesBtddxBtddyBR�t	_fillableR�R^((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR�~sT
		
		

			#!		
#!
N(R�R�R�RR�RRqR�(((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyRe=s	(tCurvecB seZdZd�ZRS(s8
        A simple curve without any arrow head.
        cC s&ttj|�jdtdt�dS(NRfRg(R�R[R}RR�(R	((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR�s(R�R�R�R(((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR}�st-tCurveAcB seZdZddd�ZRS(s:
        An arrow with a head at its begin point.
        g�������?g�������?c	C s2ttj|�jdtdtd|d|�dS(s�
            *head_length*
              length of the arrow head

            *head_width*
              width of the arrow head
            RfRgRRN(R�R[RRRR�(R	RR((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR�s	(R�R�R�R(((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR�ss<-tCurveBcB seZdZddd�ZRS(s8
        An arrow with a head at its end point.
        g�������?g�������?c	C s2ttj|�jdtdtd|d|�dS(s�
            *head_length*
              length of the arrow head

            *head_width*
              width of the arrow head
            RfRgRRN(R�R[R�RR�R(R	RR((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR�s	(R�R�R�R(((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR��ss->tCurveABcB seZdZddd�ZRS(sJ
        An arrow with heads both at the begin and the end point.
        g�������?g�������?c	C s2ttj|�jdtdtd|d|�dS(s�
            *head_length*
              length of the arrow head

            *head_width*
              width of the arrow head
            RfRgRRN(R�R[R�RR(R	RR((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR�s	(R�R�R�R(((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR��ss<->tCurveFilledAcB seZdZddd�ZRS(sB
        An arrow with filled triangle head at the begin.
        g�������?g�������?c
C s>ttj|�jdtdtdtdtd|d|�dS(s�
            *head_length*
              length of the arrow head

            *head_width*
              width of the arrow head
            RfRgRhRiRRN(R�R[R�RRR�(R	RR((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyRs	(R�R�R�R(((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR�ss<|-tCurveFilledBcB seZdZddd�ZRS(s@
        An arrow with filled triangle head at the end.
        g�������?g�������?c
C s>ttj|�jdtdtdtdtd|d|�dS(s�
            *head_length*
              length of the arrow head

            *head_width*
              width of the arrow head
            RfRgRhRiRRN(R�R[R�RR�R(R	RR((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR*s	(R�R�R�R(((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR�%ss-|>t
CurveFilledABcB seZdZddd�ZRS(sZ
        An arrow with filled triangle heads both at the begin and the end point.
        g�������?g�������?c
C s>ttj|�jdtdtdtdtd|d|�dS(s�
            *head_length*
              length of the arrow head

            *head_width*
              width of the arrow head
            RfRgRhRiRRN(R�R[R�RR(R	RR((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR@s	(R�R�R�R(((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR�;ss<|-|>t_BracketcB sAeZddddddddddd�
Zd�Zd�ZRS(g�?g�������?cC sc|||_|_|||_|_|||_|_|||_|_|	|
|_|_	dS(N(
tbracketAtbracketBtwidthAtwidthBtlengthAtlengthBR0R1tscaleAtscaleB(R	R�R�R�R�R�R�R0R1R�R�((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyRSs
cC s�ddlm}||||||�\}}	}
}||||}}
|||	|
f||	f|
|f|
|||
fg}tjtjtjtjg}||fS(Ni����(tget_normal_points(tmatplotlib.bezierR�RR�R�(R	RcRdRkRlR�R$R�R9R:R;R<RRRoRp((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyt_get_bracket_s$		cC s�|jdkr|}n	|j}|jdkr9|}n	|j}gg}}|jr�|jd\}}	|jd\}
}t|
|||	�\}}
|j||	||
|j||j|�\}}|j	|�|j	|�n|j	|j�|j	|j
�|jr�|jd\}}	|jd\}
}t|
|||	�\}}
|j||	||
|j||j
|�\}}|j	|�|j	|�ntj|�}tj|�}t||�}|tfS(Niii����i����(R�RR�R�R�RR�R�R�RzRR�R�R�R�R�RR�(R	R2R�R'R�R�t
vertices_listt
codes_listRcRdR9R:RkRlRrRsRxRyR�RR�((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR�us>				
	

	

N(R�R�RRR�R�(((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR�Qs	t	BracketABcB s)eZdZddddddd�ZRS(s;
        An arrow with a bracket(])  at both ends.
        g�?g�������?cC sDttj|�jttd|d|d|d|d|d|�dS(s�
            *widthA*
              width of the bracket

            *lengthA*
              length of the bracket

            *angleA*
              angle between the bracket and the line

            *widthB*
              width of the bracket

            *lengthB*
              length of the bracket

            *angleB*
              angle between the bracket and the line
            R�R�R0R�R�R1N(R�R[R�RR(R	R�R�R0R�R�R1((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR�sN(R�R�R�RR(((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR��s	s]-[tBracketAcB s eZdZdddd�ZRS(s9
        An arrow with a bracket(])  at its end.
        g�?g�������?c	C s2ttj|�jdtd|d|d|�dS(s�
            *widthA*
              width of the bracket

            *lengthA*
              length of the bracket

            *angleA*
              angle between the bracket and the line
            R�R�R0N(R�R[R�RRR(R	R�R�R0((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR�sN(R�R�R�RR(((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR��ss]-tBracketBcB s eZdZdddd�ZRS(s9
        An arrow with a bracket([)  at its end.
        g�?g�������?c	C s2ttj|�jdtd|d|d|�dS(s�
            *widthB*
              width of the bracket

            *lengthB*
              length of the bracket

            *angleB*
              angle between the bracket and the line
            R�R�R1N(R�R[R�RRR(R	R�R�R1((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR�sN(R�R�R�RR(((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR��ss-[tBarABcB s#eZdZddddd�ZRS(s;
        An arrow with a bracket(])  at both ends.
        g�?cC sDttj|�jttd|ddd|d|ddd|�dS(	s�
            *widthA*
              width of the bracket

            *lengthA*
              length of the bracket

            *angleA*
              angle between the bracket and the line

            *widthB*
              width of the bracket

            *lengthB*
              length of the bracket

            *angleB*
              angle between the bracket and the line
            R�R�iR0R�R�R1N(R�R[R�RR(R	R�R0R�R1((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR�sN(R�R�R�RR(((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR��ss|-|tSimplecB s)eZdZdddd�Zd�ZRS(sK
        A simple arrow. Only works with a quadratic bezier curve.
        g�?g�������?cC s7||||_|_|_ttj|�j�dS(s�
            *head_length*
              length of the arrow head

            *head_with*
              width of the arrow head

            *tail_width*
              width of the arrow tail

            N(RRt
tail_widthR�R[R�R(R	RRR�((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR
scC s�|j|�\}}}}}}	|j|}
t||	|
�}||f||f||	fg}t||dd�\}
}|j|}t||ddd�\}}|j|}t|
|d�\}}||}}tj	|dftj
|dftj
|dftj|dftj
|dftj
|dftj
|dftj
|dftj|dftj
|dftj
|dftj|dftj|dfg
}tg|D]\}}|^q�g|D]\}}|^q��}|t
fS(	Nt	tolerenceg{�G�z�?g@twmg�?iii(R^RRRRRR�RRR�R�R�RR(R	R2R�R'RcRdR9R:R;R<Rtin_ft
arrow_patht	arrow_outtarrow_inRthead_lthead_rR�t	tail_leftt
tail_rightt
head_rightt	head_leftt
patch_pathR^R�((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR�,
s8!
!


A(R�R�R�RR�(((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR�
stsimpletFancycB s)eZdZdddd�Zd�ZRS(sJ
        A fancy arrow. Only works with a quadratic bezier curve.
        g�������?cC s7||||_|_|_ttj|�j�dS(s�
            *head_length*
              length of the arrow head

            *head_with*
              width of the arrow head

            *tail_width*
              width of the arrow tail

            N(RRR�R�R[R�R(R	RRR�((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR_
scC sl|j|�\}}}}}}	|j|}
||f||f||	fg}t||	|
�}t||dd�\}
}|}t||	|
d�}t||dd�\}
}|
}|j|}t||ddd�\}}|j|}t||ddd	ddd
d�\}}t|||d�}t||dd�\}}
|d}||}}tj|ftj	|d
ftj
|dftj
|dftj	|d
ftj
|dftj
|dftj
|dftj
|d
ftj	|dftj
|dftj
|d
ftj	|ftj|fg}tj|d
ftj
|dftj
|dftj	|d
ftj
|dftj
|dftj
|dftj
|d
ftj	|dftj
|dftj
|d
ftj
|ftj
|d
ftj|d
fg}tg|D]\}}|^q+g|D]\}}|^qG�}|tfS(NR�g{�G�z�?g�������?g@R�g333333�?g�?tw1g�?tw2g333333�?i����iii(
R^RRRRRR�RR�R�R�RR(R	R2R�R'RcRdR9R:R;R<RR�R�tpath_outtpath_int	path_headt	path_tailRR�R�R�R�R�t
tail_startR�R�R�tpatch_path2R^R�((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR�p
sp!
!




A(R�R�R�RR�(((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR�Z
stfancyR�cB s&eZdZddd�Zd�ZRS(s�
        Wedge(?) shape. Only wokrs with a quadratic bezier curve.  The
        begin point has a width of the tail_width and the end point has a
        width of 0. At the middle, the width is shrink_factor*tail_width.

        g333333�?g�?cC s,||_||_ttj|�j�dS(s�
            *tail_width*
              width of the tail

            *shrink_factor*
              fraction of the arrow width at the middle point
            N(R�t
shrink_factorR�R[R�R(R	R�R�((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR�
s			c	C s,|j|�\}}}}}}	||f||f||	fg}
t|
|j|dd|j�\}}tj|dftj|dftj|dftj|dftj|dftj|dftj|dfg}
tg|
D]\}}|^q�g|
D]\}}|^q�}|t	fS(Ng@R�iii(
R^RR�R�RR�R�R�RR(R	R2R�R'RcRdR9R:R;R<R�tb_plustb_minusR�R^R�((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR��
s!!A(R�R�R�RR�(((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR��
stwedgetAvailableArrowstyles(R�R�R�R�R�R�ReR}RR�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�(((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR[�
sH%Z�	






Q 


 
A
e
,
R�RZtFancyArrowPatchcB s�eZdZd�Zejddddddddddddddd��Zd�Zd�Z	d	�Z
d
�Zd�Zd�Z
d
�Zdd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�ZRS(sM
    A fancy arrow patch. It draws an arrow using the :class:ArrowStyle.
    cC sj|jdk	rH|j\\}}\}}|jjd||||fS|jjdt|j�fSdS(Ns(%g,%g->%g,%g)s(%s)(t
_posA_posBRRR�Rt_path_original(R	R9R:R;R<((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR
s		R�R.g@g�?cK s
|dk	rX|dk	rX|dkrX||g|_|dkrHd}n|j|�nE|dkr�|dkr�|dk	r�d|_d|_ntd��||_|	|_|
|_||_t	j
||�||_|j|�||_
|
|_|j|�dS(sE
        If *posA* and *posB* is given, a path connecting two point are
        created according to the connectionstyle. The path will be
        clipped with *patchA* and *patchB* and further shirnked by
        *shrinkA* and *shrinkB*. An arrow is drawn along this
        resulting path using the *arrowstyle* parameter. If *path*
        provided, an arrow is drawn along this path and *patchA*,
        *patchB*, *shrinkA*, and *shrinkB* are ignored.

        The *connectionstyle* describes how *posA* and *posB* are
        connected. It can be an instance of the ConnectionStyle class
        (matplotlib.patches.ConnectionStlye) or a string of the
        connectionstyle name, with optional comma-separated
        attributes.  The following connection styles are available.

        %(AvailableConnectorstyles)s


        The *arrowstyle* describes how the fancy arrow will be
        drawn. It can be string of the available arrowstyle names,
        with optional comma-separated attributes, or one of the
        ArrowStyle instance. The optional attributes are meant to be
        scaled with the *mutation_scale*. The following arrow styles are
        available.

        %(AvailableArrowstyles)s

        *mutation_scale* : a value with which attributes of arrowstyle
            (e.g., head_length) will be scaled. default=1.

        *mutation_aspect* : The height of the rectangle will be
            squeezed by this value before the mutation and the mutated
            box will be stretched by the inverse of it. default=None.

        Valid kwargs are:
        %(Patch)s
        R.s.either posA and posB, or path need to providedN(RR�tset_connectionstylet
_connetorsRRRR R!RRR�tset_arrowstyleRRtset_dpi_cor(R	R$R%R2t
arrowstyletarrow_transmutertconnectionstyleRRRR R!RRtdpi_corR-((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR
s&5$	$						
		cC s
||_dS(s�
        dpi_cor is currently used for linewidth-related things and
        shink factor. Mutation scale is not affected by this.
        N(t_dpi_cor(R	R�((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR�ascC s|jS(s�
        dpi_cor is currently used for linewidth-related things and
        shink factor. Mutation scale is not affected by this.
        (R�(R	((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pytget_dpi_coriscC s<|dk	r||jd<n|dk	r8||jd<ndS(sd set the begin end end positions of the connecting
        path. Use current vlaue if None.
        iiN(RR�(R	R$R%((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyt
set_positionsrscC s
||_dS(s set the begin patch.
        N(R(R	R((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyt
set_patchAzscC s
||_dS(s set the begin patch
        N(R(R	R((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyt
set_patchB�scK sb|dkrtj�St|tj�r4||_n*t|�rL||_nt||�|_dS(s�
        Set the connection style.

        *connectionstyle* can be a string with connectionstyle name with optional
         comma-separated attributes. Alternatively, the attrs can
         be probided as keywords.

         set_connectionstyle("arc,angleA=0,armA=30,rad=10")
         set_connectionstyle("arc", angleA=0,armA=30,rad=10)

        Old attrs simply are forgotten.

        Without argument (or with connectionstyle=None), return
        available styles as a list of strings.
        N(RRR�RR�t
_connectorR5(R	R�R�((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR��s
cC s|jS(s5
        Return the ConnectionStyle instance
        (R�(R	((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pytget_connectionstyle�scK sJ|dkrtj�St|tj�r4||_nt||�|_dS(s�
        Set the arrow style.

        *arrowstyle* can be a string with arrowstyle name with optional
         comma-separated attributes. Alternatively, the attrs can
         be provided as keywords.

         set_arrowstyle("Fancy,head_length=0.2")
         set_arrowstyle("fancy", head_length=0.2)

        Old attrs simply are forgotten.

        Without argument (or with arrowstyle=None), return
        available box styles as a list of strings.
        N(RR[R�RRR�t_arrow_transmuter(R	R�R�((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR��s

cC s|jS(s.
        Return the arrowstyle object
        (R�(R	((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pytget_arrowstyle�scC s
||_dS(sA
        Set the mutation scale.

        ACCEPTS: float
        N(R(R	R�((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR�scC s|jS(s,
        Return the mutation scale.
        (R(R	((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR	�scC s
||_dS(sT
        Set the aspect ratio of the bbox mutation.

        ACCEPTS: float
        N(R(R	R
((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR�scC s|jS(s?
        Return the aspect ratio of the bbox mutation.
        (R(R	((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR�scC sI|j�\}}tj|�r0t|�}n|j�j�j|�S(s�
        return the path of the arrow in the data coordinate. Use
        get_path_in_displaycoord() method to retrieve the arrow path
        in the disaply coord.  
        (tget_path_in_displaycoordR�R_RR.R�ttransform_path(R	R�Rb((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR/�scC s�|j�}|jdk	r�|j�j|jd�}|j�j|jd�}|j�||d|jd|jd|j|d|j	|�}n|j�j
|j�}|j�||j
�|j�||j��\}}||fS(sK
        Return the mutated path of the arrow in the display coord
        iiRRR R!N(R�R�RR.R�R�RRR R!R�R�R�R	RCR(R	R�R$R%R�Rb((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR��s		
	
cC s�|j�sdS|jd|j��|j�}|j|jdt�|j}|jddkrmd}n|j|�|j	|j
�|j|j�|j
|�|jd�|j|j��|j}|ddkr�d}n|j|jd�|jddkr'|j|jd�n|jrC|j|j�n|j|jd��|j�\}}tj|�s�|g}|g}ntj�}|j�rx�|j�D]a}xXt||�D]G\}	}
|
r�|j|||	||�q�|j|||	|d�q�Wq�WnUxRt||�D]A\}	}
|
rW|j||	||�q,|j||	|d�q,W|j �|j!d�dS(NRlRmiiR�g�?("RoRpRqRrRsRPRRRRRRSRRNRtRuRxRyRQRRIRiRR�R�R�R�R_RRRkR8R|R}R~(R	RR�RcR�R2RbR�R�R�R,((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR�sP		


				$
N(R�R�R�R
RR�RRR�R�R�R�R�R�R�R�R�RR	RRR/R�R�(((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR��
s@	G															"tConnectionPatchcB s�eZdZd�Zejdddddddddddddedd��Zdd�Z	d	�Z
d
�Zd�Zd�Z
d
�ZRS(s�
    A :class:`~matplotlib.patches.ConnectionPatch` class is to make
    connecting lines between two points (possibly in different axes).
    cC s0d|jd|jd|jd|jdfS(Ns ConnectionPatch((%g,%g),(%g,%g))ii(txy1txy2(R	((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR
\sR~R.gg$@g�?cK s�|dkr|}n||_||_||_||_||_||_tj|ddddd|d|d|	d|
d	|d
|d|
d|d
|d|d|d||�d|_	dS(s	
        Connect point *xyA* in *coordsA* with point *xyB* in *coordsB*


        Valid keys are


        ===============  ======================================================
        Key              Description
        ===============  ======================================================
        arrowstyle       the arrow style
        connectionstyle  the connection style
        relpos           default is (0.5, 0.5)
        patchA           default is bounding box of the text
        patchB           default is None
        shrinkA          default is 2 points
        shrinkB          default is 2 points
        mutation_scale   default is text size (in points)
        mutation_aspect  default is 1.
        ?                any key for :class:`matplotlib.patches.PathPatch`
        ===============  ======================================================


        *coordsA* and *coordsB* are strings that indicate the
        coordinates of *xyA* and *xyB*.

        =================   ===================================================
        Property            Description
        =================   ===================================================
        'figure points'     points from the lower left corner of the figure
        'figure pixels'     pixels from the lower left corner of the figure
        'figure fraction'   0,0 is lower left of figure and 1,1 is upper, right
        'axes points'       points from lower left corner of axes
        'axes pixels'       pixels from lower left corner of axes
        'axes fraction'     0,1 is lower left of axes and 1,1 is upper right
        'data'              use the coordinate system of the object being
                            annotated (default)
        'offset points'     Specify an offset (in points) from the *xy* value

        'polar'             you can specify *theta*, *r* for the annotation,
                            even in cartesian plots.  Note that if you
                            are using a polar axes, you do not need
                            to specify polar for the coordinate
                            system since that is the native "data" coordinate
                            system.
        =================   ===================================================

        R$iR%iR�R�R�RRRR R!RRtclip_onR�N(ii(ii(
RR�R�tcoords1tcoords2taxesAtaxesBR�Rt_annotation_clip(R	txyAtxyBtcoordsAtcoordsBR�R�R�R�R�RRRR R!RRR�R�R-((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR`s0@							cC s|dkr|j}n|dkrj|j}t|j|��}t|j|��}|j||f�S|dkr|j\}}|jdkr�|j	||d�S|j	|||j�\}}|j
j�}||d9}||d9}||7}||7}||fS|dkri||}	}
|
tj
|	�}|
tj|	�}|j}|j||f�S|dkr|j
j}|j
jj\}}}
}||
}
||}||d9}||d9}|dkr�|
|}n|dkr�||}n||fS|dkr|j
jj\}}}
}||
}
||}|dkr\|
|}n|dkru||}n||fS|dkr�|j
j}|j||f�S|d	kr^|j
j}|jj\}}}
}||
}
||}|dkr|
||d}n|||d}|dkrB|||d}n|||d}||fS|d
kr�|jj\}}}
}||
}
||}|dkr�|
|}n
||}|dkr�||}n
||}||fS|dkr|j}|j||f�SdS(
s<
        caculate the pixel position of given point
        tdatas
offset pointsgR@tpolars
figure pointsis
figure pixelssfigure fractionsaxes pointssaxes pixelss
axes fractionN(RRbt	transDataR_R�R�R�R�txycoordsR�R-tget_dpiR�R6R7R2R�R�ttransFiguret	transAxes(R	R8R9tsRbR1RRR2RCR�R�RhRbR�tt((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR��s�	



	



















	cC s
||_dS(s)
        set *annotation_clip* attribute.

          * True : the annotation will only be drawn when self.xy is inside the axes.
          * False : the annotation will always be drawn regardless of its position.
          * None : the self.xy will be checked only if *xycoords* is "data"
        N(R�(R	Rh((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pytset_annotation_clip%scC s|jS(s
        Return *annotation_clip* attribute.
        See :meth:`set_annotation_clip` for the meaning of return values.
        (R�(R	((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pytget_annotation_clip/scC s�|j�}|j\}}|j|||j|j�}|j\}}|j|||j|j�}|j�||d|jd|j	d|j
|d|j|�}|j�||j
�|j�||j��\}}||fS(sK
        Return the mutated path of the arrow in the display coord
        RRR R!(R�R�R�R�R�R�R�R�RRR R!R�R	RCR(R	R�R8R9R$R%R�Rb((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR�7s		
	
c	C s�|j�}|s-|dkrs|jdkrs|j\}}|j|||j|j�}|jj|�sstSn|s�|dkr�|j	dkr�|j
\}}|j|||j	|j�}|jdkr�|j}n	|j}|j|�s�tSntS(sC
        check if the annotation need to
        be drawn.
        R�N(
R�RR�R�R�R�RbR7R�R�R�R�R(R	RRhR8R9txy_pixelRb((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyt	_check_xyWs!!	cC sO|dk	r||_n|j�s(dS|j|�s;dStj||�dS(s
        Draw.
        N(Rt	_rendererRoR�R�R�(R	R((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR�ssN(R�R�R�R
RR�RR�RR�R�R�R�R�R�(((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyR�Ws.	Qf	
		 	(Ct
__future__RR4t
matplotlibRtnumpyR�tmatplotlib.cbookR�tmatplotlib.artistRRtmatplotlib.colorsRVRtmatplotlib.transformsRtmatplotlib.pathRtinterpdR�R
RtkwdoctpatchdocRPR�Rtim_funcR�R�R�R�R�R�R�R�R�R�R�R�R�RRR�R�R�R�R�R�R�R�R�R�RRRRRRRRRRR[R�R�(((sE/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/patches.pyt<module>sv�~>�N<;'ReA)�#%0��������@�]