Ë
    ¨eh‹T  ã                   ó¼   — d dl mZ d dlZd dlZd dlZd dlmZmZ d dl	m
Z
 d dlmZ d dlmZ d dlmZ  G d„ dej(                  «      Z G d„ d«      Z G d	„ d
e«      Zy)é    )ÚMutableMappingN)Ú_apiÚ
_docstring)Úallow_rasterizationc                   ó  ‡ — e Zd ZdZd„ Zej                  ˆ fd„«       Zd„ Zd„ Z	d„ Z
d„ Zˆ fd„Zdˆ fd	„	Zd
„ Zd„ Zd„ Zd„ Zd„ Zd„ Zeˆ fd„«       Zd„ Zd„ Zd„ Zdd„Zd„ Zed„ «       Zed„ «       Zed„ «       Zd„ Zˆ xZ S )ÚSpineay  
    An axis spine -- the line noting the data area boundaries.

    Spines are the lines connecting the axis tick marks and noting the
    boundaries of the data area. They can be placed at arbitrary
    positions. See `~.Spine.set_position` for more information.

    The default position is ``('outward', 0)``.

    Spines are subclasses of `.Patch`, and inherit much of their behavior.

    Spines draw a line, a circle, or an arc depending on if
    `~.Spine.set_patch_line`, `~.Spine.set_patch_circle`, or
    `~.Spine.set_patch_arc` has been called. Line-like is the default.

    For examples see :ref:`spines_examples`.
    c                  ó   — y)Nr   © ©Úselfs    úO/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/matplotlib/spines.pyÚ__str__zSpine.__str__    s   € Øó    c                 ó�  •— t        ‰| �  di |¤Ž || _        | j                  | j                  j	                  d¬«      «       || _        | j                  d«       | j                  t        j                  d   «       | j                  t        j                  d   «       | j                  d«       d| _        | j                  d«       | j                  | j                  j                  «       d| _        d| _        t%        j&                  t(        j*                  |¬	«       || _        d
| _        t1        j2                  «       | _        y)a²  
        Parameters
        ----------
        axes : `~matplotlib.axes.Axes`
            The `~.axes.Axes` instance containing the spine.
        spine_type : str
            The spine type.
        path : `~matplotlib.path.Path`
            The `.Path` instance used to draw the spine.

        Other Parameters
        ----------------
        **kwargs
            Valid keyword arguments are:

            %(Patch:kwdoc)s
        F©ÚrootÚnonezaxes.edgecolorzaxes.linewidthÚ
projectingNg      @)ÚpathÚliner
   )ÚsuperÚ__init__ÚaxesÚ
set_figureÚ
get_figureÚ
spine_typeÚset_facecolorÚset_edgecolorÚmplÚrcParamsÚset_linewidthÚset_capstyleÚaxisÚ
set_zorderÚset_transformÚ	transDataÚ_boundsÚ	_positionr   Úcheck_isinstanceÚmpathÚPathÚ_pathÚ_patch_typeÚmtransformsÚIdentityTransformÚ_patch_transform)r   r   r   r   ÚkwargsÚ	__class__s        €r   r   zSpine.__init__#   s   ø€ ô& 	‰ÑÑ"˜6Ò"ØˆŒ	Ø�‰˜Ÿ	™	×,Ñ,°%Ð,Ó8Ô9Ø$ˆŒØ×Ñ˜6Ô"Ø×Ñœ3Ÿ<™<Ð(8Ñ9Ô:Ø×Ñœ3Ÿ<™<Ð(8Ñ9Ô:Ø×Ñ˜,Ô'ØˆŒ	à�‰˜ÔØ×Ñ˜4Ÿ9™9×.Ñ.Ô/àˆŒð
 ˆŒÜ×ÑœeŸj™j¨tÕ4ØˆŒ
