Ë
    ¨eh
™ ã                   ó¶  — d Z ddlZddlZddlZ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 ddlmZ ddlmZ ddlm Z! ddl"m#Z$  ejJ                  e&«      Z'dZ( ejR                  ejT                  «      Z+e+jY                  «       Z-e+j\                  j_                  «       D � cg c]  }  e0 e1| «      «      ‘Œ c} Z2e-e2z   D �cg c]  }d|z   ‘Œ	 c}Z3 G d„ dejh                  «      Z5 G d	„ d
e5«      Z6 G d„ de5«      Z7 G d„ d«      Z8 G d„ d«      Z9 G d„ dejh                  «      Z:d„ Z; G d„ de:«      Z< G d„ de:«      Z=yc c} w c c}w )z*
Classes for the ticks and x- and y-axis.
é    N)ÚReal)Ú_apiÚcbooké´   Úgrid_c                   óò   ‡ — e Zd ZdZdddddddddddddddddddddœˆ fd„
Zd„ Zed	„ «       Zd
„ Zd„ Z	d„ Z
d„ Zdˆ fd„	Zd„ Zd„ Zd„ Zd„ Zej$                  d„ «       Zˆ fd„Zd„ Zd„ Zd„ Zd„ Zd„ Zd„ Zˆ xZS )ÚTickaÛ  
    Abstract base class for the axis ticks, grid lines and labels.

    Ticks mark a position on an Axis. They contain two lines as markers and
    two labels; one each for the bottom and top positions (in case of an
    `.XAxis`) or for the left and right positions (in case of a `.YAxis`).

    Attributes
    ----------
    tick1line : `~matplotlib.lines.Line2D`
        The left/bottom tick marker.
    tick2line : `~matplotlib.lines.Line2D`
        The right/top tick marker.
    gridline : `~matplotlib.lines.Line2D`
        The grid line associated with the label position.
    label1 : `~matplotlib.text.Text`
        The left/bottom tick label.
    label2 : `~matplotlib.text.Text`
        The right/top tick label.

    NTFr   )ÚsizeÚwidthÚcolorÚtickdirÚpadÚ	labelsizeÚ
labelcolorÚlabelfontfamilyÚzorderÚgridOnÚtick1OnÚtick2OnÚlabel1OnÚlabel2OnÚmajorÚlabelrotationÚ
grid_colorÚgrid_linestyleÚgrid_linewidthÚ
grid_alphac                óö  •— t         ‰| �  «        |€It        j                  d   }|r|dv rt        j                  d   }n|s|dv rt        j                  d   }nd}| j	                  |j                  d¬«      «       || _        || _        || _        | j                  }|rdnd	}|€t        j                  |› d
|› d�   }|| _
        |€t        j                  |› d
|› d�   }|| _        |€t        j                  |› d�   }|€t        j                  |› d
|› d�   }|| _        |	€t        j                  |› d�   }	t        j                  |	d«      rt        j                  |› d�   }	|€t        j                  |› d�   }| j                  |«       |€:|rt         j"                  j$                  dz   }nt         j"                  j$                  }|| _        t        j(                  |d«      }t        j(                  |d«      }t        j(                  |d«      }|€(t+        j,                  |«      st        j                  d   }|j/                  «       D ��ci c]  \  }}|dd |“Œ }}}t!        j"                  g g |d|||||¬«	      | _        t!        j"                  g g |d|||||¬«	      | _        t!        j"                  g g f|||||ddœ|¤Ž| _        t6        | j4                  j9                  «       _        t=        j>                  t@        jB                  t@        jB                  ||	||
| jD                  d   ¬«      | _#        t=        j>                  t@        jB                  t@        jB                  ||	||
| jD                  d   ¬«      | _$        | jK                  |«       | j0                  | j2                  | j4                  | jF                  | jH                  fD ]  }| jM                  |«       Œ | jO                  |«       yc c}}w )z¨
        bbox is the Bound2D bounding box in display coords of the Axes
        loc is the tick location in data coords
        size is the tick size in points
        Núaxes.grid.which©Úbothr   ú	axes.grid©r!   ÚminorF©Úrootr   r$   ú.z.sizez.widthz.colorz.padz.labelcolorÚinheritz
.labelsizeg{®Gáz„?z
grid.colorzgrid.linestylezgrid.linewidthz
grid.alphaé   Únone)r   Ú	linestyler   ÚvisibleÚmarkeredgecolorÚ
markersizeÚmarkeredgewidthÚ )r   Úalphar,   r+   Ú	linewidthÚmarkeré   )Úfontsizer   r,   Ú
fontfamilyÚrotation)(ÚsuperÚ__init__ÚmplÚrcParamsÚ
set_figureÚ
get_figureÚaxesÚ_locÚ_majorÚ__name__Ú_sizeÚ_widthÚ	_base_padr   Ú
_str_equalÚ_set_labelrotationÚmlinesÚLine2Dr   Ú_zorderÚ
_val_or_rcÚmcolorsÚ_has_alpha_channelÚitemsÚ	tick1lineÚ	tick2lineÚgridlineÚGRIDLINE_INTERPOLATION_STEPSÚget_pathÚ_interpolation_stepsÚmtextÚTextÚnpÚnanÚ_labelrotationÚlabel1Úlabel2Ú_apply_tickdirÚ_set_artist_propsÚupdate_position) Úselfr>   Úlocr
   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   ÚkwargsÚwhichÚnameÚmajor_minorÚkÚvÚgrid_kwÚartistÚ	__class__s                                   €úM/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/matplotlib/axis.pyr9   zTick.__init__;   s¨  ø€ ô: 	‰ÑÔàˆ>Ü—L‘LÐ!2Ñ3ˆEÙ˜%Ð#4Ñ4ÜŸ™ kÑ2‘Ù %Ð+<Ñ"<ÜŸ™ kÑ2‘à�à�‰˜Ÿ™¨U˜Ó3Ô4ØˆŒ	àˆŒ	ØˆŒà�}‰}ˆÙ!&‘g¨Gˆàˆ<Ü—<‘< 4 &¨¨+¨°eÐ <Ñ=ˆDØˆŒ
àˆ=Ü—L‘L D 6¨¨;¨-°vÐ!>Ñ?ˆEØˆŒàˆ=Ü—L‘L D 6¨ Ñ1ˆEàˆ;Ü—,‘, $  q¨¨°TÐ:Ñ;ˆCØˆŒàÐÜŸ™¨¨¨kÐ&:Ñ;ˆJä×Ñ˜J¨	Ô2äŸ™¨¨¨f oÑ6ˆJàÐÜŸ™¨ v¨ZÐ%8Ñ9ˆIà×Ñ Ô.àˆ>ÙÜŸ™×-Ñ-°Ñ4‘äŸ™×-Ñ-�ØˆŒä—^‘^ J°Ó=ˆ
ÜŸ™¨Ð8HÓIˆÜŸ™¨Ð8HÓIˆØÐ¤g×&@Ñ&@ÀÔ&Lô Ÿ™ lÑ3ˆJØ(.¯©«×7¡  1�1�Q�R�5˜!‘8Ð7ˆÑ7äŸ™Ø�Ø 6°&À'Ø!¨dÀEô
ˆŒô
  Ÿ™Ø�Ø 6°&À'Ø!¨dÀEô
ˆŒô
 Ÿ™Ø�ð
à J¸Ø$°Àrñ
ð ñ	
ˆŒô )ð 	�‰×ÑÓ Ô5ä—j‘jÜ�F‰F”B—F‘FØ j¸(Ø&°×1DÑ1DÀQÑ1GôIˆŒô —j‘jÜ�F‰F”B—F‘FØ j¸(Ø&°×1DÑ1DÀQÑ1GôIˆŒð
 	×Ñ˜GÔ$à—~‘~ t§~¡~°t·}±}Ø—{‘{ D§K¡Kð1ò 	+ˆFà×"Ñ" 6Õ*ð	+ð 	×Ñ˜SÕ!ùóG 8s   ÉO5c                 ó²   — t        |t        «      r|}d}n t        |t        t        f«      r|\  }}nd}|}t	        j
                  ddg|¬«       ||f| _        y )Nr   ÚdefaultÚauto)r   )Ú
isinstanceÚstrÚtupleÚlistr   Úcheck_in_listrX   )r^   r   ÚmodeÚangles       ri   rF   zTick._set_labelrotation½   sX   € Ü�m¤SÔ)Ø ˆDØ‰EÜ˜¬¬t }Ô5Ø'‰KˆD‘%àˆDØ!ˆEÜ×Ñ˜F IÐ.¸dÕCØ# U˜mˆÕó    c                 ó<   — | j                   | j                  «       z   S ©N)rD   Úget_tick_padding©r^   s    ri   Ú_padz	Tick._padÉ   s   € à�~‰~ × 5Ñ 5Ó 7Ñ7Ð7rt   c                 ó˜   — |€(t         j                  | j                  › d�   }|| _        yt        j                  g d¢|¬«       || _        y)z;Set tick direction.  Valid values are 'out', 'in', 'inout'.Nz
.direction)ÚinÚoutÚinout)r   )r:   r;   rA   r   rq   Ú_tickdir)r^   r   s     ri   r[   zTick._apply_tickdirÍ   sE   € ð ˆ?Ü—l‘l d§m¡m _°JÐ#?Ñ@ˆGð  ˆ�ô ×ÑÒ5¸wÕGØˆ�rt   c                 ó   — | j                   S rv   )r~   rx   s    ri   Úget_tickdirzTick.get_tickdirÙ   s   € Ø�}‰}Ðrt   c                 óF   — ddddœ}| j                   || j                     z  S )z/Get the length of the tick outside of the Axes.g        ç      à?ç      ð?)r{   r}   r|   )rB   r~   )r^   Úpaddings     ri   rw   zTick.get_tick_paddingÜ   s.   € ð ØØñ
ˆð
 �z‰z˜G D§M¡MÑ2Ñ2Ð2rt   c                 óx   — | j                   | j                  | j                  | j                  | j                  g}|S rv   )rN   rO   rP   rY   rZ   )r^   Úchildrens     ri   Úget_childrenzTick.get_childrenå   s.   € Ø—N‘N D§N¡NØ—M‘M 4§;¡;°·±ð=ˆàˆrt   c                 ól   •— t         ‰| �  ||«       | j                  j                  ||«       d| _        y ©NT)r8   Úset_clip_pathrP   Ústale)r^   ÚpathÚ	transformrh   s      €ri   rŠ   zTick.set_clip_pathê   s-   ø€ ä‰Ñ˜d IÔ.Ø�‰×#Ñ# D¨)Ô4Øˆ�
rt   c                 ó
   — di fS )zç
        Test whether the mouse event occurred in the Tick marks.

        This function always returns false.  It is more useful to test if the
        axis as a whole contains the mouse rather than the set of tick marks.
        F© )r^   Ú
mouseevents     ri   ÚcontainszTick.containsð   s   € ð �bˆyÐrt   c                 ó6   — | j                  |¬«       d| _        y)zm
        Set the tick label pad in points

        Parameters
        ----------
        val : float
        )r   TN)Ú_apply_paramsr‹   ©r^   Úvals     ri   Úset_padzTick.set_padù   s   € ð 	×Ñ˜sÐÔ#Øˆ�
rt   c                 ó   — | j                   S )z.Get the value of the tick label pad in points.)rD   rx   s    ri   Úget_padzTick.get_pad  s   € à�~‰~Ðrt   c                 ó   — | j                   S )z3Return the tick location (data coords) as a scalar.)r?   rx   s    ri   Úget_loczTick.get_loc  s   € à�y‰yÐrt   c                 ól  — | j                  «       sd| _        y |j                  | j                  | j	                  «       ¬«       | j
                  | j                  | j                  | j                  | j                  fD ]  }|j                  |«       Œ |j                  | j                  «       d| _        y )NF©Úgid)Úget_visibler‹   Ú
open_grouprA   Úget_gidrP   rN   rO   rY   rZ   ÚdrawÚclose_group)r^   Úrendererrg   s      ri   r¡   z	Tick.draw  s�   € à×ÑÔ!ØˆDŒJØØ×Ñ˜DŸM™M¨t¯|©|«~ÐÔ>Ø—}‘} d§n¡n°d·n±nØ—{‘{ D§K¡Kð1ò 	"ˆFà�K‰K˜Õ!ð	"ð 	×Ñ˜TŸ]™]Ô+Øˆ�
rt   c                 óž   •— t         ‰| �  |«       | j                  j                  |«       | j                  j                  |«       d| _        y)zl
        Set the url of label1 and label2.

        Parameters
        ----------
        url : str
        TN)r8   Úset_urlrY   rZ   r‹   )r^   Úurlrh   s     €ri   r¥   zTick.set_url  s<   ø€ ô 	‰‰˜ÔØ�‰×Ñ˜CÔ Ø�‰×Ñ˜CÔ Øˆ�
rt   c                 óF   — |j                  | j                  d¬«      «       y ©NFr%   ©r<   r=   ©r^   Úas     ri   r\   zTick._set_artist_props%  s   € Ø	�‰�T—_‘_¨%�_Ó0Õ1rt   c                 ó   — t        d«      ‚)zX
        Return the view limits ``(min, max)`` of the axis the tick belongs to.
        úDerived must override©ÚNotImplementedErrorrx   s    ri   Úget_view_intervalzTick.get_view_interval(  s   € ô "Ð"9Ó:Ð:rt   c                 ó  ‡— d| j                   fd| j                  fd| j                  fd| j                  fd| j                  ffD ]*  \  }}|‰v sŒ|j                  ‰j                  |«      «       Œ, t        ˆfd„dD «       «      �r=‰j                  d| j                  «      | _        ‰j                  d	| j                  «      | _	        ‰j                  d
| j                  «      | _
        | j                  ‰j                  d| j                  «      «       | j                  | j                  fD ]8  }|j                  | j                  «       |j                  | j                  «       Œ: | j                  «       d   }| j                  j!                  |«       | j#                  «       d   }| j                  j!                  |«       ‰j%                  «       D ��ci c]  \  }}|dv sŒ||“Œ }}}d‰v r‰d   |d<    | j                  j&                  di |¤Ž  | j                  j&                  di |¤Ž |j%                  «       D ]  \  }}t)        | d|z   |«       Œ d‰v rr| j+                  ‰j                  d«      «       | j                  j'                  | j,                  d   ¬«       | j                  j'                  | j,                  d   ¬«       ‰j%                  «       D ��ci c]  \  }}|dv r|dd  |“Œ }	}} | j                  j&                  di |	¤Ž  | j                  j&                  di |	¤Ž ‰j%                  «       D ��ci c]  \  }}|t.        v r|dd  |“Œ }
}} | j                   j&                  di |
¤Ž y c c}}w c c}}w c c}}w )Nr   r   r   r   r   c              3   ó&   •K  — | ]  }|‰v –— Œ
 y ­wrv   r�   )Ú.0rd   r`   s     €ri   ú	<genexpr>z%Tick._apply_params.<locals>.<genexpr>6  s   øè ø€ ÒH˜qˆq�FŒ{ÑHùs   ƒ)r
   r   r   r   r
   r   r   r   r   )r   r   r   r-   Ú_r   r4   )r7   )r   r   r   r)   r�   )rP   rN   rO   rY   rZ   Úset_visibleÚpopÚanyrB   rC   rD   r[   r~   Úset_markersizeÚset_markeredgewidthÚ_get_text1_transformÚset_transformÚ_get_text2_transformrM   ÚsetÚsetattrrF   rX   Ú_gridline_param_names)r^   r`   rb   ÚtargetÚlineÚtransrd   re   Útick_kwÚlabel_kwrf   s    `         ri   r“   zTick._apply_params.  s-  ø€ Ø&¨¯©Ð6Ø'¨¯©Ð8Ø'¨¯©Ð8Ø(¨$¯+©+Ð6Ø(¨$¯+©+Ð6ð	8ò 	5‰LˆD�&ð
 �vŠ~Ø×"Ñ" 6§:¡:¨dÓ#3Õ4ð	5ô ÓHÐ$GÔHÕHØŸ™ F¨D¯J©JÓ7ˆDŒJð !Ÿ*™* W¨d¯k©kÓ:ˆDŒKØ#ŸZ™Z¨¨t¯~©~Ó>ˆDŒNð ×Ñ §
¡
¨9°d·m±mÓ DÔEØŸ™¨¯©Ð8ò 6�Ø×#Ñ# D§J¡JÔ/Ø×(Ñ(¨¯©Õ5ð6ð ×-Ñ-Ó/°Ñ2ˆEØ�K‰K×%Ñ% eÔ,Ø×-Ñ-Ó/°Ñ2ˆEØ�K‰K×%Ñ% eÔ,Ø$*§L¡L£N×O™D˜A˜q°aÐ;NÒ6N�1�a‘4ÐOˆÑOØ�fÑØ)/°©ˆGÐ%Ñ&Øˆ�‰×ÑÑ%˜WÒ%Øˆ�‰×ÑÑ%˜WÒ%Ø—M‘M“Oò 	&‰DˆAˆqÜ�D˜# ™' 1Õ%ð	&ð ˜fÑ$Ø×#Ñ# F§J¡J¨Ó$?Ô@Ø�K‰K�O‰O T×%8Ñ%8¸Ñ%;ˆOÔ<Ø�K‰K�O‰O T×%8Ñ%8¸Ñ%;ˆOÔ<à)/¯©«÷ L¡  AØÐJÑJð �a�b�E˜1‘Hð Lˆñ Làˆ�‰�‰Ñ#˜(Ò#Øˆ�‰�‰Ñ#˜(Ò#à(.¯©«÷ 2¡  1ØÔ0Ñ0ð �Q�R�5˜!‘8ð 2ˆñ 2àˆ�‰×ÑÑ$˜GÓ$ùó) PùóLùó
2s   ÇM;Ç$M;Ë!NÍNc                 ó   — t        d«      ‚)ú:Set the location of tick in data coords with scalar *loc*.r­   r®   ©r^   r_   s     ri   r]   zTick.update_position]  ó   € ä!Ð"9Ó:Ð:rt   c                 ó   — t        d«      ‚©Nr­   r®   rx   s    ri   r»   zTick._get_text1_transforma  ó   € Ü!Ð"9Ó:Ð:rt   c                 ó   — t        d«      ‚rË   r®   rx   s    ri   r½   zTick._get_text2_transformd  rÌ   rt   rv   )rA   Ú
__module__Ú__qualname__Ú__doc__r9   rF   Úpropertyry   r[   r€   rw   r‡   rŠ   r‘   r–   r˜   rš   ÚmartistÚallow_rasterizationr¡   r¥   r\   r°   r“   r]   r»   r½   Ú__classcell__©rh   s   @ri   r	   r	   %   sÑ   ø„ ñð. ØØØØØØØØØØØØØØØØØØØö+@"òD
,ð ñ8ó ð8ò
 òò3òõ
òò	òòð × Ñ ñ	ó !ð	ôò2ò;ò-%ò^;ò;ö;rt   r	   c                   óH   ‡ — e Zd ZdZdZ ˆ fd„Zd„ Zd„ Zˆ fd„Zd„ Zd„ Z	ˆ xZ
S )	ÚXTickzq
    Contains all the Artists needed to make an x tick - the tick line,
    the label text and the grid line
    Úxtickc                 ó0  •— t        ‰| �  |i |¤Ž | j                  }| j                  j	                  dgdgf|j                  d«      ¬«       | j                  j	                  dgdgf|j                  d«      ¬«       | j                  j	                  ddgddgf|j                  d«      ¬«       | j                  «       \  }}}| j                  j	                  dd|||¬«       | j                  «       \  }}}| j                  j	                  dd|||¬«       y ©Nr   Útick1)Údatar�   r4   Útick2Úgrid©ÚxÚyÚverticalalignmentÚhorizontalalignmentr�   )r8   r9   r>   rN   r¾   Úget_xaxis_transformrO   rP   r»   rY   r½   rZ   ©r^   Úargsr`   ÚaxrÃ   ÚvaÚharh   s          €ri   r9   zXTick.__init__o  ó!  ø€ Ü‰Ñ˜$Ð) &Ò)à�Y‰YˆØ�‰×ÑØ�#˜�s� r×'=Ñ'=¸gÓ'Fð 	ô 	Hà�‰×ÑØ�#˜�s� r×'=Ñ'=¸gÓ'Fð 	ô 	Hà�‰×ÑØ�a�&˜1˜a˜&Ð!¨R×-CÑ-CÀFÓ-Kð 	ô 	Mð ×1Ñ1Ó3‰ˆˆr�2Ø�‰�‰Ø�1Ø °bÀEð 	ô 	
