Ë
    ¨eh/  ã                   óº  — d Z ddlZddlZddlZddlZddlmZ ddl	m
Z ddlmZ ddlmZ  G d„ d«      Z G d„ d«      Z G d	„ d
«      Zej(                  ej*                  ej,                  gZg d¢Z G d„ d«      Z G d„ d«      Zd„ Z G d„ d«      Z G d„ d«      Z G d„ d«      Zej>                  jA                  d«       edg¬«      d„ «       «       Z!d„ Z"d„ Z#d„ Z$y)z#Catch all for categorical functionsé    N)ÚAxes)Úcheck_figures_equalc                   óp  — e Zd Zddgdgffddgdgffdg d¢g d¢ffgZ eeŽ \  ZZej                  j                  d	ee¬
«      d„ «       Z
d„ Zddej                  fdddgfdddgfgZ eeŽ \  ZZej                  j                  dee¬
«      d„ «       Zej                  j                  dee¬
«      d„ «       Zy)ÚTestUnitDataÚsingleúhello worldr   Úunicodeõ   Ð—Ð´Ñ€Ð°Ð²Ñ�Ñ‚Ð²ÑƒÐ¹Ñ‚Ðµ Ð¼Ð¸Ñ€Úmixed)ÚAznp.nanÚBz3.14õ   Ð¼Ð¸Ñ€)r   é   é   é   é   z
data, locs©Úidsc                 óÎ   — t        j                  |«      }t        |j                  j	                  «       «      |k(  sJ ‚t        |j                  j                  «       «      |k(  sJ ‚y ©N)ÚcatÚUnitDataÚlistÚ_mappingÚkeysÚvalues)ÚselfÚdataÚlocsÚunits       ú\/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/matplotlib/tests/test_category.pyÚ	test_unitzTestUnitData.test_unit   sP   € ä�|‰|˜DÓ!ˆÜ�D—M‘M×&Ñ&Ó(Ó)¨TÒ1Ð1Ð1Ü�D—M‘M×(Ñ(Ó*Ó+¨tÒ3Ð3Ñ3ó    c                 ó¸  — ddg}ddg}g d¢}g d¢}g d¢}t        j                  |«      }t        |j                  j	                  «       «      |k(  sJ ‚t        |j                  j                  «       «      |k(  sJ ‚|j                  |«       t        |j                  j	                  «       «      |k(  sJ ‚t        |j                  j                  «       «      |k(  sJ ‚y )NÚaÚdr   r   )Úbr&   Úe)r%   r&   r'   r(   )r   r   r   r   )r   r   r   r   r   r   Úupdate)r   r   r   Údata_updateÚunique_dataÚupdated_locsr    s          r!   Útest_updatezTestUnitData.test_update   s½   € Ø�SˆzˆØ�1ˆvˆâ%ˆÚ*ˆÚ#ˆä�|‰|˜DÓ!ˆÜ�D—M‘M×&Ñ&Ó(Ó)¨TÒ1Ð1Ð1Ü�D—M‘M×(Ñ(Ó*Ó+¨tÒ3Ð3Ð3à�‰�KÔ Ü�D—M‘M×&Ñ&Ó(Ó)¨[Ò8Ð8Ð8Ü�D—M‘M×(Ñ(Ó*Ó+¨|Ò;Ð;Ñ;r#   )Únumberç…ëQ¸	@Únanr   r/   é   z
mixed typer   r   Úfdatac                 óŠ   — t        j                  t        «      5  t        j                  |«       d d d «       y # 1 sw Y   y xY wr   )ÚpytestÚraisesÚ	TypeErrorr   r   )r   r2   s     r!   Útest_non_string_failsz"TestUnitData.test_non_string_fails0   s/   € ä�]‰]œ9Ó%ñ 	 Ü�L‰L˜Ô÷	 ÷ 	 ñ 	 ús	   š9¹Ac                 óª   — t        j                  «       }t        j                  t        «      5  |j                  |«       d d d «       y # 1 sw Y   y xY wr   )r   r   r4   r5   r6   r)   )r   r2   Úunitdatas      r!   Útest_non_string_update_failsz)TestUnitData.test_non_string_update_fails5   s:   € ä—<‘<“>ˆÜ�]‰]œ9Ó%ñ 	#Ø�O‰O˜EÔ"÷	#÷ 	#ñ 	#ús   ®A	Á	AN)Ú__name__Ú
__module__Ú__qualname__Ú
test_casesÚzipr   r   r4   ÚmarkÚparametrizer"   r-   Únpr0   Úfailing_test_casesÚfidsr2   r7   r:   © r#   r!   r   r      s  „ Ø˜}˜o°¨sÐ3Ð4ØÐ AÐBÀQÀCÐHÐIØÒCÚ,ð.ð /ð0€Jñ �ZÐ �I€Cˆà‡[�[×Ñ˜\¨4°SÐÓ9ñ4ó :ð4ò
<ð  +¨U°B·F±F¨OØ! D¨" :Ð.°ÀÀQ¸xÐ0HðJÐñ �zÐ"�K€Dˆ%à‡[�[×Ñ˜W e°ÐÓ6ñ ó 7ð ð ‡[�[×Ñ˜W e°ÐÓ6ñ#ó 7ñ#r#   r   c                   ó   — e Zd Zd„ Zy)ÚFakeAxisc                 ó   — || _         y r   )Úunits)r   rI   s     r!   Ú__init__zFakeAxis.__init__=   s	   € Øˆ�
r#   N)r;   r<   r=   rJ   rE   r#   r!   rG   rG   <   s   „ ór#   rG   c                   ó®  — e Zd ZdZddgfddgfdg d¢fdd	d
gfdg d¢fgZ eeŽ \  ZZdddej                  gfdddgfgZ
 ee
Ž \  ZZ ej                  d¬«      d„ «       Zej                   j#                  dee¬«      d„ «       Zej                   j#                  dddgddg¬«      d„ «       Zej                   j#                  dee¬«      d„ «       Zd„ Zd „ Zy!)"ÚTestStrCategoryConverterz¦
    Based on the pandas conversion and factorization tests:

    ref: /pandas/tseries/tests/test_converter.py
         /pandas/tests/test_algos.py:TestFactorize
    r	   r
   Úasciir   r   ©r%   r'   Úczinteger stringÚ1Ú2zsingle + values>10)r   r   ÚCÚDÚEÚFÚGÚHÚIÚJÚKÚLÚMÚNÚOÚPÚQÚRÚSÚTÚUÚVÚWÚXÚYÚZr   r/   r   ústring integerÚ42é*   T)Úautousec                 óœ   — t        j                  «       | _        t        j                  «       | _        t        | j                  «      | _        y r   )r   ÚStrCategoryConverterÚccr   r    rG   Úax)r   Úrequests     r!   Ú	mock_axisz"TestStrCategoryConverter.mock_axisX   s/   € ä×*Ñ*Ó,ˆŒä—L‘L“NˆŒ	Ü˜4Ÿ9™9Ó%ˆ�r#   Úvalsr   c                 óÚ   — t         j                  j                  | j                  j	                  || j
                  j                  | j
                  «      t        t        |«      «      «       y r   )	rB   ÚtestingÚassert_allcloserp   Úconvertrq   rI   ÚrangeÚlen)r   rt   s     r!   Útest_convertz%TestStrCategoryConverter.test_convert_   sB   € ä
�
‰
×"Ñ" 4§7¡7§?¡?°4¸¿¹¿¹Ø37·7±7ó$<ä#(¬¨T«Ó#3õ	5r#   ÚvalueÚhir   c                 óp   — | j                   j                  || j                  | j                  «      dk(  sJ ‚y )Nr   )rp   rx   r    rq   )r   r|   s     r!   Útest_convert_one_stringz0TestStrCategoryConverter.test_convert_one_stringe   s)   € à�w‰w�‰˜u d§i¡i°·±Ó9¸QÒ>Ð>Ñ>r#   Úfvalsc                 óÂ   — t        j                  t        «      5  | j                  j	                  || j
                  | j                  «       d d d «       y # 1 sw Y   y xY wr   )r4   r5   r6   rp   rx   r    rq   )r   r€   s     r!   Útest_convert_failz*TestStrCategoryConverter.test_convert_faili   s?   € ä�]‰]œ9Ó%ñ 	7Ø�G‰G�O‰O˜E 4§9¡9¨d¯g©gÔ6÷	7÷ 	7ñ 	7ús   š2AÁAc                 óü   — | j                   j                  | j                  | j                  «      }t	        |j
                  t        j                  «      sJ ‚t	        |j                  t        j                  «      sJ ‚y r   )
rp   Úaxisinfor    rq   Ú
isinstanceÚmajlocr   ÚStrCategoryLocatorÚmajfmtÚStrCategoryFormatter)r   Úaxiss     r!   Útest_axisinfoz&TestStrCategoryConverter.test_axisinfon   sT   € Ø�w‰w×Ñ §	¡	¨4¯7©7Ó3ˆÜ˜$Ÿ+™+¤s×'=Ñ'=Ô>Ð>Ð>Ü˜$Ÿ+™+¤s×'?Ñ'?Ô@Ð@Ñ@r#   c                 ó†   — t        | j                  j                  dg| j                  «      t        j
                  «      sJ ‚y )Nr%   )r…   rp   Údefault_unitsrq   r   r   ©r   s    r!   Útest_default_unitsz+TestStrCategoryConverter.test_default_unitss   s-   € Ü˜$Ÿ'™'×/Ñ/°°°t·w±wÓ?ÄÇÁÔNÐNÑNr#   N)r;   r<   r=   Ú__doc__r>   r?   r   r   rB   ÚinfrC   rD   Úfvaluesr4   Úfixturers   r@   rA   r{   r   r‚   r‹   r�   rE   r#   r!   rL   rL   A   sD  „ ñð Ð@ÐAÐBØ˜]˜OÐ,Øš_Ð-Ø# c¨3 ZÐ0Ø'ò *Cð Dð	E€Jñ �zÐ"�K€Cˆà" T¨3°·±Ð$7Ð8Ø+¨d°B¨ZÐ8ð:Ðñ Ð+Ð,�M€Dˆ'à€V‡^�^˜DÔ!ñ&ó "ð&ð ‡[�[×Ñ˜V V°ÐÓ5ñ5ó 6ð5ð
 ‡[�[×Ñ˜W t¨XÐ&6¸WÀiÐ<PÐÓQñ?ó Rð?ð ‡[�[×Ñ˜W g°4ÐÓ8ñ7ó 9ð7òAó
Or#   rL   )ÚscatterÚplotÚbarc                   óZ   — e Zd Zd„ Zej
                  j                  dee¬«      d„ «       Z	y)ÚTestStrCategoryLocatorc                 ó  — g d¢}t        j                  |D �cg c]  }t        |«      ‘Œ c}«      }t        j                  |j                  «      }t
        j                  j                  |j                  d d «      |«       y c c}w )N)r   r   r   r   r   é   é   é   é   é	   é
   )	r   r   Ústrr‡   r   rB   rv   Úassert_array_equalÚtick_values)r   r   Újr    Útickss        r!   Útest_StrCategoryLocatorz.TestStrCategoryLocator.test_StrCategoryLocator|   s^   € Ú1ˆÜ�|‰|¨TÖ2¨œS �VÒ2Ó3ˆÜ×&Ñ& t§}¡}Ó5ˆÜ