ð "ˆÔô !,× =Ñ =Ó ?ˆÕr   c                 ó  — d| _         || _        |dz  | _        |dz  | _        || _        || _        t        j                  j                  ||«      | _	        | j                  | j                  j                  «       d| _        y)zSet the spine to be arc-like.Úarcé   TN)r-   Ú_centerÚ_widthÚ_heightÚ_theta1Ú_theta2r*   r+   r4   r,   r%   r   Ú	transAxesÚstale)r   ÚcenterÚradiusÚtheta1Útheta2s        r   Úset_patch_arczSpine.set_patch_arcX   sj   € à ˆÔØˆŒØ˜q‘jˆŒØ ‘zˆŒØˆŒØˆŒÜ—Z‘Z—^‘^ F¨FÓ3ˆŒ
à×Ñ˜4Ÿ9™9×.Ñ.Ô/Øˆ�
r   c                 ó    — d| _         || _        |dz  | _        |dz  | _        | j	                  | j
                  j                  «       d| _        y)zSet the spine to be circular.Úcircler5   TN)r-   r6   r7   r8   r%   r   r;   r<   )r   r=   r>   s      r   Úset_patch_circlezSpine.set_patch_circlee   sF   € à#ˆÔØˆŒØ˜q‘jˆŒØ ‘zˆŒà×Ñ˜4Ÿ9™9×.Ñ.Ô/Øˆ�
r   c                 ó    — d| _         d| _        y)zSet the spine to be linear.r   TN)r-   r<   r   s    r   Úset_patch_linezSpine.set_patch_lineo   s   € à!ˆÔØˆ�
r   c                 ó€  — | j                   dv sJ ‚| j                  | j                  d   «      | j                  | j                  d   «      f}| j                  | j                  «      }| j                  | j
                  «      } t        j                  «       j                  |dz  |dz  «      j                  |Ž | _
        y)a!  
        Notes
        -----
        This cannot be called until after this has been added to an Axes,
        otherwise unit conversion will fail. This makes it very important to
        call the accessor method and not directly access the transformation
        member variable.
        ©r4   rC   r   é   ç      à?N)r-   Úconvert_xunitsr6   Úconvert_yunitsr7   r8   r.   ÚAffine2DÚscaleÚ	translater0   )r   r=   ÚwidthÚheights       r   Ú_recompute_transformzSpine._recompute_transformu   s©   € ð ×ÑÐ#4Ñ4Ð4Ð4Ø×%Ñ% d§l¡l°1¡oÓ6Ø×%Ñ% d§l¡l°1¡oÓ6ð8ˆà×#Ñ# D§K¡KÓ0ˆØ×$Ñ$ T§\¡\Ó2ˆð!¤× 4Ñ 4Ó 6ß‰U�5˜3‘; ¨¡Ó-ß‰Y˜ð! ˆÕr   c                 ót   •— | j                   dv r| j                  «        | j                  S t        ‰| �  «       S )NrH   )r-   rR   r0   r   Úget_patch_transform)r   r2   s    €r   rT   zSpine.get_patch_transform‡   s8   ø€ Ø×ÑÐ0Ñ0Ø×%Ñ%Ô'Ø×(Ñ(Ð(ä‘7Ñ.Ó0Ð0r   c                 ó  •— | j                  «        t        ‰| �	  |¬«      }| j                  �| j                  j	                  «       s|S |g}| j                  j                  «       }t        t        h |£h | j                  j                  £z  «      d«      }t        t        h |£h | j                  j                  £z  «      d«      }||fD �]›  }|€Œ|j                  «       }|j                  }	|j                  }