ð ×1Ñ1Ó3‰ˆˆr�2Ø�‰�‰Ø�1Ø °bÀEð 	õ 	
rt   c                 óL   — | j                   j                  | j                  «      S rv   )r>   Úget_xaxis_text1_transformry   rx   s    ri   r»   zXTick._get_text1_transform…  ó   € Ø�y‰y×2Ñ2°4·9±9Ó=Ð=rt   c                 óL   — | j                   j                  | j                  «      S rv   )r>   Úget_xaxis_text2_transformry   rx   s    ri   r½   zXTick._get_text2_transformˆ  rí   rt   c                 ó4  •— t         ‰| �  |«       t        j                  t        j                  ft        j                  t        j                  fddœ| j
                     \  }}| j                  j                  |«       | j                  j                  |«       y )N)ú|rñ   ©r|   r{   r}   )	r8   r[   rG   ÚTICKDOWNÚTICKUPr~   rN   Ú
set_markerrO   ©r^   r   Úmark1Úmark2rh   s       €ri   r[   zXTick._apply_tickdir‹  sr   ø€ ä‰Ñ˜wÔ'ä—O‘O¤V§]¡]Ð3Ü—=‘=¤&§/¡/Ð2Øñ
ð �-‰-ñ	‰ˆˆuð
 	�‰×!Ñ! %Ô(Ø�‰×!Ñ! %Õ(rt   c                 ó4  — | j                   j                  |f«       | j                  j                  |f«       | j                  j                  |f«       | j                  j                  |«       | j                  j                  |«       || _        d| _        y©rÇ   TN)	rN   Ú	set_xdatarO   rP   rY   Úset_xrZ   r?   r‹   rÈ   s     ri   r]   zXTick.update_position–  óp   € à�‰× Ñ  # Ô(Ø�‰× Ñ  # Ô(Ø�‰×Ñ  Ô'Ø�‰×Ñ˜#ÔØ�‰×Ñ˜#ÔØˆŒ	Øˆ�
rt   c                 óB   — | j                   j                  j                  S rv   )r>   ÚviewLimÚ	intervalxrx   s    ri   r°   zXTick.get_view_interval   ó   € à�y‰y× Ñ ×*Ñ*Ð*rt   ©rA   rÎ   rÏ   rÐ   r9   r»   r½   r[   r]   r°   rÔ   rÕ   s   @ri   r×   r×   h  ó-   ø„ ñð €Hô
ò,>ò>ô	)òö+rt   r×   c                   óH   ‡ — e Zd ZdZdZ ˆ fd„Zd„ Zd„ Zˆ fd„Zd„ Zd„ Z	ˆ xZ
S )	ÚYTickzp
    Contains all the Artists needed to make a Y tick - the tick line,
    the label text and the grid line
    Úytickc                 ó0  •— t        ‰| �  |i |¤Ž | j                  }| j                  j	                  dgdgf|j                  d«      ¬«       | j                  j	                  dgdgf|j                  d«      ¬«       | j                  j	                  ddgddgf|j                  d«      ¬«       | j                  «       \  }}}| j                  j	                  dd|||¬«       | j                  «       \  }}}| j                  j	                  dd|||¬«       y rÚ   )r8   r9   r>   rN   r¾   Úget_yaxis_transformrO   rP   r»   rY   r½   rZ   rå   s          €ri   r9   zYTick.__init__¬  rê   rt   c                 óL   — | j                   j                  | j                  «      S rv   )r>   Úget_yaxis_text1_transformry   rx   s    ri   r»   zYTick._get_text1_transformÂ  rí   rt   c                 óL   — | j                   j                  | j                  «      S rv   )r>   Úget_yaxis_text2_transformry   rx   s    ri   r½   zYTick._get_text2_transformÅ  rí   rt   c                 ó4  •— t         ‰| �  |«       t        j                  t        j                  ft        j                  t        j                  fddœ| j
                     \  }}| j                  j                  |«       | j                  j                  |«       y )N)rµ   rµ   rò   )	r8   r[   rG   ÚTICKLEFTÚ	TICKRIGHTr~   rN   rõ   rO   rö   s       €ri   r[   zYTick._apply_tickdirÈ  sv   ø€ ä‰Ñ˜wÔ'ä—O‘O¤V×%5Ñ%5Ð6Ü×#Ñ#¤V§_¡_Ð5Øñ
ð �-‰-ñ	‰ˆˆuð
 	�‰×!Ñ! %Ô(Ø�‰×!Ñ! %Õ(rt   c                 ó4  — | j                   j                  |f«       | j                  j                  |f«       | j                  j                  |f«       | j                  j                  |«       | j                  j                  |«       || _        d| _        yrú   )	rN   Ú	set_ydatarO   rP   rY   Úset_yrZ   r?   r‹   rÈ   s     ri   r]   zYTick.update_positionÓ  rý   rt   c                 óB   — | j                   j                  j                  S rv   )r>   rÿ   Ú	intervalyrx   s    ri   r°   zYTick.get_view_intervalÝ  r  rt   r  rÕ   s   @ri   r  r  ¥  r  rt   r  c                   ó~   — e Zd ZdZd„ Zed„ «       Zej                  d„ «       Zed„ «       Zej                  d„ «       Zy)ÚTickera4  
    A container for the objects defining tick position and format.

    Attributes
    ----------
    locator : `~matplotlib.ticker.Locator` subclass
        Determines the positions of the ticks.
    formatter : `~matplotlib.ticker.Formatter` subclass
        Determines the format of the tick labels.
    c                 ó<   — d | _         d | _        d| _        d| _        y r‰   )Ú_locatorÚ
_formatterÚ_locator_is_defaultÚ_formatter_is_defaultrx   s    ri   r9   zTicker.__init__î  s    € ØˆŒØˆŒØ#'ˆÔ Ø%)ˆÕ"rt   c                 ó   — | j                   S rv   )r  rx   s    ri   ÚlocatorzTicker.locatorô  s   € à�}‰}Ðrt   c                 ó\   — t        |t        j                  «      st        d«      ‚|| _        y )Nz7locator must be a subclass of matplotlib.ticker.Locator)rm   ÚmtickerÚLocatorÚ	TypeErrorr  ©r^   r  s     ri   r  zTicker.locatorø  s)   € ä˜'¤7§?¡?Ô3Üð 8ó 9ð 9àˆ�rt   c                 ó   — | j                   S rv   )r  rx   s    ri   Ú	formatterzTicker.formatterÿ  ó   € à�‰Ðrt   c                 ó\   — t        |t        j                  «      st        d«      ‚|| _        y )Nz;formatter must be a subclass of matplotlib.ticker.Formatter)rm   r  Ú	Formatterr!  r  ©r^   r$  s     ri   r$  zTicker.formatter  s+   € ä˜)¤W×%6Ñ%6Ô7Üð :ó ;ð ;à#ˆ�rt   N)	rA   rÎ   rÏ   rÐ   r9   rÑ   r  Úsetterr$  r�   rt   ri   r  r  â  sf   „ ñ	ò*ð ñó ðð ‡^�^ñ ó ð ð ñó ðð ×Ññ$ó ñ$rt   r  c                   ó   — e Zd ZdZd„ Zd„ Zy)Ú_LazyTickListz—
    A descriptor for lazy instantiation of tick lists.

    See comment above definition of the ``majorTicks`` and ``minorTicks``
    attributes.
    c                 ó   — || _         y rv   )r@   )r^   r   s     ri   r9   z_LazyTickList.__init__  s	   € Øˆ�rt   c                 óÖ   — |€| S | j                   r-g |_        |j                  d¬«      }|g|_        |j                  S g |_        |j                  d¬«      }|g|_        |j                  S )NT©r   F)r@   Ú
majorTicksÚ	_get_tickÚ
minorTicks)r^   ÚinstanceÚownerÚticks       ri   Ú__get__z_LazyTickList.__get__  sx   € ØÐØˆKð �{Š{Ø&(�Ô#Ø×)Ñ)°Ð)Ó5�Ø'+ f�Ô#Ø×*Ñ*Ð*à&(�Ô#Ø×)Ñ)°Ð)Ó6�Ø'+ f�Ô#Ø×*Ñ*Ð*rt   N)rA   rÎ   rÏ   rÐ   r9   r5  r�   rt   ri   r+  r+    s   „ ñòó+rt   r+  c                   ó.  ‡ — e Zd ZdZdZdZ ej                  dd¬«      Zd„ Z	dd	d
œˆ fd„
Z
ed„ «       Zej                  d„ «       Zed„ «       Zej                  d„ «       Zed„ «       Zej                  d„ «       Zed„ «       Zej                  d„ «       Zd„ Zd„ Zd„ Z ed	¬«      Z ed¬«      Zd„ Zd„ Z eeed¬«      Zdzd„Zd„ Zd„ Zd „ Zd!„ Zd"„ Zd#„ Z d$„ Z!d%„ Z"d&„ Z#d'„ Z$d(„ Z%d)„ Z&d*„ Z'd+„ Z(d{d,„Z)dd-„Z*e+d|d.„«       Z,dzˆ fd/„	Z-d0„ Z.d|d1„Z/d2„ Z0d|d3„Z1d4„ Z2d5„ Z3d6„ Z4d	d7œd8„Z5d9„ Z6d:„ Z7dzd;„Z8dzdd<œd=„Z9d>„ Z:e;jx                  d?„ «       Z=d@„ Z>dA„ Z?dB„ Z@dC„ ZAdD„ ZBdE„ ZCdF„ ZDd}dG„ZEdH„ ZFdI„ ZGd|dJ„ZHdK„ ZIdL„ ZJddMœdN„ZKd|dO„ZLdP„ ZMdQ„ ZNdR„ ZOdS„ ZPdT„ ZQdU„ ZRdV„ ZSdW„ ZTdzdX„ZUdzdY„ZVd~dZ„ZWd[„ ZXd\„ ZYd]„ ZZd^„ Z[d_„ Z\d`„ Z]da„ Z^db„ Z_dc„ Z`dzdd„Zade„ Zbdf„ Zcdg„ Zddh„ Zedi„ Zfdj„ Zg eeBegdk¬«      Zheidl„ «       Zjdddmœdn„ZkddMœdo„ZldzddMœdp„Zmdq„ Zndr„ Zods„ Zpdzdt„Zqdu„ Zrdv„ Zsdw„ Ztdx„ Zudy„ Zvˆ xZwS )ÚAxisaÁ  
    Base class for `.XAxis` and `.YAxis`.

    Attributes
    ----------
    isDefault_label : bool

    axes : `~matplotlib.axes.Axes`
        The `~.axes.Axes` to which the Axis belongs.
    major : `~matplotlib.axis.Ticker`
        Determines the major tick positions and their label format.
    minor : `~matplotlib.axis.Ticker`
        Determines the minor tick positions and their label format.
    callbacks : `~matplotlib.cbook.CallbackRegistry`

    label : `~matplotlib.text.Text`
        The axis label.
    labelpad : float
        The distance between the axis label and the tick labels.
        Defaults to :rc:`axes.labelpad`.
    offsetText : `~matplotlib.text.Text`
        A `.Text` object containing the data offset of the ticks (if any).
    pickradius : float
        The acceptance radius for containment tests. See also `.Axis.contains`.
    majorTicks : list of `.Tick`
        The major ticks.

        .. warning::

            Ticks are not guaranteed to be persistent. Various operations
            can create, delete and modify the Tick instances. There is an
            imminent risk that changes to individual ticks will not
            survive if you work on the figure further (including also
            panning/zooming on a displayed figure).

            Working on the individual ticks is a method of last resort.
            Use `.set_tick_params` instead if possible.

    minorTicks : list of `.Tick`
        The minor ticks.
    é   Nz3.10z'get_converter and set_converter methods)Úalternativec                 ó”   —  dj                   t        | «      j                  g| j                  j                  j                  d«      ¢­Ž S )Nz	{}({},{})©r   r   )ÚformatÚtyperA   r>   Ú	transAxesr�   rx   s    ri   Ú__str__zAxis.__str__`  sD   € Ø!ˆ{×!Ñ!Ü�‹J×ÑðIØ"&§)¡)×"5Ñ"5×"?Ñ"?ÀÓ"GòIð 	Irt   é   T)Ú
pickradiusÚclearc                ó¬  •— t         ‰| �  «        d| _        | j                  |j	                  d¬«      «       d| _        || _        t        «       | _        t        «       | _	        t        j                  dg¬«      | _        d| _        t        j                  t         j"                  t         j"                  t$        j&                  d   t$        j&                  d   t$        j&                  d   ¬	«      | _        | j+                  | j(                  «       t        j                  t         j"                  t         j"                  «      | _        | j+                  | j,                  «       t$        j&                  d
   | _        || _        t3        «       | _        t3        «       | _        |r| j9                  «        d| _         yd| _        d| _        d| _        d| _         y)a  
        Parameters
        ----------
        axes : `~matplotlib.axes.Axes`
            The `~.axes.Axes` to which the created Axis belongs.
        pickradius : float
            The acceptance radius for containment tests. See also
            `.Axis.contains`.
        clear : bool, default: True
            Whether to clear the Axis on creation. This is not required, e.g.,  when
            creating an Axis as part of an Axes, as ``Axes.clear`` will call
            ``Axis.clear``.
            .. versionadded:: 3.8
        TFr%   Úunits©Úsignalsúaxes.labelsizeúaxes.labelweightúaxes.labelcolor)r5   Ú
fontweightr   úaxes.labelpadN)!r8   r9   Ú_remove_overlapping_locsr<   r=   ÚisDefault_labelr>   r  r   r$   r   ÚCallbackRegistryÚ	callbacksÚ_autolabelposrT   rU   rV   rW   r:   r;   Úlabelr\   Ú
offsetTextÚlabelpadrA  ÚdictÚ_major_tick_kwÚ_minor_tick_kwrB  Ú
_converterÚ_converter_is_explicitrD  Ú_autoscale_on)r^   r>   rA  rB  rh   s       €ri   r9   zAxis.__init__d  sS  ø€ ô 	‰ÑÔØ(,ˆÔ%à�‰˜Ÿ™¨U˜Ó3Ô4à#ˆÔàˆŒ	Ü“XˆŒ
Ü“XˆŒ
Ü×/Ñ/¸¸	ÔBˆŒà!ˆÔä—Z‘ZÜ�F‰F”B—F‘FÜ—\‘\Ð"2Ñ3Ü—|‘|Ð$6Ñ7Ü—,‘,Ð0Ñ1ô	
ˆŒ
ð 	×Ñ˜tŸz™zÔ*ÜŸ*™*¤R§V¡V¬R¯V©VÓ4ˆŒØ×Ñ˜tŸ™Ô/äŸ™ _Ñ5ˆŒà$ˆŒô #›fˆÔÜ"›fˆÔáØ�J‰JŒLð "ˆÕð	 #ˆDŒOØ*/ˆDÔ'ØˆDŒJà!ˆÕrt   c                 ó.   — | j                   j                  S rv   ©r   r  rx   s    ri   ÚisDefault_majloczAxis.isDefault_majloc�  ó   € à�z‰z×-Ñ-Ð-rt   c                 ó&   — || j                   _        y rv   r[  ©r^   Úvalues     ri   r\  zAxis.isDefault_majloc¡  ó   € à).ˆ�
‰
Õ&rt   c                 ó.   — | j                   j                  S rv   ©r   r  rx   s    ri   ÚisDefault_majfmtzAxis.isDefault_majfmt¥  ó   € à�z‰z×/Ñ/Ð/rt   c                 ó&   — || j                   _        y rv   rc  r_  s     ri   rd  zAxis.isDefault_majfmt©  ó   € à+0ˆ�
‰
Õ(rt   c                 ó.   — | j                   j                  S rv   ©r$   r  rx   s    ri   ÚisDefault_minloczAxis.isDefault_minloc­  r]  rt   c                 ó&   — || j                   _        y rv   ri  r_  s     ri   rj  zAxis.isDefault_minloc±  ra  rt   c                 ó.   — | j                   j                  S rv   ©r$   r  rx   s    ri   ÚisDefault_minfmtzAxis.isDefault_minfmtµ  re  rt   c                 ó&   — || j                   _        y rv   rm  r_  s     ri   rn  zAxis.isDefault_minfmt¹  rg  rt   c                 ó‚   — | j                   j                  | j                  «          j                  | j                   «      S )z/Return Grouper of shared Axes for current axis.)r>   Ú_shared_axesÚ_get_axis_nameÚget_siblingsrx   s    ri   Ú_get_shared_axeszAxis._get_shared_axes½  s3   € à�y‰y×%Ñ%Ø×ÑÓ!ñ#ß#/¡<°·	±	Ó#:ð	;rt   c                 ó‚   — | j                  «       }| j                  «       D �cg c]  }|j                  |   ‘Œ c}S c c}w )z,Return list of shared axis for current axis.)rr  rt  Ú	_axis_map)r^   rb   rç   s      ri   Ú_get_shared_axiszAxis._get_shared_axisÂ  s6   € à×"Ñ"Ó$ˆØ-1×-BÑ-BÓ-DÖE r�—‘˜TÓ"ÒEÐEùÒEs   £<c                 óp   ‡ — t        ˆ fd„‰ j                  j                  j                  «       D «       «      S )zReturn the axis name.c              3   ó0   •K  — | ]  \  }}|‰u r|–— Œ y ­wrv   r�   )r³   rb   Úaxisr^   s      €ri   r´   z&Axis._get_axis_name.<locals>.<genexpr>É  s#   øè ø€ ò %™Z˜T 4Ø˜t‘|ô ñ %ùs   ƒ)Únextr>   rv  rM   rx   s   `ri   rr  zAxis._get_axis_nameÇ  s/   ø€ äó %¨4¯9©9×+>Ñ+>×+DÑ+DÓ+Fô %ó %ð 	%rt   r.  Fc                 ó   — | j                   S rv   )rL  rx   s    ri   Úget_remove_overlapping_locsz Axis.get_remove_overlapping_locsÒ  s   € Ø×,Ñ,Ð,rt   c                 ó$   — t        |«      | _        y rv   )ÚboolrL  r”   s     ri   Úset_remove_overlapping_locsz Axis.set_remove_overlapping_locsÕ  s   € Ü(,¨S«	ˆÕ%rt   zUIf minor ticker locations that overlap with major ticker locations should be trimmed.)Údocc                 óÀ   — d| _         |€| j                  j                  }| j                  j	                  |«       | j                  j                  ||f«       d| _        y)a  
        Set the coordinates of the label.

        By default, the x coordinate of the y label and the y coordinate of the
        x label are determined by the tick label bounding boxes, but this can
        lead to poor alignment of multiple labels if there are multiple Axes.

        You can also specify the coordinate system of the label with the
        transform.  If None, the default coordinate system will be the axes
        coordinate system: (0, 0) is bottom left, (0.5, 0.5) is center, etc.
        FNT)rP  r>   r>  rQ  r¼   Úset_positionr‹   )r^   rà   rá   r�   s       ri   Úset_label_coordszAxis.set_label_coordsÝ  sP   € ð #ˆÔØÐØŸ	™	×+Ñ+ˆIà�
‰
× Ñ  Ô+Ø�
‰
×Ñ  A Ô'Øˆ�
rt   c                 ó6   — | j                   j                  «       S )z,Return the transform used in the Axis' scale)Ú_scaleÚget_transformrx   s    ri   r‡  zAxis.get_transformñ  s   € à�{‰{×(Ñ(Ó*Ð*rt   c                 ó.   — | j                   j                  S )z#Return this Axis' scale (as a str).)r†  rb   rx   s    ri   Ú	get_scalezAxis.get_scaleõ  s   € à�{‰{×ÑÐrt   c                 óî   — t        |t        j                  «      st        j                  || fi |¤Ž| _        n|| _        | j                  j                  | «       d| _        d| _        d| _        d| _	        y r‰   )
rm   ÚmscaleÚ	ScaleBaseÚscale_factoryr†  Ú#set_default_locators_and_formattersr\  rj  rd  rn  )r^   r`  r`   s      ri   Ú
_set_scalezAxis._set_scaleù  sd   € Ü˜%¤×!1Ñ!1Ô2Ü ×.Ñ.¨u°dÑE¸fÑEˆD�KàˆDŒKØ�‰×7Ñ7¸Ô=à $ˆÔØ $ˆÔØ $ˆÔØ $ˆÕrt   c           
      óP  — | j                  «       }| j                  «       j                  t        j                   t        j                  «      }| j                  «       D ]9  } |j                  |   j                  |fi |¤Ž |j                  «        d|_	        Œ; | j                  «       j                  t        j                   t        j                  «      }||k7  rF | j                  j                  di | j                  j                  D �ci c]  }d|› �||k(  “Œ c}¤Ž yyc c}w )a;  
        Set this Axis' scale.

        Parameters
        ----------
        value : str or `.ScaleBase`
            The axis scale type to apply.  Valid string values are the names of scale
            classes ("linear", "log", "function",...).  These may be the names of any
            of the :ref:`built-in scales<builtin_scales>` or of any custom scales
            registered using `matplotlib.scale.register_scale`.

        **kwargs
            If *value* is a string, keywords are passed to the instantiation method of
            the respective class.
        TÚscaleNr�   )rr  Úget_major_locatorÚnonsingularrV   Úinfrt  rv  r�  Ú_update_transScaler‹   r>   Úautoscale_viewÚ_axis_names)r^   r`  r`   rb   Úold_default_limsrç   Únew_default_limsrd   s           ri   Ú_set_axes_scalezAxis._set_axes_scale  s  € ð  ×"Ñ"Ó$ˆØ ×2Ñ2Ó4ß(™[¬"¯&©&¨´"·&±&Ó9ð 	à×'Ñ'Ó)ò 	ˆBØ)ˆB�L‰L˜Ñ×)Ñ)¨%Ñ:°6Ò:Ø×!Ñ!Ô#ØˆB�Hð	ð !×2Ñ2Ó4ß(™[¬"¯&©&¨´"·&±&Ó9ð 	àÐ/Ò/ð %ˆD�I‰I×$Ñ$ñ KØ37·9±9×3HÑ3HÖI¨a�U˜1˜#�;  T¡	Ñ)ÒIóKð 0ùò Js   ÄD#c                 óX   — | j                   j                  ||| j                  «       «      S )zs
        Return the range *vmin*, *vmax*, restricted to the domain supported by the
        current scale.
        )r†  Úlimit_range_for_scaleÚ
get_minpos)r^   ÚvminÚvmaxs      ri   rœ  zAxis.limit_range_for_scale%  s$   € ð
 �{‰{×0Ñ0°°t¸T¿_¹_Ó=NÓOÐOrt   c                 ó   — | j                   S )z'Return whether this Axis is autoscaled.©rY  rx   s    ri   Ú_get_autoscale_onzAxis._get_autoscale_on,  s   € à×!Ñ!Ð!rt   c                 ó   — |�|| _         yy)zÎ
        Set whether this Axis is autoscaled when drawing or by `.Axes.autoscale_view`.

        If b is None, then the value is not changed.

        Parameters
        ----------
        b : bool
        Nr¡  )r^   Úbs     ri   Ú_set_autoscale_onzAxis._set_autoscale_on0  s   € ð ˆ=Ø!"ˆDÕð rt   c                 ór   — | j                   | j                  g| j                  «       ¢| j                  «       ¢S rv   )rQ  rR  Úget_major_ticksÚget_minor_ticksrx   s    ri   r‡   zAxis.get_children=  s?   € Ø—
‘
˜DŸO™Oð BØ×%Ñ%Ó'ðBØ*.×*>Ñ*>Ó*@ðBð 	Brt   c                 ó¦   — | j                   j                  «        t        j                  d   xr t        j                  d   dv | j                   d<   y )Nr"   r   r    r   )rU  rB  r:   r;   rx   s    ri   Ú_reset_major_tick_kwzAxis._reset_major_tick_kwA  óI   € Ø×Ñ×!Ñ!Ô#ä—‘˜[Ñ)ò EÜ—‘Ð.Ñ/Ð3DÐDð 	×Ñ˜HÒ%rt   c                 ó¦   — | j                   j                  «        t        j                  d   xr t        j                  d   dv | j                   d<   y )Nr"   r   r#   r   )rV  rB  r:   r;   rx   s    ri   Ú_reset_minor_tick_kwzAxis._reset_minor_tick_kwG  r«  rt   c                 óR  — | j                   j                  «        | j                   j                  t        j                  d   «       | j                   j                  t        j                  d   «       | j                   j                  t        j                  d   «       | j                  j                  «        t        j                  d   | _        | j                  «        | j                  d«       t        j                  dg¬«      | _        t        j                  d   xr t        j                  d	   d
v | j                  d<   t        j                  d   xr t        j                  d	   dv | j                  d<   | j!                  «        d| _        d| _        d| _        d| _        y)zÿ
        Clear the axis.

        This resets axis properties to their default values:

        - the label
        - the scale
        - locators, formatters and ticks
        - major and minor grid
        - units
        - registered callbacks
        rI  rG  rH  rK  ÚlinearrD  rE  r"   r   r    r   r#   NFT)rQ  Ú_reset_visual_defaultsÚ	set_colorr:   r;   Úset_fontsizeÚset_fontweightrR  rS  Ú_initr�  r   rN  rO  rU  rV  Úreset_ticksrW  rX  rD  r‹   rx   s    ri   rB  z
Axis.clearM  sN  € ð 	�
‰
×)Ñ)Ô+ð 	�
‰
×ÑœSŸ\™\Ð*;Ñ<Ô=Ø�
‰
×Ñ¤§¡Ð-=Ñ >Ô?Ø�
‰
×!Ñ!¤#§,¡,Ð/AÑ"BÔCØ�‰×.Ñ.Ô0ÜŸ™ _Ñ5ˆŒà�
‰
Œà�‰˜Ô!ô ×/Ñ/¸¸	ÔBˆŒô —‘˜[Ñ)ò EÜ—‘Ð.Ñ/Ð3DÐDð 	×Ñ˜HÑ%ô —‘˜[Ñ)ò EÜ—‘Ð.Ñ/Ð3DÐDð 	×Ñ˜HÑ%ð 	×ÑÔàˆŒØ&+ˆÔ#ØˆŒ
Øˆ�
rt   c                 ó¶   — 	 | ` 	 | `	 | j                  | j                  j
                  «       y# t        $ r Y Œ5w xY w# t        $ r Y ŒAw xY w# t        $ r Y yw xY w)zs
        Re-initialize the major and minor Tick lists.

        Each list starts with a single fresh Tick.
        N)r/  ÚAttributeErrorr1  rŠ   r>   Úpatchrx   s    ri   rµ  zAxis.reset_ticksx  sk   € ð	Ø�ð	Ø�ð	Ø×Ñ˜tŸy™yŸ™Õ/øô ò 	Ùð	ûô ò 	Ùð	ûô ò 	Ùð	ús,   ‚. …= ˆ%A ®	:¹:½	A	ÁA	Á	AÁAc                 óš  — | j                  «       }|dk(  rF| j                  }| j                  t        j                  |j
                  |j                  «      «       y|dk(  rF| j                  }| j                  t        j                  |j                  |j                  «      «       y|dk(  rR| j                  }| j                  t        j                  |j                  |j                  |j                  ¬«      «       y|dk(  r&| j                  t        j                  d¬«      «       y| j                  t        j                  «       «       y)	aæ  
        Display default minor ticks on the Axis, depending on the scale
        (`~.axis.Axis.get_scale`).

        Scales use specific minor locators:

        - log: `~.LogLocator`
        - symlog: `~.SymmetricalLogLocator`
        - asinh: `~.AsinhLocator`
        - logit: `~.LogitLocator`
        - default: `~.AutoMinorLocator`

        Displaying minor ticks may reduce performance; you may turn them off
        using `minorticks_off()` if drawing speed is a problem.
        ÚlogÚsymlogÚasinh)ÚbaseÚsubsÚlogitT©r$   N)r‰  r†  Úset_minor_locatorr  Ú