�
‰
×%Ñ% e×&7Ñ&7¸¸dÓ&CÀTÕJùò 3s   ˜BÚplotterr   c                 óú   — t        j                  «       j                  «       } ||g d¢g d¢«       t        j                  j                  |j                  j                  j                  «       t        d«      «       y )N)r   r   r   rN   r   )
ÚpltÚfigureÚsubplotsrB   rv   r¡   ÚyaxisÚmajorÚlocatorry   ©r   r¦   rq   s      r!   Útest_StrCategoryLocatorPlotz2TestStrCategoryLocator.test_StrCategoryLocatorPlot‚   sK   € ä�Z‰Z‹\×"Ñ"Ó$ˆÙ�’IšÔ/Ü
�
‰
×%Ñ% b§h¡h§n¡n×&<Ñ&<Ó&>ÄÀaÃÕIr#   N)
r;   r<   r=   r¥   r4   r@   rA   Ú	PLOT_LISTÚPLOT_IDSr¯   rE   r#   r!   r˜   r˜   {   s5   „ òKð ‡[�[×Ñ˜Y¨	°xÐÓ@ñJó AñJr#   r˜   c                   ó  — e Zd Zdg d¢fdddgfgZ eeŽ \  ZZej                  j                  dee¬«      d„ «       Z
ej                  j                  dee¬«      ej                  j                  d	ee¬«      d
„ «       «       Zy)ÚTestStrCategoryFormatterrM   )ÚhelloÚworldr}   r	   õ   Ð—Ð´Ñ€Ð°Ð²Ñ�Ñ‚Ð²ÑƒÐ¹Ñ‚Ðµõ   Ð¿Ñ€Ð¸Ð²ÐµÑ‚Úydatar   c                 óÊ   — t        j                  |«      }t        j                  |j                  «      }t	        |«      D ]!  \  }} |||«      |k(  sJ ‚ ||d «      |k(  rŒ!J ‚ y r   )r   r   r‰   r   Ú	enumerate)r   r¸   r    ÚlabelsÚir&   s         r!   Útest_StrCategoryFormatterz2TestStrCategoryFormatter.test_StrCategoryFormatter�   sd   € ä�|‰|˜EÓ"ˆÜ×)Ñ)¨$¯-©-Ó8ˆÜ˜eÓ$ò 	(‰DˆAˆqÙ˜!˜Q“< 1Ò$Ð$Ð$Ù˜!˜T“? aÓ'Ð'Ð'ñ	(r#   r¦   c                 óT  — t        j                  «       j                  «       } ||t        t	        |«      «      |«       t        |«      D ]/  \  }}|j                  j                  j                  |«      |k(  rŒ/J ‚ |j                  j                  j                  dz   «      dk(  sJ ‚y )Nr   Ú )	r¨   r©   rª   ry   rz   rº   r«   r¬   Ú	formatter)r   r¸   r¦   rq   r¼   r&   s         r!   Útest_StrCategoryFormatterPlotz6TestStrCategoryFormatter.test_StrCategoryFormatterPlot—   s‹   € ô �Z‰Z‹\×"Ñ"Ó$ˆÙ�”Eœ#˜e›*Ó% uÔ-Ü˜eÓ$ò 	4‰DˆAˆqØ—8‘8—>‘>×+Ñ+¨AÓ.°!Ó3Ð3Ð3ð	4à�x‰x�~‰~×'Ñ'¨¨!©Ó,°Ò2Ð2Ñ2r#   N)r;   r<   r=   r>   r?   r   Úcasesr4   r@   rA   r½   r°   r±   rÁ   rE   r#   r!   r³   r³   ‰   s¢   „ ØÒ4Ð5ØÐ9¸>ÐJÐKðM€Jñ �jÐ!�J€Cˆà‡[�[×Ñ˜W e°ÐÓ5ñ(ó 6ð(ð ‡[�[×Ñ˜W e°ÐÓ5Ø‡[�[×Ñ˜Y¨	°xÐÓ@ñ3ó Aó 6ñ3r#   r³   c                 óR  — t        t        t        |«      «      «      }t        j                  j                  | j                  «       |«       |D �cg c]  }| j                  j                  ||«      ‘Œ  }}||D �cg c]!  }t        j                  j                  |«      ‘Œ# c}k(  sJ ‚t        | j                  j                  j                  «       «      |D �cg c]  }|‘Œ c}k(  sJ ‚t        | j                  j                  j                  «       «      |k(  sJ ‚y c c}w c c}w c c}w r   )r   ry   rz   rB   rv   r¡   Úget_majorticklocsr¬   rÀ   r   r‰   Ú_textrI   r   r   r   )rŠ   r»   r¤   r¼   Úgraph_labelsÚls         r!   Ú	axis_testrÈ   ¡   sâ   € Ü””s˜6“{Ó#Ó$€EÜ‡J�J×!Ñ! $×"8Ñ"8Ó":¸EÔBØ8=Ö>°1�D—J‘J×(Ñ(¨¨AÕ.Ð>€LÐ>àÀvÖNÀ!œC×4Ñ4×:Ñ:¸1Õ=ÒNÒNÐNÐNÜ�—
‘
×#Ñ#×(Ñ(Ó*Ó+¸6Ö/B°a²Ò/BÒBÐBÐBÜ�—
‘
×#Ñ#×*Ñ*Ó,Ó-°Ò6Ð6Ñ6ùò	 ?ùâNùÚ/Bs   Á#DÁ:&DÃ	D$c                   óè   — e Zd Zdg d¢fdg d¢fd ej                  g d¢«      fgZ eeŽ \  ZZe	j                  j                  dee¬«      e	j                  j                  dee¬«      d	„ «       «       Zy
)ÚTestPlotBytesústring listrN   ú
bytes list)ó   aó   bó   cúbytes ndarrayr¦   r   Úbdatac                 ó¶   — t        j                  «       j                  «       }t        j                  g d¢«      } ||||«       t        |j                  |«       y ©N)r   r›   rš   ©r¨   r©   rª   rB   ÚarrayrÈ   Úxaxis)r   r¦   rÑ   rq   Úcountss        r!   Útest_plot_byteszTestPlotBytes.test_plot_bytes²   ó@   € ô �Z‰Z‹\×"Ñ"Ó$ˆÜ—‘š)Ó$ˆÙ��E˜6Ô"Ü�"—(‘(˜EÕ"r#   N)r;   r<   r=   rB   rÕ   Úbytes_casesr?   Ú	bytes_idsÚ
bytes_datar4   r@   rA   r°   r±   rØ   rE   r#   r!   rÊ   rÊ   «   sˆ   „ Ø!¢?Ð3Ø Ò"4Ð5Ø# X R§X¡XÒ.@Ó%AÐBðD€Kñ   Ð-Ñ€Iˆzà‡[�[×Ñ˜Y¨	°xÐÓ@Ø‡[�[×Ñ˜W j°iÐÓ@ñ#ó Aó Añ#r#   rÊ   c                   ó  — e Zd Zdg d¢fd ej                  g d¢«      fdg d¢fd ej                  g d¢«      fgZ eeŽ \  ZZe	j                  j                  dee¬«      e	j                  j                  d	ee¬«      d
„ «       «       Zy)ÚTestPlotNumlikerË   )rP   Ú11Ú3zstring ndarrayrÌ   )ó   1s   11ó   3rÐ   r¦   r   Úndatac                 ó¶   — t        j                  «       j                  «       }t        j                  g d¢«      } ||||«       t        |j                  |«       y rÓ   rÔ   )r   r¦   rã   rq   r×   s        r!   Útest_plot_numlikez!TestPlotNumlike.test_plot_numlikeÂ   rÙ   r#   N)r;   r<   r=   rB   rÕ   Únumlike_casesr?   Únumlike_idsÚnumlike_datar4   r@   rA   r°   r±   rå   rE   r#   r!   rÞ   rÞ   »   s�   „ Ø#Ò%5Ð6Ø&¨¨¯©Ò1AÓ(BÐCØ"Ò$7Ð8Ø% x r§x¡xÒ0CÓ'DÐEðG€Mñ !$ ]Ð 3Ñ€K�à‡[�[×Ñ˜Y¨	°xÐÓ@Ø‡[�[×Ñ˜W l¸ÐÓDñ#ó Eó Añ#r#   rÞ   c                   ó@  — e Zd Zej                  j                  dee¬«      d„ «       Zej                  d„ «       Z
ej                  j                  d«      ej                  j                  dee¬«      d„ «       «       Zej                  j                  d«      ej                  j                  dee¬«      d„ «       «       Zej                  j                  d«      ej                  j                  dee¬«      d„ «       «       Zej                  j                  dee¬«      d	„ «       Zd
„ Zdddgfdddgfdddgfddej$                  gfgZ eeŽ \  ZZej0                  ej2                   ej4                  ej6                  ej                  j8                  ¬«      gZej                  j                  de«      ej                  j                  dee¬«      d„ «       «       Zej                  j                  de«      ej                  j                  dee¬«      d„ «       «       Zy)ÚTestPlotTypesr¦   r   c                 ó”   — t        j                  «       j                  «       }ddg} |||ddg«       t        |j                  |«       y )Nr¶   r·   r   r   )r¨   r©   rª   rÈ   rÖ   )r   r¦   rq   Úwordss       r!   Útest_plot_unicodezTestPlotTypes.test_plot_unicodeÌ   s>   € ä�Z‰Z‹\×"Ñ"Ó$ˆØ+¨^Ð<ˆÙ��E˜A˜q˜6Ô"Ü�"—(‘(˜EÕ"r#   c                 óL   — g d¢| _         g d¢| _        g d¢| _        g d¢| _        y )N)r´   Úhappyrµ   )r   r›   r   )ÚPythonÚisÚfun)r   r   rš   )ÚxÚxyÚyÚyxrŽ   s    r!   Ú	test_datazTestPlotTypes.test_dataÓ   s   € â,ˆŒÚˆŒÚ(ˆŒÚˆ�r#   r÷   c                 óÄ   — t        j                  «       j                  «       } ||| j                  | j                  «       t        |j                  | j                  «       y r   )r¨   r©   rª   ró   rô   rÈ   rÖ   ©r   r÷   r¦   rq   s       r!   Útest_plot_xaxiszTestPlotTypes.test_plot_xaxisÚ   s>   € ô �Z‰Z‹\×"Ñ"Ó$ˆÙ��D—F‘F˜DŸG™GÔ$Ü�"—(‘(˜DŸF™FÕ#r#   c                 óÄ   — t        j                  «       j                  «       } ||| j                  | j                  «       t        |j                  | j                  «       y r   )r¨   r©   rª   rö   rõ   rÈ   r«   rù   s       r!   Útest_plot_yaxiszTestPlotTypes.test_plot_yaxisá   s>   € ô �Z‰Z‹\×"Ñ"Ó$ˆÙ��D—G‘G˜TŸV™VÔ$Ü�"—(‘(˜DŸF™FÕ#r#   c                 ó  — t        j                  «       j                  «       } ||| j                  | j                  «       t        |j                  | j                  «       t        |j                  | j                  «       y r   )r¨   r©   rª   ró   rõ   rÈ   rÖ   r«   rù   s       r!   Útest_plot_xyaxiszTestPlotTypes.test_plot_xyaxisè   sP   € ô �Z‰Z‹\×"Ñ"Ó$ˆÙ��D—F‘F˜DŸF™FÔ#Ü�"—(‘(˜DŸF™FÔ#Ü�"—(‘(˜DŸF™FÕ#r#   c                 óü   — t        j                  «       j                  «       } ||ddgddg«        ||g d¢g d¢«        ||g d¢g d¢«       t        |j                  g d	¢«       t        |j
                  g d
¢«       y ©Nr%   r'   r(   Úg)r%   r'   r&   )Úfr%   r'   )r'   rO   r&   )r  r(   r&   )r%   r'   r&   rO   )r(   r  r  r%   r'   r&   )r¨   r©   rª   rÈ   rÖ   r«   r®   s      r!   Útest_update_plotzTestPlotTypes.test_update_plotð   s`   € ä�Z‰Z‹\×"Ñ"Ó$ˆÙ��S˜#�J  c 
Ô+Ù�’O¢_Ô5Ù�’O¢_Ô5Ü�"—(‘(Ò0Ô1Ü�"—(‘(Ò:Õ;r#   c                 ó,  — t        j                  «       j                  «       }|j                  ddgddg«       |j	                  g d¢g d¢«       |j                  g d¢g d¢«       t        |j                  g d	¢«       t        |j                  g d
¢«       y r   )	r¨   r©   rª   r”   r•   r–   rÈ   rÖ   r«   )r   rq   s     r!   Ú%test_update_plot_heterogenous_plotterz3TestPlotTypes.test_update_plot_heterogenous_plotterù   sf   € Ü�Z‰Z‹\×"Ñ"Ó$ˆØ
�
‰
�C˜�:  S˜zÔ*Ø
�‰’¢Ô1Ø
�‰Š¢Ô0Ü�"—(‘(Ò0Ô1Ü�"—(‘(Ò:Õ;r#   r   r   r/   znumber integerrP   r   rj   rk   rl   ÚmissingÚ12)ÚmarksÚxdatac                 ó¼   — t        j                  «       j                  «       }t        j                  t
        «      5   |||ddg«       d d d «       y # 1 sw Y   y xY w)Nr   r   ©r¨   r©   rª   r4   r5   r6   ©r   r¦   r	  rq   s       r!   Útest_mixed_type_exceptionz'TestPlotTypes.test_mixed_type_exception  sI   € ô �Z‰Z‹\×"Ñ"Ó$ˆÜ�]‰]œ9Ó%ñ 	'Ù�B˜  1˜vÔ&÷	'÷ 	'ñ 	'ús   ¼AÁAc                 óØ   — t        j                  «       j                  «       }t        j                  t
        «      5   ||ddgddg«        |||ddg«       d d d «       y # 1 sw Y   y xY w)Nr   r   r   r   r  r  s       r!   Ú test_mixed_type_update_exceptionz.TestPlotTypes.test_mixed_type_update_exception  s]   € ô �Z‰Z‹\×"Ñ"Ó$ˆÜ�]‰]œ9Ó%ñ 	'Ù�B˜˜A˜  A Ô'Ù�B˜  1˜vÔ&÷	'÷ 	'ñ 	'ús   ¼A Á A)N) r;   r<   r=   r4   r@   rA   r°   r±   rí   r“   r÷   Úusefixturesrú   rü   rþ   r  r  rB   r0   rC   r?   rD   r’   r   r”   r–   Úparamr•   ÚxfailÚplottersr  r  rE   r#   r!   rê   rê   Ë   sA  „ Ø‡[�[×Ñ˜Y¨	°xÐÓ@ñ#ó Að#ð ‡^�^ñó ðð ‡[�[×Ñ˜[Ó)Ø‡[�[×Ñ˜Y¨	°xÐÓ@ñ$ó Aó *ð$ð
 ‡[�[×Ñ˜[Ó)Ø‡[�[×Ñ˜Y¨	°xÐÓ@ñ$ó Aó *ð$ð
 ‡[�[×Ñ˜[Ó)Ø‡[�[×Ñ˜Y¨	°xÐÓ@ñ$ó Aó *ð$ð ‡[�[×Ñ˜Y¨	°xÐÓ@ñ<ó Að<ò<ð # S¨$ KÐ0Ø+¨c°1¨XÐ6Ø+¨d°B¨ZÐ8Ø$ t¨R¯V©V nÐ5ð7Ðñ
 Ð+Ð,�M€Dˆ'à—‘˜dŸh™hØ�—‘˜TŸY™Y¨f¯k©k×.?Ñ.?Ô@ðB€Hð ‡[�[×Ñ˜Y¨Ó1Ø‡[�[×Ñ˜W g°4ÐÓ8ñ'ó 9ó 2ð'ð
 ‡[�[×Ñ˜Y¨Ó1Ø‡[�[×Ñ˜W g°4ÐÓ8ñ'ó 9ó 2ñ'r#   rê   ÚdefaultÚpng)Ú
extensionsc                 ó  — ddl m }  |ddd«      } |ddd«      } |ddd«      } |ddd«      }| j                  «       }|j                  «       }t        ||gi t        d d ¬«      f«      D ]•  \  }	}
 |	j                  ||gd	d
gfi |
¤Ž |	j
                  j                  }|	j                  j                  } |	j                  ||gd	d
gfi |
¤Ž ||	j
                  j                  u sJ ‚||	j                  j                  u rŒ•J ‚ y )Nr   )Údatetimeiâ  r   r   r   r   )ÚxunitsÚyunitsÚV1ÚV2)r  rª   r?   Údictr•   rÖ   rI   r«   )Úfig_testÚfig_refr  Út0Út1Út2Út3Úax_testÚax_refrq   ÚkwargsÚx_unitsÚy_unitss                r!   Útest_overriding_units_in_plotr)    s  € õ "á	�$˜˜1Ó	€BÙ	�$˜˜1Ó	€BÙ	�$˜˜1Ó	€BÙ	�$˜˜1Ó	€Bà×ÑÓ!€GØ×ÑÓ€FÜ˜7 FÐ+Øœt¨4¸Ô=Ð>ó@ò 
)‰
ˆˆFð 	ˆ�‰��R�˜4 ˜,Ñ1¨&Ò1Ø—(‘(—.‘.ˆØ—(‘(—.‘.ˆàˆ�‰��R�˜4 ˜,Ñ1¨&Ò1à˜"Ÿ(™(Ÿ.™.Ñ(Ð(Ð(Ø˜"Ÿ(™(Ÿ.™.Ò(Ð(Ð(ñ
)r#   c                  ó�   — t        j                  «       \  } }|j                  j                  ddg«       |j	                  g g «       y)zQ
    Smoke test to check that no deprecation warning is emitted. See #22640.
    r%   r'   N)r¨   rª   rÖ   Úupdate_unitsr•   ©r  rq   s     r!   Ú!test_no_deprecation_on_empty_datar-  4  s6   € ô �L‰L‹N�E€A€rØ‡H�H×Ñ˜3 ˜*Ô%Ø‡G�GˆB�…Or#   c                  óÆ   — t        j                  «       \  } }|j                  g d¢«      \  }}}|j                  dk(  sJ ‚t        j
                  j                  |g d¢«       y )N)r%   r'   r%   rO   Úff)rŸ   )
g       @ç        r0  ç      ð?r0  r0  r1  r0  r0  r1  )r¨   rª   ÚhistÚshaperB   rv   rw   )Úfigrq   ÚnÚbinsÚpatchess        r!   Ú	test_histr8  =  sN   € Ü�l‰l‹n�G€CˆØ—w‘wÒ9Ó:Ñ€A€tˆWØ�7‰7�eÒÐÐÜ‡J�J×Ñ˜qÒ"JÕKr#   c                  óÔ   — t        j                  «       \  } }|j                  g d¢g d¢«       t        j                  «       5  |j                  dd«       d d d «       y # 1 sw Y   y xY w)N)r%   r'   rO   r&   )r   r   r   r   r'   rO   )r¨   rª   r•   ÚwarningsÚcatch_warningsÚset_xlimr,  s     r!   Útest_set_limr=  D  sQ   € ô �L‰L‹N�E€A€rØ‡G�GÒ ¢,Ô/Ü	×	 Ñ	 Ó	"ñ Ø
�‰�C˜Ô÷÷ ñ ús   ÁAÁA')%r�   r:  r4   ÚnumpyrB   Ú
matplotlibÚmplÚmatplotlib.axesr   Úmatplotlib.pyplotÚpyplotr¨   Úmatplotlib.categoryÚcategoryr   Úmatplotlib.testing.decoratorsr   r   rG   rL   r”   r•   r–   r°   r±   r˜   r³   rÈ   rÊ   rÞ   rê   ÚstyleÚcontextr)  r-  r8  r=  rE   r#   r!   ú<module>rI     sß   ðÙ )Û ã Û ã Ý  Ý Ý !Ý =÷+#ñ +#÷\ñ ÷
3Oñ 3Oðl �\‰\˜4Ÿ9™9 d§h¡hÐ/€	Ú%€÷Jñ J÷3ñ 3ò07÷#ñ #÷ #ñ #÷ M'ñ M'ð` ‡�×Ñ�9ÓÙ  Ô(ñ)ó )ó ð)ò.òLór#   