|
dk(  rd}d}n|
dk(  rd}d}nd}d}| j                  d¬	«      j                  }||	z  d
z  |z  }||	z  d
z  |z  }|j                  j	                  «       ro| j                   dk(  r)|j"                  |z
  |_        |j$                  |z   |_        n7| j                   dk(  r(|j&                  |z
  |_        |j(                  |z   |_        |j*                  j	                  «       ro| j                   dk(  r)|j$                  |z   |_        |j"                  |z
  |_        n7| j                   dk(  r(|j(                  |z   |_        |j&                  |z
  |_        |j-                  |«       �Œž t.        j0                  j3                  |«      S )a  
        Return the window extent of the spines in display space, including
        padding for ticks (but not their labels)

        See Also
        --------
        matplotlib.axes.Axes.get_tightbbox
        matplotlib.axes.Axes.get_window_extent
        )ÚrendererNÚoutrI   r   ÚinrJ   Tr   éH   ÚleftÚbottomÚrightÚtop)Ú_adjust_locationr   Úget_window_extentr#   Úget_visibleÚ_update_ticksÚnextÚiterÚ
majorTicksÚ
minorTicksÚfrozenÚ_sizeÚ_tickdirr   ÚdpiÚ	tick1liner   Úx0Úx1Úy0Úy1Ú	tick2lineÚappendr.   ÚBboxÚunion)r   rV   ÚbbÚbboxesÚdrawn_ticksÚ
major_tickÚ
minor_tickÚtickÚbb0ÚticklÚtickdirÚpadoutÚpadinri   r2   s                 €r   r_   zSpine.get_window_extentŽ   s?  ø€ ð 	×ÑÔÜ‰WÑ&°Ð&Ó9ˆØ�9‰9Ð D§I¡I×$9Ñ$9Ô$;ØˆIØ�ˆØ—i‘i×-Ñ-Ó/ˆäœ$˜~ ˜~Ð0G°$·)±)×2FÑ2FÐ0GÑGÓHÈ$ÓOˆ
Üœ$˜~ ˜~Ð0G°$·)±)×2FÑ2FÐ0GÑGÓHÈ$ÓOˆ
Ø Ð,ó "	ˆDØˆ|ØØ—)‘)“+ˆCØ—J‘JˆEØ—m‘mˆGØ˜%ÒØ�Ø‘Ø˜D’Ø�Ø‘à�Ø�Ø—/‘/ t�/Ó,×0Ñ0ˆCØ˜e‘^ bÑ(¨3Ñ.ˆFØ˜E‘M BÑ&¨Ñ,ˆEà�~‰~×)Ñ)Ô+Ø—?‘? fÒ,Ø ŸV™V f™_�C”FØ ŸV™V e™^�C•FØ—_‘_¨Ò0Ø ŸV™V f™_�C”FØ ŸV™V e™^�C”Fà�~‰~×)Ñ)Ô+Ø—?‘? gÒ-Ø ŸV™V f™_�C”FØ ŸV™V e™^�C•FØ—_‘_¨Ò-Ø ŸV™V f™_�C”FØ ŸV™V f™_�C”FØ�M‰M˜#ÖðE"	ôH ×Ñ×%Ñ% fÓ-Ð-r   c                 ó   — | j                   S ©N)r,   r   s    r   Úget_pathzSpine.get_pathÈ   ó   € Ø�z‰zÐr   c                 ób   — | j                   €#d| _         | j                  | j                   «       y y )N)Úoutwardç        )r(   Úset_positionr   s    r   Ú_ensure_position_is_setzSpine._ensure_position_is_setË   s*   € Ø�>‰>Ð!à-ˆDŒNØ×Ñ˜dŸn™nÕ-ð "r   c                 ó    — || _         d| _        y)zÎ
        Register an axis.

        An axis should be registered with its corresponding spine from
        the Axes instance. This allows the spine to clear any axis
        properties when needed.
        TN)r#   r<   )r   r#   s     r   Úregister_axiszSpine.register_axisÑ   s   € ð ˆŒ	Øˆ�
r   c                 ór   — | j                  «        | j                  �| j                  j                  «        yy)zClear the current spine.N)Ú_clearr#   Úclearr   s    r   r‹   zSpine.clearÜ   s(   € à�‰ŒØ�9‰9Ð Ø�I‰I�O‰OÕð !r   c                 ó   — d| _         y)zâ
        Clear things directly related to the spine.

        In this way it is possible to avoid clearing the Axis as well when calling
        from library code where it is known that the Axis is cleared separately.
        N)r(   r   s    r   rŠ   zSpine._clearâ   s   € ð ˆ�r   c                 ó  — | j                   dk(  ry| j                  �| j                  \  }}n|| j                   dv r$| j                  j                  j                  \  }}nJ| j                   dv r$| j                  j                  j
                  \  }}nt        d| j                   › �«      ‚| j                  dk(  �r)| j                   dv �r	 | j                  j                  «       }	 | j                  j                  «       }||z  |z   }||z  |z   }||kD  r||}}t        j                  j                  t        j                  |«      t        j                  |«      «      | _        | j                   d