LogLocatorr½  r¾  ÚSymmetricalLogLocatorÚ
_transformÚAsinhLocatorÚlinear_widthÚ_baseÚ_subsÚLogitLocatorÚAutoMinorLocator)r^   r‘  Úss      ri   Úminorticks_onzAxis.minorticks_onŒ  sõ   € ð  —‘Ó ˆØ�EŠ>Ø—‘ˆAØ×"Ñ"¤7×#5Ñ#5°a·f±f¸a¿f¹fÓ#EÕFØ�hÒØ—‘ˆAØ×"Ñ"Ü×-Ñ-¨a¯l©l¸A¿F¹FÓCõEà�gÒØ—‘ˆAØ×"Ñ"Ü×(Ñ(¨¯©¸a¿g¹gØ./¯g©gô7õ8ð �gÒØ×"Ñ"¤7×#7Ñ#7¸dÔ#CÕDà×"Ñ"¤7×#;Ñ#;Ó#=Õ>rt   c                 óJ   — | j                  t        j                  «       «       y)z!Remove minor ticks from the Axis.N)rÁ  r  ÚNullLocatorrx   s    ri   Úminorticks_offzAxis.minorticks_off®  s   € à×Ñœw×2Ñ2Ó4Õ5rt   c                 óX  — t        j                  g d¢|¬«       | j                  |«      }|rv|dv r+| j                  «        | j                  j                  |«       |dv r+| j                  «        | j                  j                  |«       | j                  «        d	| _        y
|dv r>| j                  j                  |«       | j                  D ]  } |j                  di |¤Ž Œ |dv r>| j                  j                  |«       | j                  D ]  } |j                  di |¤Ž Œ d|v sd|v rS| j                  j                  | j                  j                  dd«      xs | j                  j                  dd«      «       d|v r| j                  j                  |d   «       d	| _        y
)aW  
        Set appearance parameters for ticks, ticklabels, and gridlines.

        For documentation of keyword arguments, see
        :meth:`matplotlib.axes.Axes.tick_params`.

        See Also
        --------
        .Axis.get_tick_params
            View the current style settings for ticks, ticklabels, and
            gridlines.
        ©r   r$   r!   ©ra   ©r   r!   ©r$   r!   r   r   Fr   TNr�   )r   rq   Ú_translate_tick_paramsrª  rU  Úupdater­  rV  rµ  r/  r“   r1  rR  r¶   Úgetr±  r‹   )r^   ra   Úresetr`   Úkwtransr4  s         ri   Úset_tick_paramszAxis.set_tick_params²  s—  € ô 	×ÑÒ5¸UÕCØ×-Ñ-¨fÓ5ˆñ ØÐ)Ñ)Ø×)Ñ)Ô+Ø×#Ñ#×*Ñ*¨7Ô3ØÐ)Ñ)Ø×)Ñ)Ô+Ø×#Ñ#×*Ñ*¨7Ô3Ø×ÑÔð$ ˆ�
ð! Ð)Ñ)Ø×#Ñ#×*Ñ*¨7Ô3Ø ŸO™Oò 2�DØ&�D×&Ñ&Ñ1¨Ó1ð2àÐ)Ñ)Ø×#Ñ#×*Ñ*¨7Ô3Ø ŸO™Oò 2�DØ&�D×&Ñ&Ñ1¨Ó1ð2ð ˜WÑ$¨
°gÑ(=Ø—‘×+Ñ+Ø×'Ñ'×+Ñ+¨J¸Ó>ò BØ×*Ñ*×.Ñ.¨z¸5ÓAôCð ˜wÑ&Ø—‘×)Ñ)¨'°,Ñ*?Ô@àˆ�
rt   c                 ó²   — t        j                  ddg|¬«       |dk(  r| j                  | j                  d¬«      S | j                  | j                  d¬«      S )au  
        Get appearance parameters for ticks, ticklabels, and gridlines.

        .. versionadded:: 3.7

        Parameters
        ----------
        which : {'major', 'minor'}, default: 'major'
            The group of ticks for which the parameters are retrieved.

        Returns
        -------
        dict
            Properties for styling tick elements added to the axis.

        Notes
        -----
        This method returns the appearance parameters for styling *new*
        elements added to this axis and may be different from the values
        on current elements if they were modified directly by the user
        (e.g., via ``set_*`` methods on individual tick objects).

        Examples
        --------
        ::

            >>> ax.yaxis.set_tick_params(labelsize=30, labelcolor='red',
            ...                          direction='out', which='major')
            >>> ax.yaxis.get_tick_params(which='major')
            {'direction': 'out',
            'left': True,
            'right': False,
            'labelleft': True,
            'labelright': False,
            'gridOn': False,
            'labelsize': 30,
            'labelcolor': 'red'}
            >>> ax.yaxis.get_tick_params(which='minor')
            {'left': True,
            'right': False,
            'labelleft': True,
            'labelright': False,
            'gridOn': False}


        r   r$   rÒ  T©Úreverse)r   rq   rÕ  rU  rV  )r^   ra   s     ri   Úget_tick_paramszAxis.get_tick_paramsß  sc   € ô^ 	×Ñ˜G WÐ-°UÕ;Ø�GÒØ×.Ñ.Ø×#Ñ#¨Tð /ó ð ð ×*Ñ*¨4×+>Ñ+>ÈÐ*ÓMÐMrt   c                 ó  — i |¥}ddddddddd	d
dddddddddddddddgt         ¢}ddddddddddddœ}|rNi }| j                  dk(  }g d¢}|j                  «       D ]%  \  }	}
|
|v sŒ|r|	|v rŒ|j                  |
«      ||	<   Œ' n6|j                  «       D �	�
ci c]  \  }	}
|	|v r|
|j                  |	«      “Œ }}	}
d|v r|j                  d«      }||d<   ||d<   |D ]  }||vsŒt	        d|›d|›�«      ‚ |j                  |«       |S c c}
}	w ) a  
        Translate the kwargs supported by `.Axis.set_tick_params` to kwargs
        supported by `.Tick._apply_params`.

        In particular, this maps axis specific names like 'top', 'left'
        to the generic tick1, tick2 logic of the axis. Additionally, there
        are some other name translations.

        Returns a new dict of translated kwargs.

        Note: Use reverse=True to translate from those supported by
        `.Tick._apply_params` back to those supported by
        `.Axis.set_tick_params`.
        r
   r   r   r   r   r   r   r   r   r   r   r   r   r   ÚlengthÚ	directionÚleftÚbottomÚrightÚtopÚ	labelleftÚlabelbottomÚ
labelrightÚlabeltopr   )rà  rá  r7   râ  rã  rä  rå  ræ  rç  rè  ré  rà   )râ  rä  ræ  rè  Úcolorszkeyword z' is not recognized; valid keywords are )rÀ   Ú	axis_namerM   r·   Ú
ValueErrorrÖ  )ÚclsÚkwrÝ  Úkw_Úallowed_keysÚkeymaprÙ  Ú	is_x_axisÚy_axis_keysÚoldkeyÚnewkeyÚcÚkeys                ri   rÕ  zAxis._translate_tick_params  s‹  € ð  �ˆfˆð �G˜W i°Ø˜Ð'8¸(ÀHØ�y *¨jØ�k 6¨8°W¸eØ˜¨°jØð$ô #ð$ˆð Ø"Ø'ØØØØØ#Ø%Ø$Ø"ñ
ˆñ ØˆGØŸ™¨Ñ,ˆIÚFˆKØ"(§,¡,£.ò :‘�˜Ø˜S’=Ù  V¨{Ñ%:Ø à*-¯'©'°&«/˜ šñ:ð '-§l¡l£n÷á"�F˜F¸À#¹ð ˜Ÿ™ ›Ñ'ðˆGñ ð �s‰?Ø—‘˜Ó!ˆAØ ˆG�GÑØ$%ˆG�LÑ!àò 	+ˆCØ˜,Ò&Ý â™Lð*ó+ð +ð	+ð
 	�‰�sÔØˆùós   Â Dc                 ó”   •— t         ‰| �  ||«       | j                  | j                  z   D ]  }|j                  ||«       Œ d| _        y r‰   )r8   rŠ   r/  r1  r‹   )r^   rŒ   r�   Úchildrh   s       €ri   rŠ   zAxis.set_clip_path[  sE   ø€ Ü‰Ñ˜d IÔ.Ø—_‘_ t§¡Ñ6ò 	1ˆEØ×Ñ  iÕ0ð	1àˆ�
rt   c                 ó   — t        d«      ‚)z3Return the ``(min, max)`` view limits of this axis.r­   r®   rx   s    ri   r°   zAxis.get_view_intervala  rÉ   rt   c                 ó   — t        d«      ‚)a7  
        Set the axis view limits.  This method is for internal use; Matplotlib
        users should typically use e.g. `~.Axes.set_xlim` or `~.Axes.set_ylim`.

        If *ignore* is False (the default), this method will never reduce the
        preexisting view limits, only expand them if *vmin* or *vmax* are not
        within them.  Moreover, the order of *vmin* and *vmax* does not matter;
        the orientation of the axis will not change.

        If *ignore* is True, the view limits will be set exactly to ``(vmin,
        vmax)`` in that order.
        r­   r®   ©r^   rž  rŸ  Úignores       ri   Úset_view_intervalzAxis.set_view_intervale  s   € ô "Ð"9Ó:Ð:rt   c                 ó   — t        d«      ‚)z3Return the ``(min, max)`` data limits of this axis.r­   r®   rx   s    ri   Úget_data_intervalzAxis.get_data_intervalt  rÉ   rt   c                 ó   — t        d«      ‚)aÜ  
        Set the axis data limits.  This method is for internal use.

        If *ignore* is False (the default), this method will never reduce the
        preexisting data limits, only expand them if *vmin* or *vmax* are not
        within them.  Moreover, the order of *vmin* and *vmax* does not matter;
        the orientation of the axis will not change.

        If *ignore* is True, the data limits will be set exactly to ``(vmin,
        vmax)`` in that order.
        r­   r®   rü  s       ri   Úset_data_intervalzAxis.set_data_intervalx  s   € ô "Ð"9Ó:Ð:rt   c                 ó2   — | j                  «       \  }}||k  S )a.  
        Return whether this Axis is oriented in the "inverse" direction.

        The "normal" direction is increasing to the right for the x-axis and to
        the top for the y-axis; the "inverse" direction is increasing to the
        left for the x-axis and to the bottom for the y-axis.
        )r°   )r^   ÚlowÚhighs      ri   Úget_invertedzAxis.get_inverted†  s    € ð ×*Ñ*Ó,‰	ˆˆTØ�c‰zÐrt   c                 óz   — | j                  «       \  }} | j                  t        ||ft        |«      ¬«      ddiŽ y)a+  
        Set whether this Axis is oriented in the "inverse" direction.

        The "normal" direction is increasing to the right for the x-axis and to
        the top for the y-axis; the "inverse" direction is increasing to the
        left for the x-axis and to the bottom for the y-axis.
        rÜ  rl   N)r°   Ú_set_limÚsortedr  )r^   Úinvertedr«   r¤  s       ri   Úset_invertedzAxis.set_inverted‘  s8   € ð ×%Ñ%Ó'‰ˆˆ1àˆ�‰”v˜q !˜f¬d°8«nÔ=ÐIÀDÓIrt   c                  ó   — y)z{
        Set the default limits for the axis data and view interval if they
        have not been not mutated yet.
        Nr�   rx   s    ri   Úset_default_intervalszAxis.set_default_intervals�  s   � rt   )Úemitc                ó~  — | j                  «       }| j                  j                  |||ffgd¬«       | j                  j                  || j                  «      }| j                  j                  || j                  «      }|�|€| j                  «       \  }}|€|}|€|}| j                  «       dk(  r]|dk  s|dk  rS| j                  «       \  }}|dk  rt        j                  d|› d�«       |}|dk  rt        j                  d|› d�«       |}||k(  rt        j                  d|› d�«       t        ||kD  «      }| j                  «       j                  ||«      \  }}| j                  ||«      \  }}t        ||gt        |«      ¬	«      \  }}| j                  ||d
¬«       | j                  «       D ]  }	d|	j                   |<   Œ | j#                  |«       |rÜ| j                  j$                  j'                  |› d�| j                  «       | j                  «       D ]–  }
|
| j                  u rŒ|
j(                  |   j+                  ||d|¬«       |r|
j$                  j'                  |› d�|
«       |
j-                  d¬«      x}| j-                  d¬«      k7  sŒ}|j.                  j1                  «        Œ˜ d
| _        ||fS )a`  
        Set view limits.

        This method is a helper for the Axes ``set_xlim``, ``set_ylim``, and
        ``set_zlim`` methods.

        Parameters
        ----------
        v0, v1 : float
            The view limits.  (Passing *v0* as a (low, high) pair is not
            supported; normalization must occur in the Axes setters.)
        emit : bool, default: True
            Whether to notify observers of limit change.
        auto : bool or None, default: False
            Whether to turn on autoscaling of the x-axis. True turns on, False
            turns off, None leaves unchanged.
        F)Úconvertrº  r   zAttempt to set non-positive z)lim on a log-scaled axis will be ignored.z)Attempting to set identical low and high z<lims makes transformation singular; automatically expanding.rÜ  T©rý  Úlim_changed)r  rl   r%   )rr  r>   Ú_process_unit_infoÚ_validate_converted_limitsÚconvert_unitsr°   r‰  r   Úwarn_externalr  r’  r“  rœ  r	  rþ  rt  Ú_stale_viewlimsr¥  rO  Úprocessrv  r  r=   ÚcanvasÚ	draw_idler‹   )r^   Úv0Úv1r  rl   rb   Úold0Úold1rÝ  rç   ÚotherÚ	other_figs               ri   r  zAxis._set_lim«  sÖ  € ð$ ×"Ñ"Ó$ˆà�	‰	×$Ñ$ t¨b°"¨XÐ&6Ð%7ÀÐ$ÔGØ�Y‰Y×1Ñ1°"°d×6HÑ6HÓIˆØ�Y‰Y×1Ñ1°"°d×6HÑ6HÓIˆàˆ:˜˜ð ×/Ñ/Ó1‰JˆD�$ØˆzØ�ØˆzØ�à�>‰>Ó˜uÒ$¨"°ª'°R¸1²Wð ×/Ñ/Ó1‰JˆD�$Ø�QŠwÜ×"Ñ"Ð%AÀ$Àð HHð $Iô Jà�Ø�QŠwÜ×"Ñ"Ð%AÀ$Àð HHð $Iô Jà�Ø�Š8Ü×ÑØ;¸D¸6ð BJð KôLô �r˜B‘w“-ˆØ×'Ñ'Ó)×5Ñ5°b¸"Ó=‰ˆˆBØ×+Ñ+¨B°Ó3‰ˆˆBÜ˜˜R˜¬$¨w«-Ô8‰ˆˆBà×Ñ˜r 2¨dÐÔ3à×'Ñ'Ó)ò 	-ˆBØ',ˆB×Ñ˜tÒ$ð	-à×Ñ˜tÔ$áØ�I‰I×Ñ×'Ñ'¨4¨&°Ð(<¸d¿i¹iÔHà×.Ñ.Ó0ò 1�Ø˜DŸI™IÑ%ØØ—‘ Ñ%×.Ñ.¨r°2¸EÈÐ.ÔMÙØ—O‘O×+Ñ+¨t¨f°KÐ,@À%ÔHØ"'×"2Ñ"2¸Ð"2Ó">Ð>�YØŸ™¨U˜Ó3ó4à×$Ñ$×.Ñ.Õ0ð1ð ˆŒ
Ø�2ˆvˆrt   c                 óL   — |€y |j                  | j                  d¬«      «       y r¨   r©   rª   s     ri   r\   zAxis._set_artist_props÷  s!   € Øˆ9ØØ	�‰�T—_‘_¨%�_Ó0Õ1rt   c                 ó¶  — | j                  «       }| j                  j                  j                  |«      }| j	                  t        |«      «      }t        |||«      D ]M  \  }}}|j                  |«       |j                  j                  |«       |j                  j                  |«       ŒO | j                  «       }| j                  j                  j                  |«      }| j                  t        |«      «      }	t        |	||«      D ]M  \  }}}|j                  |«       |j                  j                  |«       |j                  j                  |«       ŒO g |¢|	¢}
| j                  «       \  }}||kD  r||}}t        | d«      rC| j                   j"                  dk(  r*t$        j&                  d   rd}||z
  }|||z  z
  }|||z  z   }| j)                  «       j+                  ||g«      }g }|
D ]X  }	 | j)                  «       j+                  |j-                  «       «      }t/        j0                  ||«      sŒH|j3                  |«       ŒZ |S # t4        $ r Y Œhw xY w)z—
        Update ticks (position and labels) using the current data interval of
        the axes.  Return the list of ticks that will be drawn.
        r>   Ú3dzaxes3d.automargingÇqÇq”?)Úget_majorticklocsr   r$  Úformat_ticksr§  ÚlenÚzipr]   rY   Úset_textrZ   Úget_minorticklocsr$   r¨  r°   Úhasattrr>   rb   r:   r;   r‡  r�   rš   ÚmtransformsÚ_interval_contains_closeÚappendÚAssertionError)r^   Ú
major_locsÚmajor_labelsÚmajor_ticksr4  r_   rQ  Ú
minor_locsÚminor_labelsÚminor_ticksÚticksÚview_lowÚ	view_highÚmarginÚdeltaÚ
interval_tÚticks_to_drawÚloc_ts                     ri   Ú_update_tickszAxis._update_ticksü  s<  € ð
 ×+Ñ+Ó-ˆ
Ø—z‘z×+Ñ+×8Ñ8¸ÓDˆØ×*Ñ*¬3¨z«?Ó;ˆÜ # K°¸\Ó Jò 	(ÑˆD�#�uØ× Ñ  Ô%Ø�K‰K× Ñ  Ô'Ø�K‰K× Ñ  Õ'ð	(ð ×+Ñ+Ó-ˆ
Ø—z‘z×+Ñ+×8Ñ8¸ÓDˆØ×*Ñ*¬3¨z«?Ó;ˆÜ # K°¸\Ó Jò 	(ÑˆD�#�uØ× Ñ  Ô%Ø�K‰K× Ñ  Ô'Ø�K‰K× Ñ  Õ'ð	(ð -�+Ð, Ð,ˆà"×4Ñ4Ó6Ñˆ�)Ø�iÒØ"+¨X�iˆHä�D˜&Ô! d§i¡i§n¡n¸Ò&<Ü—L‘LÐ!4Ò5ð
 *ˆFØ Ñ(ˆEØ! E¨F¡NÑ2ˆIØ %¨&¡.Ñ0ˆHà×'Ñ'Ó)×3Ñ3°X¸yÐ4IÓJˆ
àˆØò 		/ˆDð/Ø×*Ñ*Ó,×6Ñ6°t·|±|³~ÓF�ô ×7Ñ7¸
ÀEÕJØ!×(Ñ(¨Õ.ð		/ð Ðøô "ò ñ ðús   Ç3-IÉ	IÉIc                 óf  — |€ | j                  d¬«      j                  «       }|D �cg c]7  }|j                  j                  «       r|j                  j	                  |«      ‘Œ9 c}|D �cg c]7  }|j
                  j                  «       r|j
                  j	                  |«      ‘Œ9 c}fS c c}w c c}w )z8Return lists of bboxes for ticks' label1's and label2's.Tr%   )r=   Ú_get_rendererrY   rž   Úget_window_extentrZ   )r^   r5  r£   r4  s       ri   Ú_get_ticklabel_bboxeszAxis._get_ticklabel_bboxes0  s§   € àÐØ—‘¨D�Ó1×?Ñ?ÓAˆHà"öAØ d§k¡k×&=Ñ&=Ô&?ð —‘×.Ñ.¨xÕ8ò Að #öAØ d§k¡k×&=Ñ&=Ô&?ð —‘×.Ñ.¨xÕ8ò AðBð 	Bùò AùòAs   §<B)Á)<B.)Úfor_layout_onlyc                ó¼  ‡— | j                  «       r|r| j                  «       sy‰€ | j                  d¬«      j                  «       Š| j	                  «       }| j                  ‰«       | j                  |‰«      \  }}| j                  ||«       | j                  j                  | j                  j                  j                  «       «       g ˆfd„| j                  fD «       ¢|¢|¢}| j                  j                  «       rÚ| j                  j                  ‰«      }|r¬| j                  dk(  rG|j                   dkD  r8|j"                  |j$                  z   dz  dz
  |_        |j"                  d	z   |_        | j                  d
k(  rG|j&                  dkD  r8|j(                  |j*                  z   dz  dz
  |_        |j(                  d	z   |_        |j-                  |«       |D �cg c]P  }d|j                   cxk  rt.        j0                  k  r+n n(d|j&                  cxk  rt.        j0                  k  rn n|‘ŒR }}|rt2        j4                  j7                  |«      S yc c}w )a˜  
        Return a bounding box that encloses the axis. It only accounts
        tick labels, axis label, and offsetText.

        If *for_layout_only* is True, then the width of the label (if this
        is an x-axis) or the height of the label (if this is a y-axis) is
        collapsed to near zero.  This allows tight/constrained_layout to ignore
        too-long labels when doing their layout.
        NTr%   c              3   ó`   •K  — | ]%  }|j                  «       r|j                  ‰«      –— Œ' y ­wrv   )rž   r@  )r³   r«   r£   s     €ri   r´   z%Axis.get_tightbbox.<locals>.<genexpr>R  s-   øè ø€ ò "ØØ—‘”ð ×!Ñ! (×+ñ "ùs   ƒ+.rà   r   é   r‚   rƒ   rá   )rž   Úget_in_layoutr=   r?  r=  Ú_update_label_positionrA  Ú_update_offset_text_positionrR  r(  r   r$  Ú
get_offsetrQ  r@  rë  r   Úx0Úx1ÚheightÚy0Úy1r-  rV   r”  r+  ÚBboxÚunion)	r^   r£   rB  r;  Útlb1Útlb2ÚbboxesÚbbr¤  s	    `       ri   Úget_tightbboxzAxis.get_tightbbox9  s  ø€ ð ×ÑÔ!¡_¸T×=OÑ=OÔ=QØØÐØ—‘¨D�Ó1×?Ñ?ÓAˆHØ×*Ñ*Ó,ˆà×#Ñ# HÔ-ð ×/Ñ/°¸xÓH‰
ˆˆdà×)Ñ)¨$°Ô5Ø�‰× Ñ  §¡×!5Ñ!5×!@Ñ!@Ó!BÔCð
ó"ØŸ™Ð(ô"ð
ð ð	
ð ð	
ˆð �:‰:×!Ñ!Ô#Ø—‘×-Ñ-¨hÓ7ˆBñ Ø—>‘> SÒ(¨R¯X©X¸ª\ØŸU™U R§U¡U™]¨aÑ/°#Ñ5�B”EØŸE™E C™K�B”EØ—>‘> SÒ(¨R¯Y©Y¸ª]ØŸU™U R§U¡U™]¨aÑ/°#Ñ5�B”EØŸE™E C™K�B”EØ�M‰M˜"ÔØ#ö E˜Ø˜Ÿ™Ô)¤2§6¡6Õ)¨a°!·(±(Ô.C¼R¿V¹VÕ.Cò ð Eˆð EáÜ×#Ñ#×)Ñ)¨&Ó1Ð1àùòEs   Ç AIc                 ó$  — g }t        | j                  «      r,|j                  | j                  d   j                  «       «       t        | j                  «      r,|j                  | j                  d   j                  «       «       t        |d¬«      S )Nr   )rk   )r&  r/  r-  rw   r1  Úmax)r^   Úvaluess     ri   rw   zAxis.get_tick_paddingl  sh   € ØˆÜˆt�‰ÔØ�M‰M˜$Ÿ/™/¨!Ñ,×=Ñ=Ó?Ô@Üˆt�‰ÔØ�M‰M˜$Ÿ/™/¨!Ñ,×=Ñ=Ó?Ô@Ü�6 1Ô%Ð%rt   c                 óN  — | j                  «       sy |j                  t        | j                  «       ¬«       | j	                  «       }| j                  ||«      \  }}|D ]  }|j                  |«       Œ | j                  |«       | j                  j                  |«       | j                  ||«       | j                  j                  | j                  j                  j                  «       «       | j                  j                  |«       |j                  t        «       d| _        y )Nrœ   F)rž   rŸ   rA   r    r=  rA  r¡   rG  rQ  rH  rR  r(  r   r$  rI  r¢   r‹   )r^   r£   r;  rQ  rR  r4  s         ri   r¡   z	Axis.drawt  sç   € ð ×ÑÔ!ØØ×ÑœH¨$¯,©,«.ÐÔ9à×*Ñ*Ó,ˆØ×/Ñ/°¸xÓH‰
ˆˆdà!ò 	 ˆDØ�I‰I�hÕð	 ð 	×#Ñ# HÔ-Ø�
‰
�‰˜Ô!à×)Ñ)¨$°Ô5Ø�‰× Ñ  §¡×!5Ñ!5×!@Ñ!@Ó!BÔCØ�‰×Ñ˜XÔ&à×ÑœXÔ&Øˆ�
rt   c                 óˆ   — | j                  «       }t        j                  d|D �cg c]  }|j                  ‘Œ c}«      S c c}w )z6Return this Axis' grid lines as a list of `.Line2D`\s.zLine2D gridline)r§  r   Úsilent_listrP   )r^   r5  r4  s      ri   Úget_gridlineszAxis.get_gridlines�  s=   € à×$Ñ$Ó&ˆÜ× Ñ Ð!2Ø<AÖ!B°D $§-£-Ò!BóDð 	DùÚ!Bs   ¥?
c                 ó   — t        d«      ‚)z>Assigning legend labels is not supported. Raises RuntimeError.zfA legend label cannot be assigned to an Axis. Did you mean to set the axis label via set_label_text()?)ÚRuntimeError)r^   rË  s     ri   Ú	set_labelzAxis.set_label“  s   € äð7ó8ð 	8rt   c                 ó   — | j                   S )a  
        Return the axis label as a Text instance.

        .. admonition:: Discouraged

           This overrides `.Artist.get_label`, which is for legend labels, with a new
           semantic. It is recommended to use the attribute ``Axis.label`` instead.
        )rQ  rx   s    ri   Ú	get_labelzAxis.get_label™  s   € ð �z‰zÐrt   c                 ó   — | j                   S )z.Return the axis offsetText as a Text instance.)rR  rx   s    ri   Úget_offset_textzAxis.get_offset_text¤  r%  rt   c                 ó   — | j                   S )z0Return the depth of the axis used by the picker.)Ú_pickradiusrx   s    ri   Úget_pickradiuszAxis.get_pickradius¨  s   € à×ÑÐrt   c                 ó0  — | j                  «        | j                  «       }|D �cg c])  }|j                  j                  «       sŒ|j                  ‘Œ+ }}|D �cg c])  }|j                  j                  «       sŒ|j                  ‘Œ+ }}||z   S c c}w c c}w )z@Return this Axis' major tick labels, as a list of `~.text.Text`.)r=  r§  rY   rž   rZ   ©r^   r5  r4  Úlabels1Úlabels2s        ri   Úget_majorticklabelszAxis.get_majorticklabels¬  ó|   € à×ÑÔØ×$Ñ$Ó&ˆØ+0ÖN 4°D·K±K×4KÑ4KÕ4M�4—;“;ÐNˆÐNØ+0ÖN 4°D·K±K×4KÑ4KÕ4M�4—;“;ÐNˆÐNØ˜Ñ Ð ùò OùÚNó   ¥BÁBÁBÁ9Bc                 ó0  — | j                  «        | j                  «       }|D �cg c])  }|j                  j                  «       sŒ|j                  ‘Œ+ }}|D �cg c])  }|j                  j                  «       sŒ|j                  ‘Œ+ }}||z   S c c}w c c}w )z@Return this Axis' minor tick labels, as a list of `~.text.Text`.)r=  r¨  rY   rž   rZ   rh  s        ri   Úget_minorticklabelszAxis.get_minorticklabels´  rl  rm  c                 ó  — |�i|dk(  r| j                  «       S |dk(  r| j                  «       S |dk(  r!| j                  «       | j                  «       z   S t        j                  g d¢|¬«       |r| j                  «       S | j                  «       S )aq  
        Get this Axis' tick labels.

        Parameters
        ----------
        minor : bool
           Whether to return the minor or the major ticklabels.

        which : None, ('minor', 'major', 'both')
           Overrides *minor*.

           Selects which ticklabels to return

        Returns
        -------
        list of `~matplotlib.text.Text`
        r$   r   r!   rÑ  rÒ  )ro  rk  r   rq   )r^   r$   ra   s      ri   Úget_ticklabelszAxis.get_ticklabels¼  sŽ   € ð$ ÐØ˜ÒØ×/Ñ/Ó1Ð1Ø˜'Ò!Ø×/Ñ/Ó1Ð1Ø˜&’Ø×/Ñ/Ó1°D×4LÑ4LÓ4NÑNÐNä×"Ñ"Ò#=ÀUÕKÙØ×+Ñ+Ó-Ð-Ø×'Ñ'Ó)Ð)rt   c                 óÌ   — g }| j                  «       }|D ]8  }|j                  |j                  «       |j                  |j                  «       Œ: t	        j
                  d|«      S )z<Return this Axis' major tick lines as a list of `.Line2D`\s.úLine2D ticklines)r§  r-  rN   rO   r   r[  ©r^   Úlinesr5  r4  s       ri   Úget_majorticklineszAxis.get_majorticklinesÛ  óZ   € àˆØ×$Ñ$Ó&ˆØò 	)ˆDØ�L‰L˜Ÿ™Ô(Ø�L‰L˜Ÿ™Õ(ð	)ô × Ñ Ð!3°UÓ;Ð;rt   c                 óÌ   — g }| j                  «       }|D ]8  }|j                  |j                  «       |j                  |j                  «       Œ: t	        j
                  d|«      S )z<Return this Axis' minor tick lines as a list of `.Line2D`\s.rs  )r¨  r-  rN   rO   r   r[  rt  s       ri   Úget_minorticklineszAxis.get_minorticklinesä  rw  rt   c                 óF   — |r| j                  «       S | j                  «       S )z6Return this Axis' tick lines as a list of `.Line2D`\s.)ry  rv  ©r^   r$   s     ri   Úget_ticklineszAxis.get_ticklinesí  s#   € áØ×*Ñ*Ó,Ð,Ø×&Ñ&Ó(Ð(rt   c                 ó6   — | j                   j                  «       S )z;Return this Axis' major tick locations in data coordinates.©r   r  rx   s    ri   r$  zAxis.get_majorticklocsó  s   € à�z‰z×!Ñ!Ó#Ð#rt   c                 ó  — t        j                  | j                  j                  «       «      }| j                  rÆ| j
                  j                  «       }| j                  j                  «       }|j                  |«      }|j                  |«      }t        |j                  | j                  «       «      «      \  }}||z
  dz  }t        j                  |dd…df   |ddd…f   |d¬«      j                  d¬«      }	||	    }|S )z;Return this Axis' minor tick locations in data coordinates.gñhãˆµøä>Nr   )ÚatolÚrtolr4   )rz  )rV   Úasarrayr$   r  Úremove_overlapping_locsr   r†  r‡  r�   r	  r°   Úiscloser¸   )
