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

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib64/python2.7/site-packages/matplotlib/patches.pyo
�
r`]c
@ s$ddlmZmZddlZddlZddlZddlj	Z	ddl
jZddl
mZddl
jZddlmZddljZddlmZejjdd�dejfd��YZeje�ZxLd	d
ddd
ddddddddf
D]Zejjiee6�qWejej�defd��YZd	efd��YZdefd��YZdefd��YZ defd��YZ!d
efd��YZ"defd��YZ#de!fd��YZ$ejjie$jj%d6�ejjie$jj%d6�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)�Z0d*e1fd+��YZ2d,e2fd-��YZ3ejjd.e0e3j4��defd/��YZ5dd0l6m7Z7dd1l6m8Z8m9Z9m:Z:dd2l6m;Z;dd3l6m<Z<m=Z=dd4l6m>Z>m?Z?d5e2fd6��YZ@d7�ZAd8e2fd9��YZBejjd:e0eBj4�d;e0e@j4��d<efd=��YZCd>eCfd?��YZDdS(@i����(tdivisiontprint_functionN(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&d�Z	d&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 artist 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((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyt__str__6sc
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((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyR9s2		







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((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyt	get_vertsiscC sqt|j�r|j||�S|dkr:|j�}n|j�j|j|jf|j�|�}|ifS(sUTest whether the mouse event occurred in the patch.

        Returns T/F, {}
        N(	tcallablet	_containsRt
get_linewidthR0tcontains_pointtxtyR/(R
t
mouseeventtradiustinside((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pytcontainsxs	!cC s:|dkr|j�}n|j�j||j�|�S(sz
        Returns *True* if the given point is inside the path
        (transformed with its transform attribute).
        N(RR8R0R9R/(R
tpointR=((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyR9�s
	cC 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
Rtupdate_fromRt
get_edgecolorRt
get_facecolorRtget_fillRt	get_hatchRR8Rt
get_linestylet
set_transformtget_data_transformt
set_figuret
get_figuret	set_alphat	get_alpha(R
tother((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyRA�scC s|j�j|j��S(s�
        Return a :class:`~matplotlib.transforms.Bbox` object defining
        the axis-aligned extents of the :class:`Patch`.
        (R0tget_extentsR/(R
((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyRN�scC s|j�tjj|�S(sm
        Return the :class:`~matplotlib.transforms.Transform` applied
        to the :class:`Patch`.
        (tget_patch_transformR
RR/(R
((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyR/�scC stjj|�S(s�
        Return the :class:`~matplotlib.transforms.Transform` instance which
        maps data coordinates to physical coordinates.
        (R
RR/(R
((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyRH�scC s
tj�S(sh
        Return the :class:`~matplotlib.transforms.Transform` instance which
        takes patch coordinates to data coordinates.

        For example, one may define a patch of a circle which represents a
        radius of 5 by providing coordinates for a unit circle, and a
        transform which scales the coordinates (the patch coordinate) by 5.
        (RR (R
((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyRO�s	cC s|jS(sV
        Returns True if the :class:`Patch` is to be drawn with antialiasing.
        (t_antialiased(R
((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pytget_antialiased�scC s|jS(s>
        Return the edge color of the :class:`Patch`.
        (t
_edgecolor(R
((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyRB�scC s|jS(s>
        Return the face color of the :class:`Patch`.
        (t
_facecolor(R
((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyRC�scC s|jS(s2
        Return the line width in points.
        (t
_linewidth(R
((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyR8�scC s|jS(sk
        Return the linestyle.  Will be one of ['solid' | 'dashed' |
        'dashdot' | 'dotted']
        (t
_linestyle(R
((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyRF�scC s)|dkrtjd}n||_dS(sp
        Set whether to use antialiased rendering

        ACCEPTS: [True | False]  or None for default
        spatch.antialiasedN(RRRRP(R
taa((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyR�scC s
|j|�S(salias for set_antialiased(R(R
RV((s8/usr/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_alphaRR(R
R'((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyR�scC s
|j|�S(salias for set_edgecolor(R(R
R'((s8/usr/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_facecolorRXRYRZR[RSRtlist(R
R'((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyRs		cC s
|j|�S(salias for set_facecolor(R(R
R'((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pytset_fcscC 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((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyRs
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
RRKRR]RXRYRZRRR[(R
talpha((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyRK$s
	cC s)|dkrtjd}n||_dS(s_
        Set the patch linewidth in points

        ACCEPTS: float or None for default
        spatch.linewidthN(RRRRT(R
tw((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyR5scC s
|j|�S(salias for set_linewidth(R(R
tlw((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pytset_lw?scC s"|dkrd}n||_dS(sg
        Set the patch linestyle

        ACCEPTS: ['solid' | 'dashed' | 'dashdot' | 'dotted']
        RN(RRU(R
tls((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyRCs	cC s
|j|�S(salias for set_linestyle(R(R
Rg((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pytset_lsMscC s#t|�|_|j|j�dS(sP
        Set whether to fill the patch

        ACCEPTS: [True | False]
        N(tboolRRR](R
tb((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyRQscC s|jS(sreturn whether fill is set(R(R
((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyRDZscC 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+((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyRcscC s|jS(s#Return the current hatching pattern(Rk(R
((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyREscC 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-((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyR"�scC s|jS(N(Rl(R
((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pytget_path_effects�sc
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_foregroundRRRRTRRRURRPt_set_gc_cliptset_capstyletset_urlt_urltset_snaptget_snapRSRRKRkRR0R/ttransform_path_non_affinet
get_affineRmt	draw_pathtrestoretclose_group(
R
trenderertgcRetrgbFaceR3t	transformttpathtaffinetpath_effect((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pytdraw�sB		


			 
cC std��dS(s/
        Return the path of this patch
        sDerived must overrideN(tNotImplementedError(R
((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyR0�scC s|j�j|j��S(N(R0RNR/(R
R�((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pytget_window_extent�sN(2t__name__t
__module__t__doc__tzorderRRRRR5R?R9RARNR/RHRORQtget_aaRBtget_ecRCtget_fcR8tget_lwRFtget_lsRRWRR\RR_RRKRRfRRhRRDtpropertyR,RRER"RmRR�R0R�(((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyR-sh	'												
		
						
		
								0	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)(RRn(R
((s8/usr/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(
RRRntpropst_oxt_oyRtAffine2Dt_shadow_transformt_update(R
RntoxtoyR�R.((s8/usr/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�?(RARnR�RtupdateRXRYRZRCRRRK(R
trtgRjtatrho((s8/usr/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
R�R�R�((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyt_update_transform�scC s|jS(N(R�(R
((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyt_get_ox�scC s
||_dS(N(R�(R
R�((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyt_set_ox�scC s|jS(N(R�(R
((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyt_get_oyscC s
||_dS(N(R�(R
R�((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyt_set_oyscC s
|jj�S(N(RnR0(R
((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyR0scC s|jj�|jS(N(RnROR�(R
((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyROscC s!|j|�tj||�dS(N(R�RR�(R
R�((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyR�s
N(R�R�RRtdedent_interpdRRR�R�R�R�R�R�R0ROR�(((s8/usr/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
((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyRs	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�RR t_rect_transform(R
txytwidththeightR.((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyRs


		cC s
tj�S(s6
        Return the vertices of the rectangle
        (Rtunit_rectangle(R
((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyR00scC 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
R:R;R�R�tbbox((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyt_update_patch_transform6scC s|j�|jS(N(R�R�(R
((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyROCs
cC s�|jdks|jdkr(tifS|j�j�j|j|jf�\}}|dko�|dko�|dko�|dkifS(Nigg�?(R�R�tFalseR/tinvertedttransform_pointR:R;(R
R<R:R;((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyR?Gs

cC s|jS(s&Return the left coord of the rectangle(R�(R
((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pytget_xPscC s|jS(s(Return the bottom coord of the rectangle(R�(R
((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pytget_yTscC s|j|jfS(s2Return the left and bottom coords of the rectangle(R�R�(R
((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pytget_xyXscC s|jS(s"Return the width of the  rectangle(R�(R
((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyt	get_width\scC s|jS(s"Return the height of the rectangle(R�(R
((s8/usr/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
R:((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pytset_xdscC s
||_dS(sO
        Set the bottom coord of the rectangle

        ACCEPTS: float
        N(R�(R
R;((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pytset_ylscC s|\|_|_dS(sc
        Set the left and bottom coords of the rectangle

        ACCEPTS: 2-item sequence
        N(R�R�(R
R�((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pytset_xytscC s
||_dS(sA
        Set the width rectangle

        ACCEPTS: float
        N(R�(R
Rd((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyt	set_width|scC s
||_dS(sA
        Set the width rectangle

        ACCEPTS: float
        N(R�(R
th((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyt
set_height�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
targstlRjRdR�((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyt
set_bounds�s			cC s%tjj|j|j|j|j�S(N(RR�R�R�R�R�R�(R
((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pytget_bbox�s(R�R�R�RRR�RR0R�ROR?R�R�R�R�R�R�R�R�R�R�R�R�R�R�(((s8/usr/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
((s8/usr/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�tnumVerticesR=torientationR.((s8/usr/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
((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyR��scC s|jS(N(R�(R
((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyt_get_xy�scC s||_|j�dS(N(R�R�(R
R�((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyt_set_xy�s	cC s|jS(N(R�(R
((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyt_get_orientation�scC s||_|j�dS(N(R�R�(R
R�((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyt_set_orientation�s	cC s|jS(N(R�(R
((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyt_get_radius�scC s||_|j�dS(N(R�R�(R
R=((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyt_set_radius�s	cC s|jS(N(R�(R
((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyt_get_numvertices�scC s
||_dS(N(R�(R
R�((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyt_set_numvertices�scC s|jS(N(R�(R
((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyR0�scC s|j�|jS(N(R�R�(R
((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyRO�s
(R�R�R�RRR�RR�R�R�R�R�R�R�R�R�R�R=R�R�tnumverticesR0RO(((s8/usr/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
((s8/usr/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
R3R.((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyR�scC s|jS(N(R�(R
((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyR0s(R�R�R�RRR�RR0(((s8/usr/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
((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyRscK s*tj||�||_|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(RRt_closedR�(R
R�tclosedR.((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyRs	cC s|jS(N(R�(R
((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyR0.scC s|jS(N(R�(R
((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyt
get_closed1scC s?|jt|�krdSt|�|_|j|j��dS(N(R�RiR�R�(R
R�((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyt
set_closed4scC s
|jjS(N(R�R�(R
((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyR�:scC s�tj|�}|jr`t|�r�|d|dkj�r�tj||dgg�}q�n9t|�dkr�|d|dkj�r�|d }nt|d|j�|_dS(Nii����iR�(	tnptasarrayR�R#tanytconcatenatetallRR�(R
R�((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyR�=s	&",
sSet/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�RRR�RRR0R�R�R�R�R�R�R�RR�(((s8/usr/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
((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyRVscK 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�RaR�tvstackthstacktcodest	CLOSEPOLYR#R�R�RR t_patch_transform(R
R�R�R�R�R�R.tdeltat	connectorRtv1tv2tvR`((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyRYs,	
		(+$4$
cC s|jS(N(R�(R
((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyR0�sN(	R�R�R�RRR�RRR0(((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyR�Rs
	.c
B s�eZdZd�Zeddgddgddgddgddgddgddgddggd	e�Zejdd
��Z	d�Z
d�ZRS(
s
    An arrow patch.
    cC sdS(NsArrow()((R
((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyR�sgg�������?g��������g�������?g333333ӿg�?g333333�?R�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�tsqrtRaRR�R�tfrom_valuesR�tfrozenR(R
R:R;tdxtdyR�R.tLtcxtsxttrans1ttrans2ttrans3R2((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyR�s	!"cC s|jS(N(R�(R
((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyR0�scC s|jS(N(R(R
((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyRO�s(R�R�R�RRRR�RR�RR0RO(((s8/usr/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
((s8/usr/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|}nj|dd	g}|	d
krZ|}nE|	dkr�tj|d	 |dd
d	�g�}ntd|	��t|�|
}t|�|
}tj||g||gg�}tj||�||||f}tj	|t
t|�dt|�d
S(s�
        Constructor arguments
          *width*: float (default: 0.001)
            width of full arrow tail

          *length_includes_head*: [True | False] (default: False)
            True if head is to be counted in calculating the length.

          *head_width*: float or None (default: 3*width)
            total width of the full arrow head

          *head_length*: float or None (default: 1.5 * head_width)
            length of arrow head

          *shape*: ['full', 'left', 'right'] (default: 'full')
            draw the left-half, right-half, or full arrow

          *overhang*: float (default: 0)
            fraction that the arrow is swept back (0 overhang means
            triangular shape). Can be negative or greater than one.

          *head_starts_at_zero*: [True | False] (default: False)
            if True, the head starts being drawn at coordinate 0
            instead of ending at coordinate 0.

        Other valid kwargs (inherited from :class:`Patch`) are:
        %(Patch)s

        ig�?igg@iitlefti����trightRi����NsGot unknown shape: %sR�(
RR�RtarrayR�t
ValueErrorRatdotR�RtmapR�R(R
R:R;RRR�tlength_includes_headt
head_widththead_lengthtshapetoverhangthead_starts_at_zeroR.tdistancetlengthtvertsthwthlthsRetleft_half_arrowtcoordstright_half_arrowRRtM((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyR�sF!

	
				
"$N(	R�R�R�RRR�R�RR(((s8/usr/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
((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyRsig�������?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(txytiptxybaseR�tfract	headwidthRRtfigure(R
R1R-R.R�R/R0R.((s8/usr/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||�dt�S(NgR@g@R�(R-R.R�R1tdpiR0t	getpointstmathtatan2RR/tcostsinR�R�RtzipR(R
tx1ty1tx2ty2tk1tk2txb1tyb1txb2tyb2tthetaR�txmtymtxc1tyc1txc2tyc2txd1tyd1txd2tyd2txstys((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyR0Hs'#''''cC s
tj�S(N(RR (R
((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyRO`scC 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(RRaR4R(R
R9R:R;R<tktmtpmR�RjR`ty3atx3aty3btx3b((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyR3cs-

&,,(
R�R�R�RRR�RR0ROR3(((s8/usr/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
((s8/usr/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.((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyR�s
(R�R�R�RRR�R(((s8/usr/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
((s8/usr/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�RR R(R
R�R�R�RXR.((s8/usr/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�((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyt_recompute_transform�scC s|jS(s6
        Return the vertices of the rectangle
        (R�(R
((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyR0�scC s|j�|jS(N(R[R(R
((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyRO�s
cC sq|jdks|jdkr(tifS|j�j�j|j|jf�\}}||||dkifS(Ng�?(R:RR;R�R/R�R�(R
tevR:R;((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyR?�s
-(R�R�R�RRR�RR[R0ROR?(((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyR��s				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
((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyR�s

icK 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((s8/usr/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=((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyt
set_radius�scC s|jdS(sreturn the radius of the circleg@(R�(R
((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyt
get_radiuss(R�R�R�RRR�RR_R`R�R=(((s8/usr/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
((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyRsgg�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,((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyRs		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:RRtdr2tDtD2tdiscrimR:R;tsign_dytsqrt_discrimtsign((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pytiter_circle_intersect_on_line�s&



	
$c3 s�d}||kr"||}}n
||}}||krK||}}n
||}}||8}||8}||7}||7}xa�||||�D]J\}	}
|	|kr�|	|kr�|
|kr�|
|kr�|	|
fVq�q�WdS(Ng��&�.>((RcRdR9R:tepsilontx0etx1ety0ety1eR:R;(Rl(s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyt!iter_circle_intersect_on_line_seg�s





"0g@g�f@i����iiiNg�\!�� Ag�\!��A(%thasattrtRuntimeErrorR[R�R�R�R�R/R�RR�RR�RR�RbR�R�ttransformedR�tpiR�R�R8R�tarccosRtkeystsorttappendR9R6R7R�RR�R(R
R�R�R�t	inv_errorRrtbox_pathtbox_path_transformtPItTWOPItRAD2DEGtDEG2RADR�R�tthetastp0tp1RcRdR9R:R:R;RCt
last_thetat
theta1_radR>t
path_originalR�((Rls8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyR�Esb.
		


		*"




	
	
(	R�R�R�RRR�RRR�(((s8/usr/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�RGRR tset_clip_onR�R�R�(R
R�R�R,R�R�R�RjRdR�R�((s8/usr/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�RRGR�R�(	R�R�R'R2R�RjRdR�R�((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyt	draw_bboxs	
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((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyt
_pprint_tables(

8*

7
	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((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyt_pprint_styles=s$
2		)!t_StylecB sDeZdZd�Zed��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(	treplaceR	tlowert_style_listtKeyErrorRtdictRaR�(R
t	stylenametkwt_listt_namet_clstcst
_args_pairRPR
t_args((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyt__new__is
&5

cC s|jS(sP
        A class method which returns a dictionary of available styles.
        (R�(tklass((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyt
get_styles�scC s
t|j�S(sP
        A class method which returns a string of the available styles.
        (R�R�(R�((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyt
pprint_styles�scC s?t||j�s.td||jf��n||j|<dS(s'
        Register a new style.
        s%s must be a subclass of %sN(t
issubclasst_BaseRR�(R�R�tstyle((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pytregister�s	(R�R�R�R�tclassmethodR�R�R�(((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyR�cs
	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
    R�cB s5eZdZd�Zd�Zdd�Zd�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
((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyR�scC 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((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyt	transmute�s	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_ratioR3R�R((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyt__call__�s
*
cC s1ddlj}|j�t|jjf|jfS(Ni����(tmatplotlib.cbooktcbookt_NestedClassGetterR�RR�t__dict__(R
R�((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyt
__reduce__�s	(R�R�R�RR�R�R�(((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyR��s
		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�((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyRs	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:tcptcomR3((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyR�s
$(R�R�R�RR�(((s8/usr/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�((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyR1s	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�R3((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyR�5s"

," (R�R�R�RR�(((s8/usr/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�((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyRZscC s]tjj||||||�}d|||jdd�df|jdd�df<|S(Nii(R�R�R�R�(R
RcRdR�R�R�tp((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyR�^s8(R�R�R�RR�(((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyR�Us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�((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyRns		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�R3((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyR�zs<
	




N(R�R�R�RRR�(((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyR�is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�((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyR�s			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�R3((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyR��s,
	
	++++N(R�R�R�RRR�(((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyR��s
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�((s8/usr/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((s8/usr/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�R3((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyR�DsN(R�R�R�RRR�R�(((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyR��s	Stsawtootht
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�RR(R
R�R�((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyRRsc	C s\|j|||||�}tjgtjtjgt|�dd}t||�}|S(Nii(R�RR�R�R#(	R
RcRdR�R�R�R�R�R3((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyR�\s	N(R�R�R�RRR�(((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyRMs
t
roundtoothtAvailableBoxstyles(R�R�R�R�tobjectR�R�R�R�R�R�R�RR�tdedentR�(((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyR��s("@)
'

>
5
k

RcB 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
((s8/usr/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.((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyR�s

		
	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�RR6(R
R
R�((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyR�s
cC s
||_dS(sA
        Set the mutation scale.

        ACCEPTS: float
        N(R(R
R�((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pytset_mutation_scale�scC s|jS(s,
        Return the mutation scale.
        (R(R
((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pytget_mutation_scale�scC s
||_dS(sT
        Set the aspect ratio of the bbox mutation.

        ACCEPTS: float
        N(R	(R
taspect((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pytset_mutation_aspect�scC s|jS(s?
        Return the aspect ratio of the bbox mutation.
        (R	(R
((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pytget_mutation_aspect�scC s|jS(sReturn the boxstyle object(R(R
((s8/usr/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
        (RR�R�R�R�RR(R
R�((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyR0�s
	cC s|jS(s&Return the left coord of the rectangle(R�(R
((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyR��scC s|jS(s(Return the bottom coord of the rectangle(R�(R
((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyR�	scC s|jS(s"Return the width of the  rectangle(R�(R
((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyR�	scC s|jS(s"Return the height of the rectangle(R�(R
((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyR�
	scC s
||_dS(sM
        Set the left coord of the rectangle

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

        ACCEPTS: float
        N(R�(R
R;((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyR�	scC s
||_dS(sA
        Set the width rectangle

        ACCEPTS: float
        N(R�(R
Rd((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyR�	scC s
||_dS(sA
        Set the width rectangle

        ACCEPTS: float
        N(R�(R
R�((s8/usr/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�RjRdR�((s8/usr/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
((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyR�=	sN(R�R�R�RRR�RRRRRRRRR0R�R�R�R�R�R�R�R�R�R�(((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyR�rs2
	+						
									(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(s0
    :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 sQeZdZddd��YZd�Zd�Zddd	d	d�Zd�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(R:R;(R
R�((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyR�	s(R�R�R(((s8/usr/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(s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pytinsideA�	sc s#tjj|�}�j|�dS(Ni(RR�RR?(R R!(tpatchB(s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pytinsideB�	s(RR(R
R3R"R$R#RRR%((R"R$s8/usr/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
R3tshrinkAtshrinkBR:R;R#RRR%((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyt_shrink�	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.
            (tconnectR&R)(
R
tposAtposBR'R(R"R$R3tclipped_patht
shrinked_path((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyR��	scC s1ddlj}|j�t|jjf|jfS(Ni����(R�R�R�RRR�R�(R
R�((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyR��	s	(N(	R�R�R�RR&R)RR�R�(((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyR�s	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
R0((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyR�	scC s�|\}}|\}}||d||d}}||||}	}
|j}|||
|||	}}
||f||
f||fg}tjtjtjg}t||�S(Ng@(R0RR�R�(R
R+R,R9R:R;R<tx12ty12RRtfRtcyR�R((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyR*�	s			(R�R�R�RR*(((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyR/�	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
R7R8((s8/usr/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@(
R4R6R7RvR7R8RRR�R�(R
R+R,R9R:R;R<tcosAtsinAtcosBtsinBRR4R�R((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyR*
s!!!(R�R�R�RR*(((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyR6�	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(R7R8R0(R
R7R8R0((s8/usr/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�?(R4R6R7RvR7R8RRR�R0RzR�R�R�(R
R+R,R9R:R;R<R9R:R;R<RR4R�Rtdx1tdy1td1tf1tdx2tdy2td2tf2((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyR*>
s4!!

	 (R�R�R�RR*(((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyR>$
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(R7R8tarmAtarmBR0(R
R7R8RGRHR0((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyRl
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�RGR4R6R7RvR7R0RzRHR8R�R�R�(R
R+R,R9R:R;R<R�troundedRR9R:tdR;R<tx_armBty_armBtxptypRRtdd((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyR*�
sZ	#	&	#

!
N(R�R�R�RRR*(((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyR�c
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(sR
            *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* : angle of the connecting line (if None, parallel to A
                      and B)
            N(RGRHtfractionRX(R
RGRHRQRX((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyR�
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(R4R5RGRHRXRRvR7R6R�RQRR�R�( R
R+R,R9R:tx20ty20R;R<R1R2R�RRROtddxtddyRGRHttheta0tdthetatdltdLtdd2tarmR3tcx1tcy1tcx2tcy2R�R((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyR*�
s@
/
			N(R�R�R�RRR*(((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyRP�
stbartAvailableConnectorstyles(R�R�R�R�RR�R/R6R>R�RPR�RR�(((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyRI	s &e#
%
=
]
S
c
C sV||||}}|||||d}||||||}}	||	fS(sj
    find a point along a line connecting (x0, y0) -- (x1, y1) whose
    distance from (x0, y0) is d.
    g�?((
RcRdR9R:RJRRtffR;R<((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyt_point_along_a_linest
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 sDeZdZd�Zed��Zd�Zdd�Zd�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�RdR�R(R
((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyRbscC 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(R3tsegments((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pytensure_quadratic_bezierescC 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
R3R�R(((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyR�usg�?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
R3R�R(R�R�Rt
path_shrinkedtpath_mutatedtfillablet	path_listR�R
R`((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyR��s"*	*

cC s1ddlj}|j�t|jjf|jfS(Ni����(R�R�R�RdRR�R�(R
R�((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyR��s	(	R�R�R�RtstaticmethodRgR�R�R�(((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyR�Qs		 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�RdRnR(R
RoRpRqRrRR((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyR�s
c	C s2||||}	}
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_projectedRTRUR?R@RCRDtvertices_arrowtcodes_arrow((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyt_get_arrow_wedge�s &%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�RoRzRpRR�R�RR�RqR�RRzRRr(R
R3R�R(RRRsRtRuRcRdR9R:t	verticesAtcodesAtddxAtddyAR;R<tx3ty3t	verticesBtcodesBtddxBtddyBR�t	_fillableR�R`((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyR��sX
		
		

			!		
!
N(R�R�R�RR�RRzR�(((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyRn�s	'tCurvecB seZdZd�ZRS(s8
        A simple curve without any arrow head.
        cC s&ttj|�jdtdt�dS(NRoRp(R�RdR�RR�(R
((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyR4s(R�R�R�R(((s8/usr/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
            RoRpRRN(R�RdR�RRR�(R
RR((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyR?s	(R�R�R�R(((s8/usr/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
            RoRpRRN(R�RdR�RR�R(R
RR((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyRSs	(R�R�R�R(((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyR�N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
            RoRpRRN(R�RdR�RR(R
RR((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyRgs	(R�R�R�R(((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyR�b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
            RoRpRqRrRRN(R�RdR�RRR�(R
RR((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyR{s	(R�R�R�R(((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyR�v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
            RoRpRqRrRRN(R�RdR�RR�R(R
RR((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyR�s	(R�R�R�R(((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyR��ss-|>t
CurveFilledABcB seZdZddd�ZRS(sb
        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
            RoRpRqRrRRN(R�RdR�RR(R
RR((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyR�s	(R�R�R�R(((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyR��ss<|-|>t_BracketcB sAeZddddddddddd�
Zd�Zd�ZRS(g�?g�������?cC sc|||_|_|||_|_|||_|_|||_|_|	|
|_|_	dS(N(
tbracketAtbracketBtwidthAtwidthBtlengthAtlengthBR7R8tscaleAtscaleB(R
R�R�R�R�R�R�R7R8R�R�((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyR�s
cC s�ddlm}||||||�\}}	}
}||||}}
|||	|
f||	f|
|f|
|||
fg}tjtjtjtjg}||fS(Ni����(tget_normal_points(tmatplotlib.bezierR�RR�R�(R
RcRdRtRuR�R$R�R9R:R;R<RRRxRy((s8/usr/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
R3R�R(R�R�t
vertices_listt
codes_listRcRdR9R:RtRuR{R|R�R�R�RR�((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyR��s>				
	

	

N(R�R�RRR�R�(((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyR��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�R7R�R�R8N(R�RdR�RR(R
R�R�R7R�R�R8((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyR

sN(R�R�R�RR(((s8/usr/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|�jtdd|d|d|�dS(s�
            *widthA*
              width of the bracket

            *lengthA*
              length of the bracket

            *angleA*
              angle between the bracket and the line
            R�R�R7N(R�RdR�RRR(R
R�R�R7((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyR,
sN(R�R�R�RR(((s8/usr/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�R8N(R�RdR�RRR(R
R�R�R8((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyRB
sN(R�R�R�RR(((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyR�=
ss-[tBarABcB s#eZdZddddd�ZRS(s6
        An arrow with a bar(|) 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�iR7R�R�R8N(R�RdR�RR(R
R�R7R�R8((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyRX
sN(R�R�R�RR(((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyR�S
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�RdR�R(R
RRR�((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyRz
scC s�|j|�\}}}}}}	|j|}
t||	|
�}||f||f||	fg}ddlm}
yt||dd�\}}Wns|
k
rt||	|||
�\}}d||d||	}}||f||f||	fg}d}nX|j|}t	||ddd�\}}|dk	r=|j
|}t||d�\}}tj
|dftj|d	ftj|d
ftj|dftj|d	ftj|d
ftj|d	ftj|dftj|d
ftj|d	ftj|dftj|dftj|dfg
}nftj
|dftj|d	ftj|d
ftj|d	ftj|dftj|dfg}tg|D]\}}|^q�g|D]\}}|^q��}|tfS(Ni����(tNonIntersectingPathExceptiont	tolerenceg{�G�z�?g�?g@twmiii(RgRRtbezierR�RRcRRRR�RRR�R�R�RR(R
R3R�R(RcRdR9R:R;R<Rtin_ft
arrow_pathR�t	arrow_outtarrow_intx1nty1nRt	head_leftt
head_rightR�t	tail_leftt
tail_rightt
patch_pathR`R�((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyR��
sR!
!
!


A(R�R�R�RR�(((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyR�u
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�RdR�R(R
RRR�((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyR�
sc C s|j|�\}}}}}}	|j|}
||f||f||	fg}ddlm}t||	|
�}
yt||
dd�\}}Wns|k
rt||	|||
�\}}d||d||	}}||f||f||	fg}|}nX|}t||	|
d�}
t||
dd�\}}|}|j|}t||ddd	�\}}|j	|}t||dd
ddd	dd
�\}}t|||d
�}
t||
dd�\}}|d}||}}t
j|ft
j|dft
j
|dft
j
|dft
j|dft
j
|dft
j
|dft
j
|dft
j
|dft
j|dft
j
|dft
j
|dft
j|ft
j|fg}t
g|D]\}}|^q�g|D]\}}|^q��}|tfS(Ni����(R�R�g{�G�z�?g�?g�������?g@R�g333333�?tw1g�?tw2g333333�?iii(RgRR�R�RRRcRRR�RR�R�R�RR( R
R3R�R(RcRdR9R:R;R<RR�R�R�tpath_outtpath_inR�R�t	path_headt	path_tailRthead_lthead_rR�R�R�t
tail_startR�R�R�R`R�((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyR��
sj!
!
!






A(R�R�R�RR�(((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyR��
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�RdR�R(R
R�R�((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyR9s			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(
RgRR�R�RR�R�R�RR(R
R3R�R(RcRdR9R:R;R<R�tb_plustb_minusR�R`R�((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyR�Fs!!A(R�R�R�RR�(((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyR�1s
twedgetAvailableArrowstyles(R�R�R�R�RR�RnR�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�RR�(((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyRd(sH%^�	






O 


 
U
c
+
R�RatFancyArrowPatchcB 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<((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyRns		R�R5g@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
        R5s.either posA and posB, or path need to providedN(RR�tset_connectionstylet
_connetorsRR"R$R'R(RRR�tset_arrowstyleRR	tset_dpi_cor(R
R+R,R3t
arrowstyletarrow_transmutertconnectionstyleRR"R$R'R(RR
tdpi_corR.((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyRxs&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�((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyR��scC s|jS(s�
        dpi_cor is currently used for linewidth-related things and
        shink factor. Mutation scale is not affected by this.
        (R�(R
((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pytget_dpi_cor�scC 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,((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyt
set_positions�scC s
||_dS(s set the begin patch.
        N(R"(R
R"((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyt
set_patchA�scC s
||_dS(s set the begin patch
        N(R$(R
R$((s8/usr/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
_connectorR6(R
R�R�((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyR��s
cC s|jS(s5
        Return the ConnectionStyle instance
        (R�(R
((s8/usr/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(RRdR�RRR�t_arrow_transmuter(R
R�R�((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyR�s

cC s|jS(s.
        Return the arrowstyle object
        (R�(R
((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pytget_arrowstyle)scC s
||_dS(sA
        Set the mutation scale.

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

        ACCEPTS: float
        N(R	(R
R((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyR=scC s|jS(s?
        Return the aspect ratio of the bbox mutation.
        (R	(R
((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyREscC 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 display coord.
        (tget_path_in_displaycoordR�RhRR/R�ttransform_path(R
R�Rk((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyR0Ksc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
        iiR"R$R'R(N(R�R�RR/R�R�R"R$R'R(R�R�R�RR8R(R
R�R+R,R�Rk((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyR�Xs		
	
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(NRnRoiiR�g�?("RqRrRsRtRuRRRRTRRRURRPRvRwRzR{RSRRKRkRR�R�R�R�RhRR RmR8R~RR�(R
R�R�ReR�R3RkR�R�R�R3((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyR�vsP		


				$
N(R�R�R�RRR�RRR�R�R�R�R�R�R�R�R�RRRRR0R�R�(((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyR�is@	
F														
	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
((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyR�sR�R5gg$@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�RR"R$R'R(RR
tclip_onR�N(ii(ii(
RR�R�tcoords1tcoords2taxesAtaxesBR�Rt_annotation_clip(R
txyAtxyBtcoordsAtcoordsBR�R�R�R�R�RR"R$R'R(RR
R�R�R.((s8/usr/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	transDataRaR�R�R�R�txycoordsR�R1tget_dpiR�R6R7R2R�R�ttransFiguret	transAxes(R
R:R;tsRbR2RRR2RCR�R�RjRdR�tt((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyR�s�	



	



















	cC s
||_dS(sM
        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
Rj((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pytset_annotation_clip�s
cC s|jS(s
        Return *annotation_clip* attribute.
        See :meth:`set_annotation_clip` for the meaning of return values.
        (R�(R
((s8/usr/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
        R"R$R'R((R�R�R�R�R�R�R�R�R"R$R'R(R�RR8R(R
R�R:R;R+R,R�Rk((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyR��s		
	
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�RbR9R�R�R�R�R(R
R�RjR:R;txy_pixelRb((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyt	_check_xy�s!!	cC sO|dk	r||_n|j�s(dS|j|�s;dStj||�dS(s
        Draw.
        N(Rt	_rendererRqR�R�R�(R
R�((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyR��sN(R�R�R�RRR�RR�RR�R�R�R�R�R�(((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyR��s.	Pf				(Et
__future__RRR4t
matplotlibRtnumpyR�R�R�tmatplotlib.artistR
Rtmatplotlib.colorsRXRtmatplotlib.transformsRtmatplotlib.pathRtinterpdR�RRtkwdoctpatchdocRPR�RR�R�R�R�R�R�R�R�R�R�R�R�R�R�RRR�R�R�R�RR�R�R�R�R�RRRRRRRRRRRcRdR�R�(((s8/usr/lib64/python2.7/site-packages/matplotlib/patches.pyt<module>s~��B�T@;)\hC.� %&8�����	���>�L

Anon7 - 2021