k(  rp| j                  j                  j                  \  }}	 | j                  j#                  «       }||z
  ||z
  z  }|| _        || _        yt        d| j                   z  «      ‚y| j                   j(                  }	|	j*                  dk(  sJ d«       ‚| j                   dv r||	d<   ||	d<   y| j                   dv r||	d<   ||	d<   yt        d| j                   z  «      ‚# t        $ r d}Y �Œƒw xY w# t        $ r d	}Y �Œzw xY w# t        $ r |}Y ŒÚw xY w)z4Automatically set spine bounds to the view interval.rC   N©rZ   r\   ©r]   r[   úunknown spine spine_type: r4   ©r[   r]   rI   r   r[   z#unable to set bounds for spine "%s")r5   r5   zunexpected vertices shape©r   rI   )rI   rI   )r   r   ©rI   r   )r   r'   r   ÚviewLimÚ	intervalyÚ	intervalxÚ
ValueErrorr-   Úget_theta_directionÚAttributeErrorÚget_theta_offsetr*   r+   r4   ÚnpÚrad2degr,   Úget_roriginr8   r7   ÚverticesÚshape)
r   ÚlowÚhighÚ	directionÚoffsetÚrminÚrmaxÚroriginÚscaled_diameterÚv1s
             r   r^   zSpine._adjust_locationë   sr  € ð �?‰?˜hÒ&Øà�<‰<Ð#ØŸ™‰IˆC‘Ø�_‰_Ð 1Ñ1ØŸ	™	×)Ñ)×3Ñ3‰IˆC‘Ø�_‰_Ð 1Ñ1ØŸ	™	×)Ñ)×3Ñ3‰IˆC‘äÐ9¸$¿/¹/Ð9JÐKÓLÐLà×Ñ˜uÓ$Ø�‰Ð"3Ò3ð"Ø $§	¡	× =Ñ =Ó ?�IðØ!ŸY™Y×7Ñ7Ó9�Fð ˜I‘o¨Ñ.�Ø˜iÑ'¨&Ñ0�Ø˜’:Ø $ c˜�Cä"ŸZ™ZŸ^™^¬B¯J©J°s«O¼R¿Z¹ZÈÓ=MÓN�”