r^   r2  r/  r�   Útr_minor_locsÚtr_major_locsÚloÚhiÚtolÚmasks
             ri   r)  zAxis.get_minorticklocs÷  sç   € ô —Z‘Z §
¡
× 2Ñ 2Ó 4Ó5ˆ
Ø×'Ò'ØŸ™×+Ñ+Ó-ˆJØŸ™×1Ñ1Ó3ˆIØ%×/Ñ/°
Ó;ˆMØ%×/Ñ/°
Ó;ˆMÜ˜I×/Ñ/°×0FÑ0FÓ0HÓIÓJ‰FˆB�ð ˜‘7˜dÑ"ˆCÜ—:‘:˜mªA¨t¨GÑ4°mÀDÊ!ÀGÑ6LØ#&¨Qô0ß03±¸°³ð à# T EÑ*ˆJØÐrt   rÀ  c                óF   — |r| j                  «       S | j                  «       S )aÏ  
        Return this Axis' tick locations in data coordinates.

        The locations are not clipped to the current axis limits and hence
        may contain locations that are not visible in the output.

        Parameters
        ----------
        minor : bool, default: False
            True to return the minor tick directions,
            False to return the major tick directions.

        Returns
        -------
        array of tick locations
        )r)  r$  r{  s     ri   Úget_ticklocszAxis.get_ticklocs	  s#   € ñ" ,1ˆt×%Ñ%Ó'ÐN°d×6LÑ6LÓ6NÐNrt   c                 ó  — |r;t        j                  | j                  «       D �cg c]  }|j                  ‘Œ c}«      S t        j                  | j	                  «       D �cg c]  }|j                  ‘Œ c}«      S c c}w c c}w )a;  
        Return an array of this Axis' tick directions.

        Parameters
        ----------
        minor : bool, default: False
            True to return the minor tick directions,
            False to return the major tick directions.

        Returns
        -------
        array of tick directions
        )rV   Úarrayr¨  r~   r§  )r^   r$   r4  s      ri   Úget_ticks_directionzAxis.get_ticks_direction  sq   € ñ Ü—8‘8Ø+/×+?Ñ+?Ó+AÖB 4�—“ÒBóDð Dô —8‘8Ø+/×+?Ñ+?Ó+AÖB 4�—“ÒBóDð Dùò Cùò Cs   ¤A9ÁA>c                 óÔ   — | j                   €#t        d| j                  j                  › d�«      ‚|r| j                  n| j
                  } | j                   | j                  dfd|i|¤ŽS )z!Return the default tick instance.zThe Axis subclass z3 must define _tick_class or reimplement _get_tick()r   r   )Ú_tick_classr¯   rh   rA   rU  rV  r>   )r^   r   rÄ   s      ri   r0  zAxis._get_tick1  sq   € à×ÑÐ#Ü%Ø$ T§^¡^×%<Ñ%<Ð$=ð >9ð 9ó:ð :ñ */�$×%Ò%°D×4GÑ4GˆØˆt×Ñ §	¡	¨1ÑE°EÐE¸WÑEÐErt   c                 ó®   — | j                   }|j                  dt        j                  |› d�   «      }t	        j
                  |¬«      j                  «       S )zÄ
        Return the text size of tick labels for this Axis.

        This is a convenience function to avoid having to create a `Tick` in
        `.get_tick_space`, since it is expensive.
        r   ztick.labelsize)r
   )rU  r×  r:   r;   rT   ÚFontPropertiesÚget_size_in_points)r^   rë  rÄ   r
   s       ri   Ú_get_tick_label_sizezAxis._get_tick_label_size:  sM   € ð ×%Ñ%ˆØ�{‰{˜;ÜŸ<™<¨9¨+°^Ð(DÑEóGˆä×#Ñ#¨Ô.×AÑAÓCÐCrt   c                 ó�  — |�|€y|j                   j                  |j                   «       |j                  j                  |j                  «       |j                  j                  |j                  «       |j                  j                  |j                  «       |j
                  j                  |j
                  «       |j                  |«       |j                  |_        |j                  |_        |j                  |_        |j                  |_	        |j                  |_
        |j                  |_        |j                  |_        y)z3Copy the properties from *src* tick to *dest* tick.N)rY   Úupdate_fromrZ   rN   rO   rP   r?   rB   rC   rD   rX   rI   r~   )r^   ÚsrcÚdests      ri   Ú_copy_tick_propszAxis._copy_tick_propsF  sÚ   € àˆ;˜$˜,ØØ�‰×Ñ §
¡
Ô+Ø�‰×Ñ §
¡
Ô+Ø�‰×"Ñ" 3§=¡=Ô1Ø�‰×"Ñ" 3§=¡=Ô1Ø�‰×!Ñ! #§,¡,Ô/Ø×Ñ˜ÔØ—H‘HˆŒ	Ø—Y‘YˆŒ
Ø—j‘jˆŒØŸ™ˆŒØ!×0Ñ0ˆÔØ—{‘{ˆŒØŸ™ˆ�rt   c                 ó6   — | j                   j                  «       S )zGet the text of the label.)rQ  Úget_textrx   s    ri   Úget_label_textzAxis.get_label_textX  s   € à�z‰z×"Ñ"Ó$Ð$rt   c                 ó.   — | j                   j                  S )z$Get the locator of the major ticker.r~  rx   s    ri   r’  zAxis.get_major_locator\  ó   € à�z‰z×!Ñ!Ð!rt   c                 ó.   — | j                   j                  S )z$Get the locator of the minor ticker.)r$   r  rx   s    ri   Úget_minor_locatorzAxis.get_minor_locator`  rŸ  rt   c                 ó.   — | j                   j                  S )z&Get the formatter of the major ticker.)r   r$  rx   s    ri   Úget_major_formatterzAxis.get_major_formatterd  ó   € à�z‰z×#Ñ#Ð#rt   c                 ó.   — | j                   j                  S )z&Get the formatter of the minor ticker.)r$   r$  rx   s    ri   Úget_minor_formatterzAxis.get_minor_formatterh  r¤  rt   c                 óP  — |€t        | j                  «       «      }t        | j                  «      |k  re| j                  d¬«      }| j                  j	                  |«       | j                  | j                  d   |«       t        | j                  «      |k  rŒe| j                  d| S )a  
        Return the list of major `.Tick`\s.

        .. warning::

            Ticks are not guaranteed to be persistent. Various operations
            can create, delete and modify the Tick instances. There is an
            imminent risk that changes to individual ticks will not
            survive if you work on the figure further (including also
            panning/zooming on a displayed figure).

            Working on the individual ticks is a method of last resort.
            Use `.set_tick_params` instead if possible.
        NTr.  r   )r&  r$  r/  r0  r-  rš  ©r^   Únumticksr4  s      ri   r§  zAxis.get_major_ticksl  s�   € ð ÐÜ˜4×1Ñ1Ó3Ó4ˆHä�$—/‘/Ó" XÒ-à—>‘>¨�>Ó-ˆDØ�O‰O×"Ñ" 4Ô(Ø×!Ñ! $§/¡/°!Ñ"4°dÔ;ô	 �$—/‘/Ó" XÓ-ð �‰˜y Ð)Ð)rt   c                 óP  — |€t        | j                  «       «      }t        | j                  «      |k  re| j                  d¬«      }| j                  j	                  |«       | j                  | j                  d   |«       t        | j                  «      |k  rŒe| j                  d| S )a  
        Return the list of minor `.Tick`\s.

        .. warning::

            Ticks are not guaranteed to be persistent. Various operations
            can create, delete and modify the Tick instances. There is an
            imminent risk that changes to individual ticks will not
            survive if you work on the figure further (including also
            panning/zooming on a displayed figure).

            Working on the individual ticks is a method of last resort.
            Use `.set_tick_params` instead if possible.
        NFr.  r   )r&  r)  r1  r0  r-  rš  r¨  s      ri   r¨  zAxis.get_minor_ticks†  s�   € ð ÐÜ˜4×1Ñ1Ó3Ó4ˆHä�$—/‘/Ó" XÒ-à—>‘>¨�>Ó.ˆDØ�O‰O×"Ñ" 4Ô(Ø×!Ñ! $§/¡/°!Ñ"4°dÔ;ô	 �$—/‘/Ó" XÓ-ð �‰˜y Ð)Ð)rt   c                 ó¸  — |r|€d}n|st        j                  d«       d}|j                  «       }t        j                  g d¢|¬«       |j	                  «       D ��ci c]  \  }}d|› �|“Œ }}}|dv r+|€| j
                  d    n||d<    | j                  dd	d
i|¤Ž |dv r+|€| j                  d    n||d<    | j                  dd	di|¤Ž d| _        yc c}}w )a•  
        Configure the grid lines.

        Parameters
        ----------
        visible : bool or None
            Whether to show the grid lines.  If any *kwargs* are supplied, it
            is assumed you want the grid on and *visible* will be set to True.

            If *visible* is *None* and there are no *kwargs*, this toggles the
            visibility of the lines.

        which : {'major', 'minor', 'both'}
            The grid lines to apply the changes on.

        **kwargs : `~matplotlib.lines.Line2D` properties
            Define the line properties of the grid, e.g.::

                grid(color='r', linestyle='-', linewidth=2)
        NTz_First parameter to grid() is false, but line properties are supplied. The grid will be enabled.rÑ  rÒ  r   rÔ  r   ra   r$   rÓ  r   r�   )	r   r  Úlowerrq   rM   rV  rÚ  rU  r‹   )r^   r,   ra   r`   rb   r`  Úgridkws          ri   rÞ   z	Axis.grid   s  € ñ* ØˆØ‘ÙÜ×"Ñ"ð $;ô <ð �Ø—‘“ˆÜ×ÑÒ5¸UÕCØ;A¿<¹<»>×J©K¨D°%�E˜$˜�. %Ñ'ÐJˆÑJØÐ%Ñ%à#* ?ð %)×$7Ñ$7¸Ñ$AÑ AØ8?ð �8Ñà ˆD× Ñ Ñ9 wÐ9°&Ò9ØÐ%Ñ%à#* ?ð %)×$7Ñ$7¸Ñ$AÑ AØ8?ð �8Ñà ˆD× Ñ Ñ9 wÐ9°&Ò9Øˆ�
ùó Ks   ÁCc                 ór  — | j                   s t        j                  j                  |«      }n| j                  }|€y| j                  |k7  }| j                  |«       | j                  j                  || «      }|�%| j                  €| j                  |«       d| _
        y|r| j                  «        d| _
        y)z¿
        Introspect *data* for units converter and update the
        ``axis.get_converter`` instance if necessary. Return *True*
        if *data* is registered for unit conversion.
        FT)rX  ÚmunitsÚregistryÚget_converterrW  Ú_set_converterÚdefault_unitsrD  Ú	set_unitsÚ_update_axisinfor‹   )r^   rÜ   Ú	converterÚneednewrk   s        ri   Úupdate_unitszAxis.update_unitsÊ  s§   € ð ×*Ò*ÜŸ™×5Ñ5°dÓ;‰IàŸ™ˆIàÐØà—/‘/ YÑ.ˆØ×Ñ˜IÔ&Ø—/‘/×/Ñ/°°dÓ;ˆØÐ 4§:¡:Ð#5Ø�N‰N˜7Ô#ð ˆŒ
Øñ Ø×!Ñ!Ô#ØˆŒ
Ørt   c                 óì  — | j                   €y| j                   j                  | j                  | «      }|€y|j                  �Q| j                  j
                  |j                  k7  r.| j                  r"| j                  |j                  «       d| _        |j                  �Q| j                  j
                  |j                  k7  r.| j                  r"| j                  |j                  «       d| _
        |j                  �Q| j                  j                  |j                  k7  r.| j                  r"| j                  |j                  «       d| _        |j                   �Q| j                  j                  |j                   k7  r.| j"                  r"| j%                  |j                   «       d| _        |j&                  �.| j(                  r"| j+                  |j&                  «       d| _        | j-                  «        y)zt
        Check the axis converter for the stored units to see if the
        axis info needs to be updated.
        NT)rW  ÚaxisinforD  Úmajlocr   r  r\  Úset_major_locatorÚminlocr$   rj  rÁ  Úmajfmtr$  rd  Úset_major_formatterÚminfmtrn  Úset_minor_formatterrQ  rM  Úset_label_textr  )r^   Úinfos     ri   rµ  zAxis._update_axisinfoã  ss  € ð
 �?‰?Ð"Øà�‰×'Ñ'¨¯
©
°DÓ9ˆàˆ<ØØ�;‰;Ð"Ø�:‰:×Ñ §¡Ò,°×1FÒ1FØ×"Ñ" 4§;¡;Ô/Ø$(ˆDÔ!Ø�;‰;Ð"Ø�:‰:×Ñ §¡Ò,°×1FÒ1FØ×"Ñ" 4§;¡;Ô/Ø$(ˆDÔ!Ø�;‰;Ð"Ø�:‰:×Ñ 4§;¡;Ò.°4×3HÒ3HØ×$Ñ$ T§[¡[Ô1Ø$(ˆDÔ!Ø�;‰;Ð"Ø�:‰:×Ñ 4§;¡;Ò.°4×3HÒ3HØ×$Ñ$ T§[¡[Ô1Ø$(ˆDÔ!Ø�:‰:Ð! d×&:Ò&:Ø×Ñ §
¡
Ô+Ø#'ˆDÔ à×"Ñ"Õ$rt   c                 ó>   — | j                   d uxs | j                  d uS rv   )rW  rD  rx   s    ri   Ú
have_unitszAxis.have_units  s   € Ø�‰ dÐ*ÒD¨d¯j©jÀÐ.DÐDrt   c                 óh  — t        j                  |«      r|S | j                  €.| j                  t         j                  j                  |«      «       | j                  €|S 	 | j                  j                  || j                  | «      }|S # t        $ r}t        j                  d|›�«      |‚d }~ww xY w)Nz*Failed to convert value(s) to axis units: )
r¯  Ú_is_natively_supportedrW  r²  r°  r±  r  rD  Ú	ExceptionÚConversionError)r^   rà   ÚretÚes       ri   r  zAxis.convert_units  s®   € ä×(Ñ(¨Ô+ØˆHà�?‰?Ð"Ø×Ñ¤§¡× =Ñ =¸aÓ @ÔAà�?‰?Ð"ØˆHð	AØ—/‘/×)Ñ)¨!¨T¯Z©Z¸Ó>ˆCð ˆ
øô ò 	AÜ×(Ñ(ð *3Ø34°%ð*9ó :Ø?@ðAûð	Aús   Á!'B
 Â
	B1ÂB,Â,B1c                 ó   — | j                   S )z‹
        Get the unit converter for axis.

        Returns
        -------
        `~matplotlib.units.ConversionInterface` or None
        )rW  rx   s    ri   r±  zAxis.get_converter  s   € ð �‰Ðrt   c                 ó4   — | j                  |«       d| _        y)z•
        Set the unit converter for axis.

        Parameters
        ----------
        converter : `~matplotlib.units.ConversionInterface`
        TN)r²  rX  ©r^   r¶  s     ri   Úset_converterzAxis.set_converter#  s   € ð 	×Ñ˜IÔ&Ø&*ˆÕ#rt   c                 ó:  — | j                   |u s| j                   |k(  ry | j                  rt        d«      ‚| j                   �St        |t	        | j                   «      «      s4t        | j                   t	        |«      «      st        j                  d«       || _         y )Nz*Axis already has an explicit converter setz]This axis already has a converter set and is updating to a potentially incompatible converter)rW  rX  r^  rm   r=  r   r  rÎ  s     ri   r²  zAxis._set_converter.  s}   € Ø�?‰?˜iÑ'¨4¯?©?¸iÒ+GØØ×&Ò&ÜÐKÓLÐLà�O‰OÐ'Ü˜9¤d¨4¯?©?Ó&;Ô<Ü˜4Ÿ?™?¬D°«OÔ<ä×ÑðFôð $ˆ�rt   c                 óÀ   — || j                   k(  ry| j                  «       D ];  }||_         |j                  «        |j                  j	                  d«       d|_        Œ= y)z¾
        Set the units for axis.

        Parameters
        ----------
        u : units tag

        Notes
        -----
        The units of any shared axis will also be updated.
        NrD  T)rD  rw  rµ  rO  r  r‹   )r^   Úurz  s      ri   r´  zAxis.set_units>  sV   € ð �—
‘
Š?ØØ×)Ñ)Ó+ò 	ˆDØˆDŒJØ×!Ñ!Ô#Ø�N‰N×"Ñ" 7Ô+ØˆD�Jñ		rt   c                 ó   — | j                   S )zReturn the units for axis.)rD  rx   s    ri   Ú	get_unitszAxis.get_unitsR  s   € à�z‰zÐrt   c                 óÜ   — d| _         | j                  j                  |«       |�| j                  j                  |«       | j                  j                  |«       d| _        | j                  S )að  
        Set the text value of the axis label.

        Parameters
        ----------
        label : str
            Text string.
        fontdict : dict
            Text properties.

            .. admonition:: Discouraged

               The use of *fontdict* is discouraged. Parameters should be passed as
               individual keyword arguments or using dictionary-unpacking
               ``set_label_text(..., **fontdict)``.

        **kwargs
            Merged into fontdict.
        FT)rM  rQ  r(  rÖ  r‹   )r^   rQ  Úfontdictr`   s       ri   rÂ  zAxis.set_label_textV  sY   € ð(  %ˆÔØ�
‰
×Ñ˜EÔ"ØÐØ�J‰J×Ñ˜hÔ'Ø�
‰
×Ñ˜&Ô!ØˆŒ
Ø�z‰zÐrt   c                 ó<   — | j                  || j                  «       y)aš  
        Set the formatter of the major ticker.

        In addition to a `~matplotlib.ticker.Formatter` instance,
        this also accepts a ``str`` or function.

        For a ``str`` a `~matplotlib.ticker.StrMethodFormatter` is used.
        The field used for the value must be labeled ``'x'`` and the field used
        for the position must be labeled ``'pos'``.
        See the  `~matplotlib.ticker.StrMethodFormatter` documentation for
        more information.

        For a function, a `~matplotlib.ticker.FuncFormatter` is used.
        The function must take two inputs (a tick value ``x`` and a
        position ``pos``), and return a string containing the corresponding
        tick label.
        See the  `~matplotlib.ticker.FuncFormatter` documentation for
        more information.

        Parameters
        ----------
        formatter : `~matplotlib.ticker.Formatter`, ``str``, or function
        N)Ú_set_formatterr   r(  s     ri   r¿  zAxis.set_major_formatterr  s   € ð0 	×Ñ˜I t§z¡zÕ2rt   c                 ó<   — | j                  || j                  «       y)aZ  
        Set the formatter of the minor ticker.

        In addition to a `~matplotlib.ticker.Formatter` instance,
        this also accepts a ``str`` or function.
        See `.Axis.set_major_formatter` for more information.

        Parameters
        ----------
        formatter : `~matplotlib.ticker.Formatter`, ``str``, or function
        N)rØ  r$   r(  s     ri   rÁ  zAxis.set_minor_formatterŒ  s   € ð 	×Ñ˜I t§z¡zÕ2rt   c                 ó`  — t        |t        «      rt        j                  |«      }n`t	        |«      r0t        |t        j
                  «      st        j                  |«      }n%t        j                  t        j                  |¬«       t        |t        j                  «      rQt        |j                  «      dkD  r9t        |j                  t        j                  «      st        j                  d«       || j                   k(  rd| _        nd| _        ||_        |j)                  | «       d| _        y )N)r$  r   ú=FixedFormatter should only be used together with FixedLocatorFT)rm   rn   r  ÚStrMethodFormatterÚcallableÚ