à—?‘? hÒ.Ø!%§¡×!2Ñ!2×!<Ñ!<‘J�D˜$ð'Ø"&§)¡)×"7Ñ"7Ó"9˜ð (,¨g¡~¸$À¹.Ñ&I�OØ#2�D”LØ"1�D•Kô !Ð!FØ!%§¡ñ"1ó 2ð 2ð /ð —‘×$Ñ$ˆBØ—8‘8˜vÒ%ÐBÐ'BÓBÐ%Ø�‰Ð"3Ñ3Ø��4‘Ø��4’Ø—‘Ð$5Ñ5Ø��4‘Ø��4’ä Ð!FØ!%§¡ñ"1ó 2ð 2øôI &ò "Ø !“Ið"ûô &ò Ø“Fðûô *ò 'Ø"&šð'ús6   Ã	I Ã$I* ÆI< ÉI'É&I'É*I9É8I9É<J
Ê	J
c                 óT   •— | j                  «        t        ‰| �	  |«      }d| _        |S )NF)r^   r   Údrawr<   )r   rV   Úretr2   s      €r   rª   z
Spine.draw%  s)   ø€ à×ÑÔÜ‰g‰l˜8Ó$ˆØˆŒ
Øˆ
r   c                 ó
  — |dv rn+t        |«      dk7  rt        d«      ‚|d   dvrt        d«      ‚|| _        | j                  | j	                  «       «       | j
                  �| j
                  j                  «        d| _        y)	a±  
        Set the position of the spine.

        Spine position is specified by a 2 tuple of (position type,
        amount). The position types are:

        * 'outward': place the spine out from the data area by the specified
          number of points. (Negative values place the spine inwards.)
        * 'axes': place the spine at the specified Axes coordinate (0 to 1).
        * 'data': place the spine at the specified data coordinate.

        Additionally, shorthand notations define a special positions:

        * 'center' -> ``('axes', 0.5)``
        * 'zero' -> ``('data', 0.0)``

        Examples
        --------
        :doc:`/gallery/spines/spine_placement_demo`
        )r=   Úzeror5   z&position should be 'center' or 2-tupler   )rƒ   r   Údataz:position[0] should be one of 'outward', 'axes', or 'data' NT)Úlenr—   r(   r%   Úget_spine_transformr#   Úreset_ticksr<   )r   Úpositions     r   r…   zSpine.set_position,  s†   € ð* Ð)Ñ)Øä�8‹} Ò!Ü Ð!IÓJÐJØ˜‰{Ð"=Ñ=Ü ð "6ó 7ð 7à!ˆŒØ×Ñ˜4×3Ñ3Ó5Ô6Ø�9‰9Ð Ø�I‰I×!Ñ!Ô#Øˆ�
r   c                 ó:   — | j                  «        | j                  S )zReturn the spine position.)r†   r(   r   s    r   Úget_positionzSpine.get_positionO  s   € à×$Ñ$Ô&Ø�~‰~Ðr   c                 óp  — | j                  «        | j                  }t        |t        «      r|dk(  rd}n|dk(  rd}t	        |«      dk(  sJ d«       ‚|\  }}t        j                  g d¢|¬«       | j                  d	v r| j                  j                  d
¬«      }nC| j                  dv r| j                  j                  d
¬«      }nt        d| j                  ›�«      ‚|dk(  rj|dk(  r|S dddddœ| j                     }|t        j                  |«      z  dz  }|t        j                  g |¢| j!                  d¬«      j"                  ‘­Ž z   S |dk(  rk| j                  d	v r't        j$                  j'                  dddd|d«      |z   S | j                  dv r't        j$                  j'                  ddddd|«      |z   S y|dk(  rö| j                  dv r|dz  }| j                  d	v rct        j(                  t        j$                  «       j+                  |d«      | j                  j,                  z   | j                  j,                  «      S | j                  dv rct        j(                  | j                  j,                  t        j$                  «       j+                  d|«      | j                  j,                  z   «      S yy)zReturn the spine transform.r=   )r   rJ   r­   )r®   r   r5   zposition should be 2-tuple)r   rƒ   r®   )Úposition_typerŽ   Úgrid)Úwhichr�   r�   rƒ   r   )éÿÿÿÿr   r“   )r   r¹   r’   )rZ   r\   r[   r]   rY   Fr   r   rI   r‘   r®   )r\   r]   N)r†   r(   Ú
isinstanceÚstrr¯   r   Úcheck_in_listr   r   Úget_yaxis_transformÚget_xaxis_transformr—   r›   Úarrayr.   ÚScaledTranslationr   Údpi_scale_transrM   Úfrom_valuesÚblended_transform_factoryrO   r&   )r   r²   r¶   ÚamountÚbase_transformÚ
offset_vecÚoffset_dotss          r   r°   zSpine.get_spine_transformT  s»  € à×$Ñ$Ô&à—>‘>ˆÜ�h¤Ô$Ø˜8Ò#Ø(‘Ø˜VÒ#Ø&�Ü�8‹} Ò!Ð?Ð#?Ó?Ð!Ø (Ñˆ�vÜ×ÑÒ6Ø)6õ	8à�?‰?Ð/Ñ/Ø!ŸY™Y×:Ñ:ÀÐ:ÓH‰NØ�_‰_Ð 1Ñ1Ø!ŸY™Y×:Ñ:ÀÐ:ÓH‰NäÐ9¸$¿/¹/Ð9LÐMÓNÐNà˜IÒ%Ø˜Š{Ø%Ð%à&-¸Ø(/¸ñ à $§¡ñ1�
ð %¤r§x¡x°
Ó';Ñ;¸bÑ@�Ø&Ü%×7Ñ7ð WØ(ðWØ*.¯/©/¸u¨/Ó*E×*UÑ*UòWñWð Xð ˜fÒ$Ø�‰Ð"3Ñ3ä#×,Ñ,×8Ñ8¸¸A¸qÀ!ÀVÈQÓOØ(ñ)ð *à—‘Ð$5Ñ5ä#×,Ñ,×8Ñ8¸¸A¸qÀ!ÀQÈÓOØ(ñ)ð *ð 6ð ˜fÒ$Ø�‰Ð"2Ñ2ð ˜!‘�Ø�‰Ð"3Ñ3Ü"×<Ñ<Ü×(Ñ(Ó*×4Ñ4°V¸QÓ?Ø—i‘i×)Ñ)ñ*à—I‘I×'Ñ'ó)ð )ð —‘Ð$5Ñ5Ü"×<Ñ<Ø—I‘I×'Ñ'Ü×(Ñ(Ó*×4Ñ4°Q¸Ó?Ø—i‘i×)Ñ)ñ*ó+ð +ð 6ð %r   c                 óÎ   — | j                   dk(  rt        d«      ‚|€t        j                  |«      r|\  }}| j	                  «       xs d\  }}|€|}|€|}||f| _        d| _        y)aâ  
        Set the spine bounds.

        Parameters
        ----------
        low : float or None, optional
            The lower spine bound. Passing *None* leaves the limit unchanged.

            The bounds may also be passed as the tuple (*low*, *high*) as the
            first positional argument.

            .. ACCEPTS: (low: float, high: float)

        high : float or None, optional
            The higher spine bound. Passing *None* leaves the limit unchanged.
        rC   z5set_bounds() method incompatible with circular spinesN©NNT)r   r—   r›   ÚiterableÚ
get_boundsr'   r<   )r   r    r¡   Úold_lowÚold_highs        r   Ú
set_boundszSpine.set_bounds�  sw   € ð" �?‰?˜hÒ&ÜØGóIð Iàˆ<œBŸK™K¨Ô,Ø‰IˆC�Ø ŸO™OÓ-Ò=°Ñˆ�Øˆ;ØˆCØˆ<ØˆDØ˜T�{ˆŒØˆ�
r   c                 ó   — | j                   S )zGet the bounds of the spine.)r'   r   s    r   rË   zSpine.get_bounds­  s   € à�|‰|Ðr   c                 ój  — |dk(  rt        j                  ddg«      }ne|dk(  rt        j                  ddg«      }nH|dk(  rt        j                  ddg«      }n+|dk(  rt        j                  ddg«      }nt        d	|z  «      ‚ | |||fi |¤Ž}|j                  t        j
                  d
|› �   «       |S )z#Create and return a linear `Spine`.rZ   )r„   ç+‡ÙÎ÷ï?r\   )ç      ð?rÑ   r[   )rÑ   r„   r]   )rÑ   rÒ   z"unable to make path for spine "%s"zaxes.spines.)r*   r+   r—   Úset_visibler   r    )Úclsr   r   r1   r   Úresults         r   Úlinear_spinezSpine.linear_spine±  s·   € ð ˜ÒÜ—:‘:˜|¨\Ð:Ó;‰DØ˜7Ò"Ü—:‘:˜|¨\Ð:Ó;‰DØ˜8Ò#Ü—:‘:˜|¨\Ð:Ó;‰DØ˜5Ò Ü—:‘:˜|¨\Ð:Ó;‰DäÐAÀJÑNÓOÐOÙ�T˜: tÑ6¨vÑ6ˆØ×Ñœ3Ÿ<™<¨,°z°lÐ(CÑDÔEàˆr   c                 ó„   — t         j                  j                  ||«      } | |||fi |¤Ž}	|	j                  ||||«       |	S )z!Create and return an arc `Spine`.)r*   r+   r4   rA   )
rÔ   r   r   r=   r>   r?   r@   r1   r   rÕ   s
             r   Ú	arc_spinezSpine.arc_spineÄ  sD   € ô �z‰z�~‰~˜f fÓ-ˆÙ�T˜: tÑ6¨vÑ6ˆØ×Ñ˜V V¨V°VÔ<Øˆr   c                 ó€   — t         j                  j                  «       }d} | |||fi |¤Ž}|j                  ||«       |S )z%Create and return a circular `Spine`.rC   )r*   r+   Úunit_circlerD   )rÔ   r   r=   r>   r1   r   r   rÕ   s           r   Úcircular_spinezSpine.circular_spineÍ  sC   € ô �z‰z×%Ñ%Ó'ˆØˆ
Ù�T˜: tÑ6¨vÑ6ˆØ×Ñ ¨Ô/Øˆr   c                 ó4   — | j                  |«       d| _        y)aW  
        Set the edgecolor.

        Parameters
        ----------
        c : :mpltype:`color`

        Notes
        -----
        This method does not modify the facecolor (which defaults to "none"),
        unlike the `.Patch.set_color` method defined in the parent class.  Use
        `.Patch.set_facecolor` to set the facecolor.
        TN)r   r<   )r   Úcs     r   Ú	set_colorzSpine.set_colorÖ  s   € ð 	×Ñ˜1ÔØˆ�
r   r   rÉ   )!Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   Úinterpdr   rA   rD   rF   rR   rT   r_   r€   r†   rˆ   r‹   rŠ   r^   r   rª   r…   r´   r°   rÎ   rË   ÚclassmethodrÖ   rØ   rÛ   rÞ   Ú__classcell__)r2   s   @r   r   r      sØ   ø„ ñò"ð ×Ñó2@ó ð2@òhòòò ô$1õ8.òtò.ò	òòò82ðt óó ðò!òFò
9+óvò<ð ñó ðð$ ñó ðð ñó ðör   r   c                   ó"   — e Zd ZdZd„ Zd„ Zd„ Zy)ÚSpinesProxyag  
    A proxy to broadcast ``set_*()`` and ``set()`` method calls to contained `.Spines`.

    The proxy cannot be used for any other operations on its members.

    The supported methods are determined dynamically based on the contained
    spines. If not all spines support a given method, it's executed only on
    the subset of spines that support it.
    c                 ó   — || _         y r   )Ú_spine_dict)r   Ú
spine_dicts     r   r   zSpinesProxy.__init__ò  s
   € Ø%ˆÕr   c                 ó   — | j                   j                  «       D �cg c]  }t        ||«      r|‘Œ }}|dk7  r|j                  d«      r|st	        d|› d�«      ‚d„ }t        j                  |||«      }|d   j                  |_        |S c c}w )NÚsetÚset_z''SpinesProxy' object has no attribute 'ú'c                 ó6   — | D ]  } t        ||«      |i |¤Ž Œ y r   )Úgetattr)Ú_targetsÚ	_funcnameÚargsr1   Úspines        r   Úxz"SpinesProxy.__getattr__.<locals>.xü  s'   € Ø!ò ;�Ø)”˜˜yÓ)¨4Ð:°6Ó:ñ;r   r   )ré   ÚvaluesÚhasattrÚ
startswithr™   Ú	functoolsÚpartialrâ   )r   Únamerô   Úbroadcast_targetsrõ   s        r   Ú__getattr__zSpinesProxy.__getattr__õ  s    € Ø04×0@Ñ0@×0GÑ0GÓ0Iö 6 uÜ '¨¨tÔ 4ò #ð 6Ðð 6à�EŠM $§/¡/°&Ô"9ÑBSÜ Ø9¸$¸¸qÐAóCð Cò	;ô ×Ñ˜aÐ!2°DÓ9ˆØ% aÑ(×0Ñ0ˆŒ	Øˆùò6s   �Bc                 óÀ   — g }| j                   j                  «       D ]#  }|j                  d„ t        |«      D «       «       Œ% t	        t        t        |«      «      «      S )Nc              3   óB   K  — | ]  }|j                  d «      r|–— Œ y­w)rí   N)rø   )Ú.0rû   s     r   ú	<genexpr>z&SpinesProxy.__dir__.<locals>.<genexpr>  s%   è ø€ ò LØ!°4·?±?À6Ô3Jô ñ Lùs   ‚)ré   rö   ÚextendÚdirÚlistÚsortedrì   )r   Únamesrô   s      r   Ú__dir__zSpinesProxy.__dir__  s]   € ØˆØ×%Ñ%×,Ñ,Ó.ò 	LˆEØ�L‰Lñ LÜ%(¨£ZôLõ Lð	Lô ”Fœ3˜u›:Ó&Ó'Ð'r   N)rß   rà   rá   râ   r   rý   r  r
   r   r   rç   rç   è  s   „ ñò&òó(r   rç   c                   óV   — e Zd ZdZd„ Zed„ «       Zd„ Zd„ Zd„ Z	d„ Z
d„ Zd	„ Zd
„ Zd„ Zy)ÚSpinesaÎ  
    The container of all `.Spine`\s in an Axes.

    The interface is dict-like mapping names (e.g. 'left') to `.Spine` objects.
    Additionally, it implements some pandas.Series-like features like accessing
    elements by attribute::

        spines['top'].set_visible(False)
        spines.top.set_visible(False)

    Multiple spines can be addressed simultaneously by passing a list::

        spines[['top', 'right']].set_visible(False)

    Use an open slice to address all spines::

        spines[:].set_visible(False)

    The latter two indexing methods will return a `SpinesProxy` that broadcasts all
    ``set_*()`` and ``set()`` calls to its members, but cannot be used for any other
    operation.
    c                 ó   — || _         y r   ©Ú_dict)r   r1   s     r   r   zSpines.__init__"  s	   € Øˆ�
r   c                 ó   —  | di |¤ŽS ©Nr
   r
   )rÔ   Úds     r   Ú	from_dictzSpines.from_dict%  s   € á‰x�Q‰xˆr   c                 ó   — | j                   S r   r  r   s    r   Ú__getstate__zSpines.__getstate__)  r�   r   c                 ó(   —  | j                   di |¤Ž y r  )r   )r   Ústates     r   Ú__setstate__zSpines.__setstate__,  s   € Øˆ�‰Ñ˜Ór   c                 óZ   — 	 | j                   |   S # t        $ r t        d|› d�«      ‚w xY w)Nz$'Spines' object does not contain a 'z' spine)r  ÚKeyErrorr™   )r   rû   s     r   rý   zSpines.__getattr__/  sC   € ð	FØ—:‘:˜dÑ#Ð#øÜò 	FÜ Ø6°t°f¸GÐDóFð Fð	Fús   ‚ ‘*c                 ó  — t        |t        «      ru|D �cg c]  }|| j                  vsŒ|‘Œ }}|rt        dj	                  |«      «      ‚t        | j                  j                  «       D ��ci c]  \  }}||v r||“Œ c}}«      S t        |t        «      rt        d«      ‚t        |t        «      rD|j                  €-|j                  €!|j                  €t        | j                  «      S t        d«      ‚| j                  |   S c c}w c c}}w )Nz, z/Multiple spines must be passed as a single listzYSpines does not support slicing except for the fully open slice [:] to access all spines.)rº   r  r  r  Újoinrç   ÚitemsÚtupler—   ÚsliceÚstartÚstopÚstep)r   ÚkeyÚkÚunknown_keysÚvs        r   Ú__getitem__zSpines.__getitem__6  sö   € Ü�cœ4Ô Ø'*ÖB !¨a°t·z±zÒ.AšAÐBˆLÐBÙÜ˜tŸy™y¨Ó6Ó7Ð7Ü°·±×1AÑ1AÓ1C÷  -©¨¨AØ#$¨¡8ð !" 1¡ó  -ó .ð .ä�cœ5Ô!ÜÐNÓOÐOÜ�cœ5Ô!Ø�y‰yÐ  S§X¡XÐ%5¸#¿(¹(Ð:JÜ" 4§:¡:Ó.Ð.ä ð;ó<ð <ð �z‰z˜#‰Ðùò Cùó -s   •D©DÁ-D	
c                 ó"   — || j                   |<   y r   r  )r   r   Úvalues      r   Ú__setitem__zSpines.__setitem__H  s   € àˆ�
‰
�3Šr   c                 ó   — | j                   |= y r   r  )r   r   s     r   Ú__delitem__zSpines.__delitem__L  s   € à�J‰J�s‰Or   c                 ó,   — t        | j                  «      S r   )rc   r  r   s    r   Ú__iter__zSpines.__iter__P  s   € Ü�D—J‘JÓÐr   c                 ó,   — t        | j                  «      S r   )r¯   r  r   s    r   Ú__len__zSpines.__len__S  s   € Ü�4—:‘:‹Ðr   N)rß   rà   rá   râ   r   rä   r  r  r  rý   r$  r'  r)  r+  r-  r
   r   r   r	  r	    sI   „ ñò,ð ñó ðòòòFòò$ òò ór   r	  )Úcollections.abcr   rù   Únumpyr›   Ú
matplotlibr   r   r   Úmatplotlib.artistr   Úmatplotlib.transformsÚ
transformsr.   Úmatplotlib.patchesÚpatchesÚmpatchesÚmatplotlib.pathr   r*   ÚPatchr   rç   r	  r
   r   r   ú<module>r9     sL   ðÝ *Û ã ã ß 'Ý 1Ý +Ý %Ý ôWˆH�N‰Nô W÷t (ñ  (ôFIˆ^õ Ir   