TickHelperÚFuncFormatterr   Úcheck_isinstancer'  ÚFixedFormatterr&  Úseqr  ÚFixedLocatorr  r   rd  rn  r$  Úset_axisr‹   )r^   r$  Úlevels      ri   rØ  zAxis._set_formatterš  sÞ   € Ü�i¤Ô%Ü×2Ñ2°9Ó=‰Iô �yÔ!Ü˜Y¬×(:Ñ(:Ô;Ü×-Ñ-¨iÓ8‰Iä×!Ñ!¤'×"3Ñ"3¸yÕIä�y¤'×"8Ñ"8Ô9Ü˜	Ÿ™Ó&¨Ò*Ü" 5§=¡=´'×2FÑ2FÔGÜ×Ñð  3ô 4ð �D—J‘JÒØ$)ˆDÕ!à$)ˆDÔ!à#ˆŒØ×Ñ˜4Ô Øˆ�
rt   c                 ó$  — t        j                  t        j                  |¬«       d| _        || j
                  _        | j
                  j                  r%| j
                  j                  j                  |«       |j                  | «       d| _
        y)zŒ
        Set the locator of the major ticker.

        Parameters
        ----------
        locator : `~matplotlib.ticker.Locator`
        ©r  FTN)r   rà  r  r   r\  r   r  r$  Ú_set_locatorrä  r‹   r"  s     ri   r¼  zAxis.set_major_locator´  óf   € ô 	×ÑœgŸo™o°wÕ?Ø %ˆÔØ$ˆ�
‰
ÔØ�:‰:×ÒØ�J‰J× Ñ ×-Ñ-¨gÔ6Ø×Ñ˜ÔØˆ�
rt   c                 ó$  — t        j                  t        j                  |¬«       d| _        || j
                  _        | j
                  j                  r%| j
                  j                  j                  |«       |j                  | «       d| _
        y)zŒ
        Set the locator of the minor ticker.

        Parameters
        ----------
        locator : `~matplotlib.ticker.Locator`
        rç  FTN)r   rà  r  r   rj  r$   r  r$  rè  rä  r‹   r"  s     ri   rÁ  zAxis.set_minor_locatorÄ  ré  rt   c                 óR   — t        |t        «      r|dk  rt        d«      ‚|| _        y)zá
        Set the depth of the axis used by the picker.

        Parameters
        ----------
        pickradius : float
            The acceptance radius for containment tests.
            See also `.Axis.contains`.
        r   z pick radius should be a distanceN)rm   r   rì  re  )r^   rA  s     ri   Úset_pickradiuszAxis.set_pickradiusÔ  s(   € ô ˜*¤dÔ+¨z¸Aª~ÜÐ?Ó@Ð@Ø%ˆÕrt   zGThe acceptance radius for containment tests. See also `.Axis.contains`.c                 ó&   — | j                  |d«      S )Nr0   )r×  )Útickdrà   Úposs      ri   Ú_format_with_dictzAxis._format_with_dictç  s   € à�y‰y˜˜BÓÐrt   )r$   rÖ  c                óð  — 	 |D �cg c]   }t        |d«      r|j                  «       n|‘Œ" }}|r| j                  «       n| j	                  «       }|st        j                  «       }�n t        |t
        j                  «      r¼t        |j                  «      t        |«      k7  r<t        |«      dk7  r.t        dt        |j                  «      › dt        |«      › d�«      ‚t        |j                  |«      D ��	ci c]  \  }}	||	“Œ
 }
}}	t        j                  | j                  |
«      }t        j                   |«      }n*t#        j$                  d	«       t        j&                  |«      }t)        j*                  «       5  t)        j,                  d
d¬«       |r<| j/                  |«       | j1                  «       }| j3                  t        |«      «      }n;| j5                  |«       | j7                  «       }| j9                  t        |«      «      }ddd«       g }|�|j;                  |«       t=        t        «      «      D ]ù  \  }\  }}|j?                  |«        |||«      }|j@                  jC                  |«       |j@                  jE                  |«       |jF                  jC                  |«       |jF                  jE                  |«       |j@                  jI                  «       r|jK                  |j@                  «       |jF                  jI                  «       sŒß|jK                  |jF                  «       Œû d| _&        |S c c}w # t        $ r t        |d›d�«      d‚w xY wc c}	}w # 1 sw Y   �ŒaxY w)aÎ	  
        [*Discouraged*] Set this Axis' tick labels with list of string labels.

        .. admonition:: Discouraged

            The use of this method is discouraged, because of the dependency on
            tick positions. In most cases, you'll want to use
            ``Axes.set_[x/y/z]ticks(positions, labels)`` or ``Axis.set_ticks``
            instead.

            If you are using this method, you should always fix the tick
            positions before, e.g. by using `.Axis.set_ticks` or by explicitly
            setting a `~.ticker.FixedLocator`. Otherwise, ticks are free to
            move and the labels may end up in unexpected positions.

        Parameters
        ----------
        labels : sequence of str or of `.Text`\s
            Texts for labeling each tick location in the sequence set by
            `.Axis.set_ticks`; the number of labels must match the number of locations.
            The labels are used as is, via a `.FixedFormatter` (without further
            formatting).

        minor : bool
            If True, set minor ticks instead of major ticks.

        fontdict : dict, optional

            .. admonition:: Discouraged

               The use of *fontdict* is discouraged. Parameters should be passed as
               individual keyword arguments or using dictionary-unpacking
               ``set_ticklabels(..., **fontdict)``.

            A dictionary controlling the appearance of the ticklabels.
            The default *fontdict* is::

               {'fontsize': rcParams['axes.titlesize'],
                'fontweight': rcParams['axes.titleweight'],
                'verticalalignment': 'baseline',
                'horizontalalignment': loc}

        **kwargs
            Text properties.

            .. warning::

                This only sets the properties of the current ticks, which is
                only sufficient for static plots.

                Ticks are not guaranteed to be persistent. Various operations
                can create, delete and modify the Tick instances. There is an
                imminent risk that these settings can get lost if you work on
                the figure further (including also panning/zooming on a
                displayed figure).

                Use `.set_tick_params` instead if possible.

        Returns
        -------
        list of `.Text`\s
            For each tick, includes ``tick.label1`` if it is visible, then
            ``tick.label2`` if it is visible, in that order.
        rœ  ú=z must be a sequenceNr   z&The number of FixedLocator locations (zJ), usually from a call to set_ticks, does not match the number of labels (z).zrset_ticklabels() should only be used with a fixed number of ticks, i.e. after set_ticks() or using a FixedLocator.rý  rÛ  )ÚmessageT)'r*  rœ  r!  r¡  r’  r  ÚNullFormatterrm   rã  r&  Úlocsrì  r'  Ú	functoolsÚpartialrð  rß  r   r  rá  ÚwarningsÚcatch_warningsÚfilterwarningsrÁ  r)  r¨  r¿  r$  r§  rÖ  Ú	enumerater]   rY   r(  Ú_internal_updaterZ   rž   r-  r‹   )r^   Úlabelsr$   rÖ  r`   Útr  r$  r_   Úlabrî  Úfuncrõ  r5  rÊ  rï  r4  Ú
tick_labels                     ri   Úset_ticklabelszAxis.set_ticklabelsë  s  € ðB	Hà%ö'Øô '.¨a°Ô&<�a—j‘j”lÀ!ÑCð 'ˆFð 'ñ 05�4×)Ñ)Ô+Ø×.Ñ.Ó0ð 	áä×-Ñ-Ó/ŠIÜ˜¤×!5Ñ!5Ô6ô �7—<‘<Ó ¤C¨£KÒ/´C¸³KÀ1Ò4DÜ ðÜ˜WŸ\™\Ó*Ð+ð ,.ä.1°&«k¨]¸"ð>ó?ð ?ô
 /2°'·,±,ÀÓ.G×H¡( # s�S˜#‘XÐHˆEÑHÜ×$Ñ$ T×%;Ñ%;¸UÓCˆDÜ×-Ñ-¨dÓ3‰Iä×ÑðJôKô  ×.Ñ.¨vÓ6ˆIä×$Ñ$Ó&ñ 	8Ü×#Ñ#ØØWõYñ Ø×(Ñ(¨Ô3Ø×-Ñ-Ó/�Ø×,Ñ,¬S°«YÓ7‘à×(Ñ(¨Ô3Ø×-Ñ-Ó/�Ø×,Ñ,¬S°«YÓ7�÷	8ð ˆØÐØ�M‰M˜(Ô#Ü )¬#¨d°EÓ*:Ó ;ò 	(ÑˆC‘�#�tØ× Ñ  Ô%Ù" 3¨Ó,ˆJà�K‰K× Ñ  Ô,Ø�K‰K×(Ñ(¨Ô0à�K‰K× Ñ  Ô,Ø�K‰K×(Ñ(¨Ô0à�{‰{×&Ñ&Ô(Ø—
‘
˜4Ÿ;™;Ô'Ø�{‰{×&Ñ&Õ(Ø—
‘
˜4Ÿ;™;Õ'ð	(ð ˆŒ
Øˆ
ùòw'øäò 	HÜ˜v a˜jÐ(;Ð<Ó=À4ÐGð	Hüó  I÷	8ñ 	8ús.   ‚M †%M«M Ã7M%Å;BM+ÍM ÍM"Í+M5c                ó¨  — | j                  |«      }t        j                  |«      }t        |«      r9| j	                  «       D ]&  }|j                  t        |«      t        |«      «       Œ( d| j                  _	        |r+| j                  |«       | j                  t        |«      «      S | j                  |«       | j                  t        |«      «      S r‰   )r  r  rã  r&  rw  rþ  ÚminrW  r>   r‹   rÁ  r¨  r¼  r§  )r^   r5  r$   r  rz  s        ri   Ú_set_tick_locationszAxis._set_tick_locationsj  s±   € ð ×"Ñ" 5Ó)ˆÜ×&Ñ& uÓ-ˆÜˆuŒ:Ø×-Ñ-Ó/ò ?�à×&Ñ&¤s¨5£z´3°u³:Õ>ð?ð ˆ�	‰	ŒÙØ×"Ñ" 7Ô+Ø×'Ñ'¬¨E«
Ó3Ð3à×"Ñ" 7Ô+Ø×'Ñ'¬¨E«
Ó3Ð3rt   c                ó¨   — |€%|r#t        t        |«      «      }t        d|›d�«      ‚| j                  ||¬«      }|� | j                  |fd|i|¤Ž |S )al  
        Set this Axis' tick locations and optionally tick labels.

        If necessary, the view limits of the Axis are expanded so that all
        given ticks are visible.

        Parameters
        ----------
        ticks : 1D array-like
            Array of tick locations (either floats or in axis units). The axis
            `.Locator` is replaced by a `~.ticker.FixedLocator`.

            Pass an empty list (``set_ticks([])``) to remove all ticks.

            Some tick formatters will not label arbitrary tick positions;
            e.g. log formatters only label decade ticks by default. In
            such a case you can set a formatter explicitly on the axis
            using `.Axis.set_major_formatter` or provide formatted
            *labels* yourself.

        labels : list of str, optional
            Tick labels for each location in *ticks*; must have the same length as
            *ticks*. If set, the labels are used as is, via a `.FixedFormatter`.
            If not set, the labels are generated using the axis tick `.Formatter`.

        minor : bool, default: False
            If ``False``, set only the major ticks; if ``True``, only the minor ticks.

        **kwargs
            `.Text` properties for the labels. Using these is only allowed if
            you pass *labels*. In other cases, please use `~.Axes.tick_params`.

        Notes
        -----
        The mandatory expansion of the view limits is an intentional design
        choice to prevent the surprise of a non-visible tick. If you need
        other limits, you should set the limits explicitly after setting the
        ticks.
        z"Incorrect use of keyword argument zr. Keyword arguments other than 'minor' modify the text labels and can only be used if 'labels' are passed as well.rÀ  r$   )r{  Úiterrì  r  r  )r^   r5  rý  r$   r`   Ú	first_keyÚresults          ri   Ú	set_tickszAxis.set_ticks|  su   € ðP ˆ>™fÜœT &›\Ó*ˆIÜØ4°Y°Mð B/ð /ó0ð 0ð ×)Ñ)¨%°uÐ)Ó=ˆØÐØˆD×Ñ Ñ>¨eÐ>°vÒ>Øˆrt   c                 ó   — | j                  «       }|| j                  d¬«      j                  vrg g fS | j                  d¬«      j                  |   }g }g }|j                  | j                  «      D ]X  }|j
                  |   }|j                  «       }|j                  ||«      \  }	}
|j                  |	«       |j                  |
«       ŒZ ||fS )zÆ
        Get the bounding boxes for this `.axis` and its siblings
        as set by `.Figure.align_xlabels` or  `.Figure.align_ylabels`.

        By default, it just gets bboxes for *self*.
        Fr%   )	rr  r=   Ú_align_label_groupsrs  r>   rv  r=  rA  Úextend)r^   r£   rb   ÚgrouperrS  Úbboxes2rç   rz  r;  ÚtlbrR  s              ri   Ú_get_tick_boxes_siblingszAxis._get_tick_boxes_siblings¯  sÍ   € ð ×"Ñ"Ó$ˆØ�t—‘¨E�Ó2×FÑFÑFØ�r�6ˆMØ—/‘/ u�/Ó-×AÑAÀ$ÑGˆØˆØˆà×&Ñ& t§y¡yÓ1ò 	!ˆBØ—<‘< Ñ%ˆDØ ×.Ñ.Ó0ˆMØ×2Ñ2°=À(ÓK‰IˆC�Ø�M‰M˜#ÔØ�N‰N˜4Õ ð	!ð �wˆÐrt   c                 ó   — t        d«      ‚)zz
        Update the label position based on the bounding box enclosing
        all the ticklabels and axis spine.
        r­   r®   )r^   r£   s     ri   rG  zAxis._update_label_positionÆ  ó   € ô
 "Ð"9Ó:Ð:rt   c                 ó   — t        d«      ‚)zx
        Update the offset text position based on the sequence of bounding
        boxes of all the ticklabels.
        r­   r®   )r^   rS  r  s      ri   rH  z!Axis._update_offset_text_positionÍ  r  rt   c                 ó¸   — t        |t        «      rddl}|j                  j	                  |«      }| j                  t        j                  ddddddd|«      «       y)zñ
        Set up axis ticks and labels to treat data along this Axis as dates.

        Parameters
        ----------
        tz : str or `datetime.tzinfo`, default: :rc:`timezone`
            The timezone used to create date labels.
        r   NiÙ  r4   )rm   rn   Údateutil.tzÚtzÚgettzr¸  Údatetime)r^   r  Údateutils      ri   Ú	axis_datezAxis.axis_dateÔ  sL   € ô �bœ#ÔÛØ—‘×"Ñ" 2Ó&ˆBØ×Ñœ(×+Ñ+¨D°!°Q¸¸1¸aÀÀBÓGÕHrt   c                 ó   — t        «       ‚)z>Return the estimated number of ticks that can fit on the axis.r®   rx   s    ri   Úget_tick_spacezAxis.get_tick_spaceå  s   € ô "Ó#Ð#rt   c                 ó¾   — | j                   d   }| j                  d   }t        d„ ||fD «       «      ryt        d„ ||fD «       «      ryt        d„ ||fD «       «      ryy)	a[  
        Helper for `XAxis.get_ticks_position` and `YAxis.get_ticks_position`.

        Check the visibility of tick1line, label1, tick2line, and label2 on
        the first major and the first minor ticks, and return

        - 1 if only tick1line and label1 are visible (which corresponds to
          "bottom" for the x-axis and "left" for the y-axis);
        - 2 if only tick2line and label2 are visible (which corresponds to
          "top" for the x-axis and "right" for the y-axis);
        - "default" if only tick1line, tick2line and label1 are visible;
        - "unknown" otherwise.
        r   c              3   óü   K  — | ]t  }|j                   j                  «       xrT |j                  j                  «        xr7 |j                  j                  «       xr |j                  j                  «        –— Œv y ­wrv   ©rN   rž   rO   rY   rZ   ©r³   r4  s     ri   r´   z+Axis._get_ticks_position.<locals>.<genexpr>ú  ss   è ø€ ò +ð ð	 �~‰~×)Ñ)Ó+ò 1Ø—~‘~×1Ñ1Ó3Ð3ò1à—;‘;×*Ñ*Ó,ò1ð —{‘{×.Ñ.Ó0Ð0ó1ñ +ùó   ‚A:A<r4   c              3   óü   K  — | ]t  }|j                   j                  «       xrT |j                  j                  «        xr7 |j                  j                  «       xr |j                  j                  «        –— Œv y ­wrv   )rO   rž   rN   rZ   rY   r!  s     ri   r´   z+Axis._get_ticks_position.<locals>.<genexpr> 	  ss   è ø€ ò -ð ð	 —‘×+Ñ+Ó-ò 3ØŸ™×3Ñ3Ó5Ð5ò3à—[‘[×,Ñ,Ó.ò3ð Ÿ™×0Ñ0Ó2Ð2ó3ñ -ùr"  rE  c              3   óú   K  — | ]s  }|j                   j                  «       xrS |j                  j                  «       xr7 |j                  j                  «       xr |j                  j                  «        –— Œu y ­wrv   r   r!  s     ri   r´   z+Axis._get_ticks_position.<locals>.<genexpr>	  sp   è ø€ ò -ð ð	 —‘×+Ñ+Ó-ò 3Ø—^‘^×/Ñ/Ó1ò3à—[‘[×,Ñ,Ó.ò3ð Ÿ™×0Ñ0Ó2Ð2ó3ñ -ùs   ‚A9A;rk   Úunknown)r/  r1  Úall)r^   r   r$   s      ri   Ú_get_ticks_positionzAxis._get_ticks_positionê  sƒ   € ð —‘ Ñ"ˆØ—‘ Ñ"ˆÜñ +ð " 5˜>ô	+ô +ð
 Üñ -ð $ U˜^ô	-ô -ð
 Üñ -ð $ U˜^ô	-ô -ð
 àrt   c                 ó   — | j                   S )z;
        Return the label position (top or bottom)
        )Úlabel_positionrx   s    ri   Úget_label_positionzAxis.get_label_position	  s   € ð ×"Ñ"Ð"rt   c                 ó   — t        «       ‚)ú„
        Set the label position (top or bottom)

        Parameters
        ----------
        position : {'top', 'bottom'}
        r®   ©r^   Úpositions     ri   Úset_label_positionzAxis.set_label_position	  s   € ô "Ó#Ð#rt   c                 ó   — t        «       ‚rv   r®   rx   s    ri   r�  zAxis.get_minpos	  s   € Ü!Ó#Ð#rt   rv   )r   F©F)FN)Nr   )xrA   rÎ   rÏ   rÐ   ÚOFFSETTEXTPADr‘  r   Údeprecate_privatize_attributer¶  r?  r9   rÑ   r\  r)  rd  rj  rn  rt  rw  rr  r+  r/  r1  r}  r€  rƒ  r„  r‡  r‰  r�  rš  rœ  r¢  r¥  r‡   rª  r­  rB  rµ  rÌ  rÏ  rÚ  rÞ  ÚclassmethodrÕ  rŠ   r°   rþ  r   r  r  r  r  r  r\   r=  rA  rU  rw   rÒ   rÓ   r¡   r\  r_  ra  rc  rf  rk  ro  rq  rv  ry  r|  r$  r)  rŒ  r�  r0  r•  rš  r�  r’  r¡  r£  r¦  r§  r¨  rÞ   r¸  rµ  rÅ  r  r±  rÏ  r²  r´  rÔ  rÂ  r¿  rÁ  rØ  r¼  rÁ  rì  rA  Ústaticmethodrð  r  r  r
  r  rG  rH  r  r  r'  r*  r/  r�  rÔ   rÕ   s   @ri   r7  r7  -  s‡  ø„ ñ(ðR €Mð €KØ2�×2Ñ2ØØ Iô€Iò
Ið ,.°Tö 7"ðr ñ.ó ð.ð ×Ññ/ó ð/ð ñ0ó ð0ð ×Ññ1ó ð1ð ñ.ó ð.ð ×Ññ/ó ð/ð ñ0ó ð0ð ×Ññ1ó ð1ò;ò
Fò
%ñ  TÔ*€JÙ UÔ+€Jò-ò2ñ 'Ø#Ð%@ð3ô5Ðó
ò(+ò ò
%òKò>Pò"ò#òBòFòFò)òVò( ?òD6ó+óZ4Nðl òCó ðCõJò;ó;ò;ó;ò	ò
Jòð (,ô JòX2ò
2óhBð1¸eô 1òf&ð × Ñ ñó !ðò0Dò8ò	òò ò!ò!ó*ò><ò<ó)ò$òð$ %*ô Oó&Dò*Fò
Dò%ò$%ò"ò"ò$ò$ó*ó4*ó4(òTò2 %òDEòò"ò	+ò$ò ò(óò83ò43òò4ò ò &ñ Ø˜ð -8ô9€Jð
 ñ ó ð ð /4¸dô }ð~ 38ô 4ð$1°Uô 1òfò.;ò;óIò"$ò
#òJ#ò$ö$rt   r7  c                 ó\   ‡‡‡‡— ˆˆfd„Šdˆˆˆˆfd„	Šd| › d�‰_         d| › d�‰_         ‰‰fS )zo
    Helper to generate ``get_{data,view}_interval`` and
    ``set_{data,view}_interval`` implementations.
    c                 óD   •— t        t        | j                  ‰«      ‰«      S rv   )Úgetattrr>   )r^   Ú	attr_nameÚlim_names    €€ri   Úgetterz%_make_getset_interval.<locals>.getter)	  s   ø€ ä”w˜tŸy™y¨(Ó3°YÓ?Ð?rt   c           	      ó&  •— |r+t        t        | j                  ‰«      ‰||f«       d| _        y  ‰| «      \  }}||k  r* ‰	| t        |||«      t	        |||«      d¬«       d| _        y  ‰	| t	        |||«      t        |||«      d¬«       d| _        y )NTr  )r¿   r8  r>   r  rW  r‹   )
r^   rž  rŸ  rý  ÚoldminÚoldmaxr9  r;  r:  r)  s
         €€€€ri   r)  z%_make_getset_interval.<locals>.setter-	  s˜   ø€ áÜ”G˜DŸI™I xÓ0°)¸dÀD¸\ÔJð ˆ�
ñ $ D›\‰NˆF�FØ˜ŠÙ�tœS  t¨VÓ4´c¸$ÀÀfÓ6MØ"õ$ð
 ˆ�
ñ �tœS  t¨VÓ4´c¸$ÀÀfÓ6MØ"õ$àˆ�
rt   Úget_Ú	_intervalÚset_r1  )rA   )Úmethod_namer:  r9  r;  r)  s    ``@@ri   Ú_make_getset_intervalrC  #	  s?   û€ õ@÷ð ð ˜[˜M¨Ð3€F„OØ˜[˜M¨Ð3€F„Oà�6ˆ>Ðrt   c                   ó¦   ‡ — e Zd ZdZ dZeZˆ fd„Zd„ Zd„ Zd„ Z	d„ Z
d„ Zd	„ Zd
„ Zd„ Zd„ Z eddd«      \  ZZ eddd«      \  ZZd„ Zd„ Zd„ Zˆ xZS )ÚXAxisÚxaxisrà   c                 óD   •— t        ‰| �  |i |¤Ž | j                  «        y rv   ©r8   r9   r´  ©r^   ræ   r`   rh   s      €ri   r9   zXAxis.__init__F	  ó   ø€ Ü‰Ñ˜$Ð) &Ò)Ø�
‰
�rt   c                 ó(  — | j                   j                  ddddt        j                  | j                  j
                  t        j                  «       «      ¬«       d| _        t        j                  d   dk(  rt        j                  d	   }nt        j                  d   }| j                  j                  d
dddt        j                  | j                  j
                  t        j                  «       «      t        j                  d   |¬«       d| _        y)ú|
        Initialize the label and offsetText instance values and
        `label_position` / `offset_text_position`.
        r‚   r   rå  Úcenterrß   rã  zxtick.labelcolorr(   zxtick.colorr4   rä  zxtick.labelsize©rà   rá   râ   rã   r�   r5   r   N)rQ  r¾   r+  Úblended_transform_factoryr>   r>  ÚIdentityTransformr)  r:   r;   rR  Úoffset_text_position©r^   Ú
tick_colors     ri   r´  zXAxis._initJ	  så   € ð 	�
‰
�‰Ø�QØ#¸Ü!×;Ñ;Ø—	‘	×#Ñ#¤[×%BÑ%BÓ%DóFð 	ô 	
ð 'ˆÔä�<‰<Ð*Ñ+¨yÒ8ÜŸ™ mÑ4‰JäŸ™Ð&8Ñ9ˆJà�‰×ÑØ�1Ø#¸Ü!×;Ñ;Ø—	‘	×#Ñ#¤[×%BÑ%BÓ%DóFä—\‘\Ð"3Ñ4Øð 	ô 	
ð %-ˆÕ!rt   c                 óü  — | j                  |«      rdi fS |j                  |j                  }}	 | j                  j                  j                  «       }|j                  ||f«      \  }}| j                  j                  j                  ddg«      \  \  }}\  }	}
d|cxk  xr dk  nc xr< || j                  z
  |cxk  xr |k  nc xs |
|cxk  xr |
| j                  z   k  nc }|i fS # t        $ r di fcY S w xY w)z4Test whether the mouse event occurred in the x-axis.Fr;  ©r4   r4   r   r4   ©	Ú_different_canvasrà   rá   r>   r>  r
  r�   rì  re  ©r^   r�   rà   rá   rÃ   ÚxaxesÚyaxesÚlr¤  Úrrþ  Úinaxiss               ri   r‘   zXAxis.containsh	  óü   € à×!Ñ! *Ô-Ø˜"�9ÐØ�|‰|˜ZŸ\™\ˆ1ˆð	Ø—I‘I×'Ñ'×0Ñ0Ó2ˆEØ Ÿ?™?¨A¨q¨6Ó2‰LˆE�5ð Ÿ™×,Ñ,×6Ñ6¸ÀÐ7GÓH‰‰ˆˆA‘��AØ�e–˜q”ò *Ø�× Ñ Ñ  1Ö( qÔ(ò )Ø�Ö(�A˜×(Ñ(Ñ(Ô(ð 	ð �rˆzÐøô ò 	Ø˜"�9Òð	úó   ¯:C+ Ã+C;Ã:C;c                 ó†   — | j                   j                  t        j                  dddœ|¬«      «       || _        d| _        y)r,  Úbaselinerå  )rå  rã  ©r.  TN)rQ  Úset_verticalalignmentr   Úcheck_getitemr)  r‹   r-  s     ri   r/  zXAxis.set_label_positionx	  sA   € ð 	�
‰
×(Ñ(¬×);Ñ);Ø¨ñ=
àô*ô 	ð 'ˆÔØˆ�
rt   c                 ón  — | j                   sy| j                  |¬«      \  }}| j                  j                  «       \  }}| j                  dk(  r´t
        j                  j                  g |¢| j                  j                  j                  d| j                  «      j                  «       ‘«      }| j                  j                  ||j                  | j                  | j                  d¬«      j                   z  dz  z
  f«       yt
        j                  j                  g |¢| j                  j                  j                  d| j                  «      j                  «       ‘«      }| j                  j                  ||j"                  | j                  | j                  d¬«      j                   z  dz  z   f«       y)úy
        Update the label position based on the bounding box enclosing
        all the ticklabels and axis spine
        N©r£   rã  Tr%   éH   rå  )rP  r  rQ  Úget_positionr)  r+  rO  rP  r>   Úspinesr×  r@  rƒ  rM  rS  r=   ÚdpirN  ©r^   r£   rS  r  rà   rá   Úbboxs          ri   rG  zXAxis._update_label_position†	  s{  € ð
 ×!Ò!Øð ×7Ñ7ÀÐ7ÓJ‰ˆ�Ø�z‰z×&Ñ&Ó(‰ˆˆ1à×Ñ (Ò*ä×#Ñ#×)Ñ)ð +XØð+XØŸ™×)Ñ)×-Ñ-¨h¸¿	¹	ÓB×TÑTÓVð+Xó YˆDà�J‰J×#Ñ#Ø�D—G‘G˜dŸm™m¨d¯o©oÀ4¨oÓ.H×.LÑ.LÑLÈrÑQÑQÐRõTô ×#Ñ#×)Ñ)ð +VØð+VØŸ)™)×*Ñ*×.Ñ.¨u°d·i±iÓ@×RÑRÓTð+Vó WˆDà�J‰J×#Ñ#Ø�D—G‘G˜dŸm™m¨d¯o©oÀ4¨oÓ.H×.LÑ.LÑLÈrÑQÑQÐRõTrt   c                 óÖ  — | j                   j                  «       \  }}t        | d«      sd| _        | j                  dk(  r‡t	        |«      s!| j
                  j                  j                  }n+t        j                  j                  |«      }|j                  }|| j                  | j                  d¬«      j                  z  dz  z
  }n†t	        |«      s!| j
                  j                  j                  }n+t        j                  j                  |«      }|j                   }|| j                  | j                  d¬«      j                  z  dz  z   }| j                   j#                  ||f«       y)úw
        Update the offset_text position based on the sequence of bounding
        boxes of all the ticklabels
        Ú_tick_positionrã  Tr%   rh  N)rR  ri  r*  rp  r&  r>   rm  Úyminr+  rO  rP  rM  r2  r=   rk  ÚymaxrN  rƒ  )r^   rS  r  rà   rá   rã  rm  rå  s           ri   rH  z"XAxis._update_offset_text_position 	  s  € ð
 �‰×+Ñ+Ó-‰ˆˆ1Ü�tÐ-Ô.Ø"*ˆDÔØ×Ñ (Ò*Ü�v”;ØŸ™Ÿ™×,Ñ,‘ä"×'Ñ'×-Ñ-¨fÓ5�ØŸ™�Ø˜×+Ñ+¨d¯o©oÀ4¨oÓ.H×.LÑ.LÑLÈrÑQÑQ‰Aä�w”<Ø—i‘i—n‘n×)Ñ)‘ä"×'Ñ'×-Ñ-¨gÓ6�Ø—g‘g�Ø�d×(Ñ(¨4¯?©?À¨?Ó+E×+IÑ+IÑIÈBÑNÑNˆAØ�‰×$Ñ$ a¨ VÕ,rt   c                 óf  — |dk(  r@| j                  ddddd¬«       d| _        | j                  j                  d«       d| _        y|dk(  r@| j                  ddddd¬«       d| _        | j                  j                  d«       d| _        y|dk(  r| j                  ddd¬«       d| _        y|dk(  r| j                  ddd¬«       d| _        y|d	k(  r@| j                  ddddd¬«       d| _        | j                  j                  d«       d| _        yt	        j
                  g d
¢|¬«       d| _        y)aî  
        Set the ticks position.

        Parameters
        ----------
        position : {'top', 'bottom', 'both', 'default', 'none'}
            'both' sets the ticks to appear on both positions, but does not
            change the tick labels.  'default' resets the tick positions to
            the default: ticks on both positions, labels at bottom.  'none'
            can be used if you don't want any ticks. 'none' and 'both'
            affect only the ticks, not the labels.
        rå  r!   TF)ra   rå  ré  rã  rç  rã  )ra   rå  rã  r*   rk   )rå  rã  r!   rk   r*   rb  N)rÚ  rp  rR  rc  r   rq   r‹   r-  s     ri   Úset_ticks_positionzXAxis.set_ticks_position¸	  s]  € ð �uÒØ× Ñ  v°4À$Ø(-¸5ð !ô Bà"'ˆDÔØ�O‰O×1Ñ1°(Ô;ð( ˆ�
ð' ˜Ò!Ø× Ñ  v°5À5Ø(,¸$ð !ô @à"*ˆDÔØ�O‰O×1Ñ1°%Ô8ð ˆ�
ð ˜ÒØ× Ñ  v°4Ø(,ð !ô .ð ˆ�
ð ˜ÒØ× Ñ  v°5Ø(-ð !ô /ð ˆ�
ð ˜Ò"Ø× Ñ  v°4À%Ø(,¸$ð !ô @à"*ˆDÔØ�O‰O×1Ñ1°%Ô8ð ˆ�
ô ×ÑÒKØ(0õ2àˆ�
rt   c                 ó¬   — d}d| j                   v r | j                   d   xs | j                   d   }| j                  d«       | j                  d|¬«       y)zP
        Move ticks and ticklabels (if present) to the top of the Axes.
        Tr   r   rå  r!   )ra   ré  N©rU  rt  rÚ  ©r^   rQ  s     ri   Útick_topzXAxis.tick_topß	  s^   € ð ˆØ˜×,Ñ,Ñ,Ø×(Ñ(¨Ñ4ò 8Ø×+Ñ+¨JÑ7ð à×Ñ Ô&à×Ñ 6°EÐÕ:rt   c                 ó¬   — d}d| j                   v r | j                   d   xs | j                   d   }| j                  d«       | j                  d|¬«       y)zS
        Move ticks and ticklabels (if present) to the bottom of the Axes.
        Tr   r   rã  r!   )ra   rç  Nrv  rw  s     ri   Útick_bottomzXAxis.tick_bottomë	  s^   € ð ˆØ˜×,Ñ,Ñ,Ø×(Ñ(¨Ñ4ò 8Ø×+Ñ+¨JÑ7ð à×Ñ Ô)à×Ñ 6°uÐÕ=rt   c                 ó2   — dddddœ| j                  «          S )zW
        Return the ticks position ("top", "bottom", "default", or "unknown").
        rã  rå  rk   r%  ©r4   rE  rk   r%  ©r'  rx   s    ri   Úget_ticks_positionzXAxis.get_ticks_position÷	  s)   € ð  Ø$°ñ<à×,Ñ,Ó.ñ0ð 	0rt   Úviewrÿ   r   rÜ   ÚdataLimc                 óB   — | j                   j                  j                  S rv   )r>   r€  Úminposxrx   s    ri   r�  zXAxis.get_minpos
  ó   € Ø�y‰y× Ñ ×(Ñ(Ð(rt   c                 ó”  — | j                   j                  j                  «       s�| j                   j                  j                  «       sy| j                  �m| j                  j                  | j                  | «      }|j                  �;| j                  |j                  «      \  }}||f| j                   j                  _	        d| _
        y r‰   )r>   r€  Úmutatedxrÿ   rW  rº  rD  Údefault_limitsr  r   r‹   )r^   rÃ  ÚxminÚxmaxs       ri   r  zXAxis.set_default_intervals
  ó—   € ð —	‘	×!Ñ!×*Ñ*Ô,Ø—I‘I×%Ñ%×.Ñ.Ô0Ø�‰Ð*Ø—‘×/Ñ/°·
±
¸DÓA�Ø×&Ñ&Ð2Ø!%×!3Ñ!3°D×4GÑ4GÓ!H‘J�D˜$Ø26¸°*�D—I‘I×%Ñ%Ô/Øˆ�
rt   c                 óR  — t         j                  j                  «       j                  | j                  j
                  | j                  d¬«      j                  z
  «      }|j                  dz  }| j                  d«      dz  }|dkD  r!t        t        j                  ||z  «      «      S y)NFr%   rh  rà   r8  r   éÿÿÿ)r+  rO  ÚunitÚtransformedr>   r>  r=   Údpi_scale_transr   r•  ÚintrV   Úfloor©r^   Úendsrà  r
   s       ri   r  zXAxis.get_tick_space
  s‹   € Ü×Ñ×$Ñ$Ó&×2Ñ2Ø�I‰I×Ñ $§/¡/°u /Ó"=×"MÑ"MÑMóOˆà—‘˜b‘ˆð ×(Ñ(¨Ó-°Ñ1ˆØ�!Š8Ü”r—x‘x ¨¡Ó.Ó/Ð/àrt   )rA   rÎ   rÏ   rë  r×   r‘  r9   r´  r‘   r/  rG  rH  rt  rx  rz  r~  rC  r°   rþ  r   r  r�  r  r  rÔ   rÕ   s   @ri   rE  rE  A	  sˆ   ø„ Ø€HØ€IØ€Kôò-ò<ò òTò4-ò0%òN
;ò
>ò0ñ ,AØ�	˜;ó,(Ñ(ÐÐ(á+@Ø�	˜;ó,(Ñ(ÐÐ(ò)òö
rt   rE  c                   ó¬   ‡ — e Zd ZdZ dZeZˆ fd„Zd„ Zd„ Zd„ Z	d„ Z
d„ Zd	„ Zd
„ Zd„ Zd„ Zd„ Z eddd«      \  ZZ eddd«      \  ZZd„ Zd„ Zd„ Zˆ xZS )ÚYAxisÚyaxisrá   c                 óD   •— t        ‰| �  |i |¤Ž | j                  «        y rv   rH  rI  s      €ri   r9   zYAxis.__init__&
  rJ  rt   c                 ó,  — | j                   j                  ddddddt        j                  t        j                  «       | j
                  j                  «      ¬«       d| _        t        j                  d	   d
k(  rt        j                  d   }nt        j                  d	   }| j                  j                  ddddt        j                  | j
                  j                  t        j                  «       «      t        j                  d   |¬«       d| _        y)rL  r   r‚   rã  rM  ÚverticalÚanchor)rà   rá   râ   rã   r7   Úrotation_moder�   râ  zytick.labelcolorr(   zytick.colorra  zytick.labelsizerN  N)rQ  r¾   r+  rO  rP  r>   r>  r)  r:   r;   rR  rQ  rR  s     ri   r´  zYAxis._init*
  sì   € ð 	�
‰
�‰Ø�3Ø&¸HØ¨xÜ!×;Ñ;Ü×-Ñ-Ó/°·±×1DÑ1DóFð	 	ô 	
ð %ˆÔä�<‰<Ð*Ñ+¨yÒ8ÜŸ™ mÑ4‰JäŸ™Ð&8Ñ9ˆJð 	�‰×ÑØ�3Ø(¸fÜ!×;Ñ;Ø—	‘	×#Ñ#¤[×%BÑ%BÓ%DóFä—\‘\Ð"3Ñ4Øð 	ô 	
ð %+ˆÕ!rt   c                 óü  — | j                  |«      rdi fS |j                  |j                  }}	 | j                  j                  j                  «       }|j                  ||f«      \  }}| j                  j                  j                  ddg«      \  \  }}\  }	}
d|cxk  xr dk  nc xr< || j                  z
  |cxk  xr |k  nc xs |	|cxk  xr |	| j                  z   k  nc }|i fS # t        $ r di fcY S w xY w)NFr;  rU  r   r4   rV  rX  s               ri   r‘   zYAxis.containsJ
  r^  r_  c                 ó¼   — | j                   j                  d«       | j                   j                  t        j                  dddœ|¬«      «       || _        d| _        y)z„
        Set the label position (left or right)

        Parameters
        ----------
        position : {'left', 'right'}
        r™  rã  rå  ©râ  rä  rb  TN)rQ  Úset_rotation_moderc  r   rd  r)  r‹   r-  s     ri   r/  zYAxis.set_label_positionZ
  sS   € ð 	�
‰
×$Ñ$ XÔ.Ø�
‰
×(Ñ(¬×);Ñ);Ø uñ=
àô*ô 	ð 'ˆÔØˆ�
rt   c                 ón  — | j                   sy| j                  |¬«      \  }}| j                  j                  «       \  }}| j                  dk(  r´t
        j                  j                  g |¢| j                  j                  j                  d| j                  «      j                  «       ‘«      }| j                  j                  |j                  | j                  | j                  d¬«      j                   z  dz  z
  |f«       yt
        j                  j                  g |¢| j                  j                  j                  d| j                  «      j                  «       ‘«      }| j                  j                  |j"                  | j                  | j                  d¬«      j                   z  dz  z   |f«       y)rf  Nrg  râ  Tr%   rh  rä  )rP  r  rQ  ri  r)  r+  rO  rP  r>   rj  r×  r@  rƒ  rJ  rS  r=   rk  rK  rl  s          ri   rG  zYAxis._update_label_positioni
  s}  € ð
 ×!Ò!Øð ×7Ñ7ÀÐ7ÓJ‰ˆ�Ø�z‰z×&Ñ&Ó(‰ˆˆ1à×Ñ &Ò(ä×#Ñ#×)Ñ)ð +VØð+VØŸ™×)Ñ)×-Ñ-¨f°d·i±iÓ@×RÑRÓTð+Vó WˆDà�J‰J×#Ñ#Ø—‘˜4Ÿ=™=¨4¯?©?À¨?Ó+E×+IÑ+IÑIÈBÑNÑNÐPQÐRõTô ×#Ñ#×)Ñ)ð +XØð+XØŸ)™)×*Ñ*×.Ñ.¨w¸¿	¹	ÓB×TÑTÓVð+Xó YˆDà�J‰J×#Ñ#Ø—‘˜4Ÿ=™=¨4¯?©?À¨?Ó+E×+IÑ+IÑIÈBÑNÑNÐPQÐRõTrt   c                 ó–  — | j                   j                  «       \  }}d| j                  j                  v r(| j                  j                  d   j	                  «       }n| j                  j
                  }|j                  }| j                   j                  ||| j                  | j                  d¬«      j                  z  dz  z   f«       y)ro  ÚoutlineTr%   rh  N)rR  ri  r>   rj  r@  rm  rr  rƒ  r2  r=   rk  )r^   rS  r  rà   rµ   rm  rå  s          ri   rH  z"YAxis._update_offset_text_positionƒ
  sŸ   € ð
 �‰×+Ñ+Ó-‰ˆˆ1Ø˜Ÿ	™	×(Ñ(Ñ(à—9‘9×#Ñ# IÑ.×@Ñ@ÓB‰Dà—9‘9—>‘>ˆDØ�i‰iˆØ�‰×$Ñ$Ø��d×(Ñ(¨4¯?©?À¨?Ó+E×+IÑ+IÑIÈBÑNÑNÐOõ	
rt   c                 óð   — | j                   j                  «       \  }}t        j                  dddœ|¬«      }| j                   j	                  |«       | j                   j                  ||f«       d| _        y)zT
        Parameters
        ----------
        position : {'left', 'right'}
        r   r4   r�  rb  TN)rR  ri  r   rd  Úset_harƒ  r‹   )r^   r.  rà   rá   s       ri   Úset_offset_positionzYAxis.set_offset_position“
  s`   € ð �‰×+Ñ+Ó-‰ˆˆ1Ü×Ñ¨°AÑ6ÀÔJˆà�‰×Ñ˜xÔ(Ø�‰×$Ñ$ a¨ VÔ,Øˆ�
rt   c                 óÞ  — |dk(  r/| j                  ddddd¬«       | j                  |«       d| _        y|dk(  r/| j                  ddddd¬«       | j                  |«       d| _        y|dk(  r| j                  ddd¬«       d| _        y|dk(  r| j                  ddd¬«       d| _        y|d	k(  r| j                  ddddd¬«       d| _        yt        j                  g d
¢|¬«       d| _        y)aì  
        Set the ticks position.

        Parameters
        ----------
        position : {'left', 'right', 'both', 'default', 'none'}
            'both' sets the ticks to appear on both positions, but does not
            change the tick labels.  'default' resets the tick positions to
            the default: ticks on both positions, labels at left.  'none'
            can be used if you don't want any ticks. 'none' and 'both'
            affect only the ticks, not the labels.
        rä  r!   TF)ra   rä  rè  râ  ræ  râ  )ra   rä  râ  r*   rk   )râ  rä  r!   rk   r*   rb  N)rÚ  r¤  r   rq   r‹   r-  s     ri   rt  zYAxis.set_ticks_position 
  s(  € ð �wÒØ× Ñ  v°TÀdØ&+°uð !ô >à×$Ñ$ XÔ.ð" ˆ�
ð! ˜ÒØ× Ñ  v°UÀuØ&*°dð !ô <à×$Ñ$ XÔ.ð ˆ�
ð ˜ÒØ× Ñ  v°TØ&*ð !ô ,ð ˆ�
ð ˜ÒØ× Ñ  v°UØ&+ð !ô -ð ˆ�
ð ˜Ò"Ø× Ñ  v°TÀeØ&*°dð !ô <ð
 ˆ�
ô ×ÑÒKØ(0õ2àˆ�
rt   c                 ó¬   — d}d| j                   v r | j                   d   xs | j                   d   }| j                  d«       | j                  d|¬«       y)zR
        Move ticks and ticklabels (if present) to the right of the Axes.
        Tr   r   rä  r!   )ra   rè  Nrv  rw  s     ri   Ú
tick_rightzYAxis.tick_rightÃ
  s`   € ð ˆØ˜×,Ñ,Ñ,Ø×(Ñ(¨Ñ4ò 8Ø×+Ñ+¨JÑ7ð à×Ñ Ô(ð 	×Ñ 6°eÐÕ<rt   c                 ó¬   — d}d| j                   v r | j                   d   xs | j                   d   }| j                  d«       | j                  d|¬«       y)zQ
        Move ticks and ticklabels (if present) to the left of the Axes.
        Tr   r   râ  r!   )ra   ræ  Nrv  rw  s     ri   Ú	tick_leftzYAxis.tick_leftÐ
  s`   € ð ˆØ˜×,Ñ,Ñ,Ø×(Ñ(¨Ñ4ò 8Ø×+Ñ+¨JÑ7ð à×Ñ Ô'ð 	×Ñ 6°UÐÕ;rt   c                 ó2   — dddddœ| j                  «          S )zW
        Return the ticks position ("left", "right", "default", or "unknown").
        râ  rä  rk   r%  r|  r}  rx   s    ri   r~  zYAxis.get_ticks_positionÝ
  s)   € ð ˜gØ$°ñ<à×,Ñ,Ó.ñ0ð 	0rt   r  rÿ   r  rÜ   r€  c                 óB   — | j                   j                  j                  S rv   )r>   r€  Úminposyrx   s    ri   r�  zYAxis.get_minposê
  rƒ  rt   c                 ó”  — | j                   j                  j                  «       s�| j                   j                  j                  «       sy| j                  �m| j                  j                  | j                  | «      }|j                  �;| j                  |j                  «      \  }}||f| j                   j                  _	        d| _
        y r‰   )r>   r€  Úmutatedyrÿ   rW  rº  rD  r†  r  r  r‹   )r^   rÃ  rq  rr  s       ri   r  zYAxis.set_default_intervalsí
  r‰  rt   c                 óR  — t         j                  j                  «       j                  | j                  j
                  | j                  d¬«      j                  z
  «      }|j                  dz  }| j                  d«      dz  }|dkD  r!t        t        j                  ||z  «      «      S y)NFr%   rh  rá   rE  r   r‹  )r+  rO  rŒ  r�  r>   r>  r=   rŽ  rL  r•  r�  rV   r�  r‘  s       ri   r  zYAxis.get_tick_spaceú
  sŠ   € Ü×Ñ×$Ñ$Ó&×2Ñ2Ø�I‰I×Ñ $§/¡/°u /Ó"=×"MÑ"MÑMóOˆà—‘˜rÑ!ˆà×(Ñ(¨Ó-°Ñ1ˆØ�!Š8Ü”r—x‘x ¨¡Ó.Ó/Ð/àrt   )rA   rÎ   rÏ   rë  r  r‘  r9   r´  r‘   r/  rG  rH  r¤  rt  r§  r©  r~  rC  r°   rþ  r   r  r�  r  r  rÔ   rÕ   s   @ri   r”  r”  !
  sŽ   ø„ Ø€HØ€IØ€Kôò+ò@ò òTò4
ò ò!òF=ò<ò0ñ ,AØ�	˜;ó,(Ñ(ÐÐ(á+@Ø�	˜;ó,(Ñ(ÐÐ(ò)òö	rt   r”  )>rÐ   r  rö  ÚloggingÚnumbersr   rø  ÚnumpyrV   Ú
matplotlibr:   r   r   Úmatplotlib.artistrg   rÒ   Úmatplotlib.colorsrê  rK   Úmatplotlib.linesru  rG   Úmatplotlib.scaler‘  r‹  Úmatplotlib.textÚtextrT   Úmatplotlib.tickerÚtickerr  Úmatplotlib.transformsÚ
transformsr+  Úmatplotlib.unitsrD  r¯  Ú	getLoggerrA   Ú_logrQ   ÚArtistInspectorrH   Ú_line_inspectorÚget_settersÚ_line_param_namesÚaliasdrX  r{  r  Ú_line_param_aliasesrÀ   ÚArtistr	   r×   r  r  r+  r7  rC  rE  r”  )Údrb   s   00ri   ú<module>rÉ     sN  ðñó Û Û Ý Û ã ã ß "Ý #Ý #Ý !Ý !Ý Ý #Ý +Ý !à€w×Ñ˜Ó"€à"Ð ð *�'×)Ñ)¨&¯-©-Ó8€Ø#×/Ñ/Ó1Ð Ø.=×.DÑ.D×.KÑ.KÓ.MÖN¨‘t™D ›G•}ÒNÐ à%6Ð9LÑ%LöNØ!ð ! 4›ò NÐ ô@;ˆ7�>‰>ô @;ôF
:+ˆDô :+ôz:+ˆDô :+÷z&$ñ &$÷R+ñ +ôDs$ˆ7�>‰>ô s$òl7ô<]ˆDô ]ô@bˆDõ bùòCP OùòNs   Â5EÃE