Ë
    íÍ:j´A  ã                   ó*  — d dl 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
mZ d dlm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„ 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"„ Z+d#„ Z,d$„ Z-d%„ Z.d&„ Z/d'„ Z0y)(é    N)ÚPath)Úsubprocess_run_for_testing)Úpyplotc           
      ó˜  — t        j                  dd¬«       t        t        j                  «      j
                  d   dz  }|j                  «       st        j                  d«       t        t        j                  «      j                  «       }| dz  }|j                  |d«       t        t        j                  t        |«      t        |«      gd	¬
«       |j                  d«      }||k7  radj                  t!        j"                  |j%                  d«      |j%                  d«      dddd¬«      «      }t        j&                  d|z  «       y y )NÚblackz24.1)Ú
minversioné   ztools/boilerplate.pyzboilerplate.py not foundz	pyplot.pyzutf-8T)Úcheckú
zfound pyplot.pyzexpected pyplot.pyr   Ú )ÚfromfileÚtofileÚnÚlinetermzøpyplot.py is not up-to-date. Please run 'python tools/boilerplate.py' to update pyplot.py. This needs to be done from an environment where your current working copy is installed (e.g. 'pip install -e'd). Here is a diff of unexpected differences:
%s)ÚpytestÚimportorskipr   ÚmplÚ__file__ÚparentsÚexistsÚskipÚpltÚ	read_textÚ
write_textr   ÚsysÚ
executableÚstrÚjoinÚdifflibÚunified_diffÚsplitÚfail)Útmp_pathÚ
gen_scriptÚorig_contentsÚplt_fileÚnew_contentsÚdiff_msgs         úq/home/mcse/projects/srt_converter/srt-converter-venv/lib/python3.12/site-packages/matplotlib/tests/test_pyplot.pyÚtest_pyplot_up_to_dater*      s  € Ü
×Ñ˜¨FÕ3ä”c—l‘lÓ#×+Ñ+¨AÑ.Ð1GÑG€JØ×ÑÔÜ�‰Ð.Ô/ÜœŸ™Ó&×0Ñ0Ó2€MØ˜+Ñ%€HØ×Ñ˜ wÔ/äÜ	�‰œ˜Z›¬#¨h«-Ð8Øõð ×%Ñ% gÓ.€Là˜Ò$Ø—9‘9Ü× Ñ Ø×#Ñ# DÓ)¨<×+=Ñ+=¸dÓ+CØ*Ø+Ø˜bô	"ó#ˆô 	�‰ð<ð ?Gñ	Gõ	
ð %ó    c                 ó`  — t         j                  j                  t         j                  dd«      t         j                  j	                  t         j                  d«      d
d„«       «       }t        j                  |«      d
d„«       } |d «        |d ¬«        |d d ¬«        |d d ¬«       | rJ ‚t        j                  t         j                  «      5   |d ¬	«       d d d «       t        j                  t         j                  «      5   |d d «       d d d «       y # 1 sw Y   Œ?xY w# 1 sw Y   y xY w)NÚoldÚnewÚkwoc                  ó   — y ©N© ©r.   r/   s     r)   Úfuncz1test_copy_docstring_and_deprecators.<locals>.func/   s   € ð 	r+   c                  ó   — y r1   r2   r3   s     r)   Úwrapper_funcz9test_copy_docstring_and_deprecators.<locals>.wrapper_func4   s   € àr+   )r.   )r/   r3   )r-   r1   )
r   Ú_apiÚrename_parameterÚ__version__Úmake_keyword_onlyr   Ú_copy_docstring_and_deprecatorsr   ÚwarnsÚMatplotlibDeprecationWarning)Úrecwarnr4   r6   s      r)   Ú#test_copy_docstring_and_deprecatorsr?   .   sú   € Ü‡X�X×ÑœsŸ™°°uÓ=Ü‡X�X×Ñ¤§¡°Ó7òó 8ó >ðô 	×(Ñ(¨Ó.òó /ðñ �ÔÙ�TÕÙ�˜4Õ Ù�T˜tÕ$ÙÐˆ;Ü	�‰”c×6Ñ6Ó	7ñ Ù˜Õ÷ä	�‰”c×6Ñ6Ó	7ñ !Ù�T˜4Ô ÷!ð !÷ð ú÷!ð !ús   Ã
DÄ
D$ÄD!Ä$D-c                  óf  — t        j                  «       \  } }t        j                  d«       |j                  «       rJ ‚t        j                  d«       |j                  «       sJ ‚t        j                  «        |j                  «       rJ ‚t        j                  «        |j                  «       sJ ‚y )NFT)r   ÚsubplotsÚboxÚget_frame_on)ÚfigÚaxs     r)   Útest_pyplot_boxrF   C   sy   € Ü�l‰l‹n�G€CˆÜ‡G�GˆE„NØ�‰Ô Ð Ð Ü‡G�GˆD„MØ�?‰?ÔÐÐÜ‡G�G„IØ�‰Ô Ð Ð Ü‡G�G„IØ�?‰?ÔÐÑr+   c                  ó8   — t        j                  g d¢g d¢«       y )N)é   r	   é   )r   Ú	stackplotr2   r+   r)   Útest_stackplot_smokerK   O   s   € ä‡M�M’)šYÕ'r+   c                  ó  — t        j                  t        «      5  t        j                  d¬«       d d d «       t        j                  t        «      5  t        j                  d¬«       d d d «       y # 1 sw Y   ŒBxY w# 1 sw Y   y xY w)NrH   )Únrows)Úncols)r   ÚraisesÚ	TypeErrorr   Úsubplotr2   r+   r)   Útest_nrows_errorrR   T   sa   € Ü	�‰”yÓ	!ñ Ü�‰˜!Õ÷ä	�‰”yÓ	!ñ Ü�‰˜!Õ÷ð ÷ð ú÷ð ús   šA2ÁA>Á2A;Á>Bc                  ó  — t        j                  «        t        j                  «       sJ ‚t        j                  «       5  t        j                  «       rJ ‚	 d d d «       t        j                  «       sJ ‚t        j                  «        t        j                  «       rJ ‚t        j                  «       5  t        j                  «       rJ ‚	 d d d «       t        j                  «       rJ ‚y # 1 sw Y   Œ”xY w# 1 sw Y   Œ,xY wr1   )r   Úionr   Úis_interactiveÚioffr2   r+   r)   Ú	test_ioffrW   [   sÅ   € Ü‡G�G„IÜ×ÑÔÐÐÜ	�‰‹ñ (Ü×%Ñ%Ô'Ð'Ð'Ð'÷(ä×ÑÔÐÐä‡H�H„JÜ×!Ñ!Ô#Ð#Ð#Ü	�‰‹ñ (Ü×%Ñ%Ô'Ð'Ð'Ð'÷(ä×!Ñ!Ô#Ð#Ð#Ð#÷(ð (ú÷(ð (úó   ¿C*Â3C6Ã*C3Ã6C?c                  ó  — t        j                  «        t        j                  «       rJ ‚t        j                  «       5  t        j                  «       sJ ‚	 d d d «       t        j                  «       rJ ‚t        j                  «        t        j                  «       sJ ‚t        j                  «       5  t        j                  «       sJ ‚	 d d d «       t        j                  «       sJ ‚y # 1 sw Y   Œ”xY w# 1 sw Y   Œ,xY wr1   )r   rV   r   rU   rT   r2   r+   r)   Útest_ionrZ   i   s¼   € Ü‡H�H„JÜ×!Ñ!Ô#Ð#Ð#Ü	�‰‹ñ $Ü×!Ñ!Ô#Ð#Ñ#÷$ä×!Ñ!Ô#Ð#Ð#ä‡G�G„IÜ×ÑÔÐÐÜ	�‰‹ñ $Ü×!Ñ!Ô#Ð#Ñ#÷$ä×ÑÔÐÑ÷$ð $ú÷$ð $úrX   c                  óZ  — t        j                  «        t        j                  «       5  t        j                  «       rJ ‚t        j                  «       5  t        j                  «       sJ ‚	 d d d «       t        j                  «       rJ ‚	 d d d «       t        j                  «       sJ ‚t        j                  «       5  t        j                  «       5  t        j                  «       rJ ‚	 d d d «       d d d «       t        j                  «       sJ ‚t        j                  «       5  t        j                  «        d d d «       t        j                  «       sJ ‚t        j                  «        t        j                  «       5  t        j                  «       sJ ‚t        j                  «       5  t        j                  «       rJ ‚	 d d d «       t        j                  «       sJ ‚	 d d d «       t        j                  «       rJ ‚t        j                  «       5  t        j                  «       5  t        j                  «       sJ ‚	 d d d «       d d d «       t        j                  «       rJ ‚t        j                  «       5  t        j                  «        d d d «       t        j                  «       rJ ‚y # 1 sw Y   �ŒDxY w# 1 sw Y   �Œ2xY w# 1 sw Y   �ŒàxY w# 1 sw Y   �ŒåxY w# 1 sw Y   �Œ«xY w# 1 sw Y   �Œ/xY w# 1 sw Y   �ŒxY w# 1 sw Y   ŒÊxY w# 1 sw Y   ŒÎxY w# 1 sw Y   Œ“xY wr1   )r   rT   rV   r   rU   r2   r+   r)   Útest_nested_ion_ioffr\   w   sm  € ä‡G�G„Iô 
�‰‹ñ (Ü×%Ñ%Ô'Ð'Ð'Ü�W‰W‹Yñ 	(Ü×%Ñ%Ô'Ð'Ñ'÷	(ä×%Ñ%Ô'Ð'Ð'Ð'÷	(ô
 ×ÑÔÐÐô 
�‰‹ñ ,Ü�X‰X‹Zñ 	,Ü×)Ñ)Ô+Ð+Ð+Ð+÷	,÷,ô ×ÑÔÐÐä	�‰‹ñ Ü�‰Œ
÷ä×ÑÔÐÐô ‡H�H„Jô 
�‰‹ñ $Ü×!Ñ!Ô#Ð#Ð#Ü�X‰X‹Zñ 	,Ü×)Ñ)Ô+Ð+Ð+Ð+÷	,ä×!Ñ!Ô#Ð#Ñ#÷	$ô
 ×!Ñ!Ô#Ð#Ð#ô 
�‰‹ñ (Ü�W‰W‹Yñ 	(Ü×%Ñ%Ô'Ð'Ñ'÷	(÷(ô ×!Ñ!Ô#Ð#Ð#ä	�‰‹ñ Ü�‰Œ	÷ä×!Ñ!Ô#Ð#Ð#Ð#÷E	(ñ 	(ú÷(ñ (ú÷	,ñ 	,ú÷,ñ ,ú÷
ñ ú÷	,ñ 	,ú÷$ñ $ú÷	(ð 	(ú÷(ð (ú÷
ð ús§   ©+J;ÁJ.Á,J;Â=KÃKÃ*KÄ$K"Å?+K<Æ*K/ÇK<ÈLÈ(L	É LÉ:L!Ê.J8	Ê3J;Ê;KËK	ËKËKË"K,Ë/K9	Ë4K<Ë<LÌ	L	ÌLÌLÌ!L*c                  ó|   — 	 t        j                  d«       y # t        $ r} t        | «      dk(  sJ ‚Y d } ~ y d } ~ ww xY w)Ngš™™™™™ñ?zT'fig' must be an instance of matplotlib.figure.Figure, int, str or None, not a float)r   ÚcloserP   r   )Úes    r)   Ú
test_closer`   £   s=   € ð$Ü�	‰	�#�øÜò $Ü�1‹vð#ò$ð 	$õ $ûð$ús   ‚ ˜	;¡6¶;c                  ó  — t        j                  d«      } | t        j                  «       u sJ ‚t        j                  d«      }|t        j                  «       u sJ ‚t        j                  d«      }| t        j                  «       u sJ ‚| |u sJ ‚y )Néy   éz   )r   rQ   Úgca©Úax1Úax2Úax3s      r)   Útest_subplot_reuseri   ¬   st   € Ü
�+‰+�cÓ
€CØ”#—'‘'“)ÑÐÐÜ
�+‰+�cÓ
€CØ”#—'‘'“)ÑÐÐÜ
�+‰+�cÓ
€CØ”#—'‘'“)ÑÐÐØ�#‰:Ð‰:r+   c                  óN  — t        j                  «        t        j                  «       } t        j                  «       }| €J ‚|| usJ ‚t        j                  «        t        j                  «        t        j                  d¬«      } t        j                  d¬«      }| €J ‚|| usJ ‚t        j                  «        t        j                  «        t        j                  d¬«      } t        j                  «       }| €J ‚|j                  dk(  sJ ‚|| usJ ‚t        j                  «        y )NÚpolar©Ú
projectionÚrectilinear)r   ÚfigureÚaxesr^   Úname©rE   rf   s     r)   Útest_axes_kwargsrs   ¶   s×   € ä‡J�J„LÜ	�‰‹€BÜ
�(‰(‹*€CØˆ>Ðˆ>Ø�b‰=Ðˆ=Ü‡I�I„Kä‡J�J„LÜ	�‰˜WÔ	%€BÜ
�(‰(˜gÔ
&€CØˆ>Ðˆ>Ø�b‰=Ðˆ=Ü‡I�I„Kä‡J�J„LÜ	�‰˜WÔ	%€BÜ
�(‰(‹*€CØˆ>Ðˆ>Ø�8‰8�}Ò$Ð$Ð$Ø�b‰=Ðˆ=Ü‡I�I…Kr+   c                  ó  — t        j                  «       } t        j                  ddd«      }t        j                  ddd«      }t        j                  ddd«      }t        j                  dddd¬«      }t        j                  dddd¬«      }|€J ‚||u sJ ‚||usJ ‚||usJ ‚||u sJ ‚|| j                  v sJ ‚|| j                  v sJ ‚|| j                  v sJ ‚|j                  dk(  sJ ‚|j                  dk(  sJ ‚|j                  dk(  sJ ‚y )NrH   r	   rk   rl   rn   )r   ro   rQ   rp   rq   )rD   rE   rf   rg   rh   Úax4s         r)   Útest_subplot_replace_projectionrv   Ï   s  € ô �*‰*‹,€CÜ	�‰�Q˜˜1Ó	€BÜ
�+‰+�a˜˜AÓ
€CÜ
�+‰+�a˜˜AÓ
€CÜ
�+‰+�a˜˜A¨'Ô
2€CÜ
�+‰+�a˜˜A¨'Ô
2€CØˆ>Ðˆ>Ø�"‰9Ðˆ9Ø�b‰=Ðˆ=Ø�b‰=Ðˆ=Ø�#‰:Ðˆ:à�—‘‰>Ðˆ>Ø�#—(‘(‰?Ðˆ?Ø�#—(‘(‰?Ðˆ?à�7‰7�mÒ#Ð#Ð#Ø�8‰8�}Ò$Ð$Ð$Ø�8‰8�wÒÐÑr+   c                  ó
  — t        j                  dd¬«      } t        j                  dd¬«      }| |u sJ ‚| j                  «        t        j                  dd¬«      }| |usJ ‚| t        j                  «       j                  vsJ ‚y )Nrk   r   )rm   Útheta_offsetrH   )r   rQ   ÚremoveÚgcfrp   re   s      r)   Útest_subplot_kwarg_collisionr{   ç   sk   € Ü
�+‰+ °qÔ
9€CÜ
�+‰+ °qÔ
9€CØ�#‰:Ðˆ:Ø‡J�J„LÜ
�+‰+ °qÔ
9€CØ�c‰>Ðˆ>Ø”c—g‘g“i—n‘nÑ$Ð$Ñ$r+   c                  ó¸   — t        j                  «        t        j                  «       } t        j                  «       }| €J ‚|| u sJ ‚t        j                  «        y r1   )r   ro   rd   r^   rr   s     r)   Útest_gcar}   ñ   s@   € ä‡J�J„LÜ	�‰‹€BÜ
�'‰'‹)€CØˆ>Ðˆ>Ø�"‰9Ðˆ9Ü‡I�I…Kr+   c                  óR  — t        j                  d«      } | t        j                  «       u sJ ‚| t        j                  d«      u sJ ‚| j                  «        t        j                  dd¬«      }|t        j                  «       u sJ ‚| t        j                  «       j
                  vsJ ‚|t        j                  d«      u sJ ‚|j                  «        t        j                  dd¬«      }|t        j                  «       u sJ ‚||usJ ‚|t        j                  «       j
                  vsJ ‚y )Néo   rk   rl   rn   )r   rQ   rd   ry   rz   rp   re   s      r)   Útest_subplot_projection_reuser€   û   sê   € ä
�+‰+�cÓ
€Cà”#—'‘'“)ÑÐÐà”#—+‘+˜cÓ"Ñ"Ð"Ð"à‡J�J„Lä
�+‰+�c gÔ
.€CØ”#—'‘'“)ÑÐÐà”c—g‘g“i—n‘nÑ$Ð$Ð$à”#—+‘+˜cÓ"Ñ"Ð"Ð"Ø‡J�J„Lô �+‰+�c mÔ
4€CØ”#—'‘'“)ÑÐÐØ�c‰>Ðˆ>Ø”c—g‘g“i—n‘nÑ$Ð$Ñ$r+   c                  ó8  — t        j                  dd¬«      } t        j                  dd¬«      }t        j                  ddd¬«      }| |u sJ ‚| |u sJ ‚t        j                  t        d¬«      5  t        j                  ddd	¬«      }d d d «       y # 1 sw Y   y xY w)
Nr   rk   rl   T)rk   )rk   rm   zpolar=True, yet projection='3d'©ÚmatchÚ3d)r   rQ   r   rO   Ú
ValueErrorre   s      r)   Ú test_subplot_polar_normalizationr†     s…   € Ü
�+‰+�c gÔ
.€CÜ
�+‰+�c Ô
&€CÜ
�+‰+�c °'Ô
:€CØ�#‰:Ðˆ:Ø�#‰:Ðˆ:ä	�‰”zØ>ô
@ñ <ä�k‰k˜# T°dÔ;ˆ÷<÷ <ñ <ús   Á.BÂBc                  ól  — t        «       } t        j                  «       }| j                  |«       d}|D ]b  }|j	                  «        t        j                  |¬«      }|t        j                  «       u sJ ‚|j
                  |k(  sJ ‚| j                  |«       Œd t        | «      dt        |«      z   k(  sJ ‚y )N)ÚaitoffÚhammerÚlambertÚ	mollweiderk   rn   r„   rl   rH   )Úsetr   rQ   Úaddry   rq   Úlen)Úcreated_axesrE   ÚprojectionsÚprojs       r)   Útest_subplot_change_projectionr’      s    € Ü“5€LÜ	�‰‹€BØ×Ñ�RÔð1€Kàò ˆØ
�	‰	ŒÜ�[‰[ DÔ)ˆØ”S—[‘[“]Ñ"Ð"Ð"Ø�w‰w˜$ŠÐˆØ×Ñ˜Õðô ˆ|Ó ¤C¨Ó$4Ñ 4Ò4Ð4Ñ4r+   c                  ó4  — t        j                  ddd«      \  } t        | t        j                  j
                  «      sJ ‚t        j                  ddd«      \  }t        |t        j                  j
                  «      sJ ‚| j                  |j                  u sJ ‚y )Ng        g      ð?Úrog…ëQ¸ù?ç      à?Úbo)r   rk   Ú
isinstancer   ÚlinesÚLine2Drp   )Úln1Úln2s     r)   Útest_polar_second_callrœ   0  st   € ä�9‰9�R˜˜TÓ"�D€CÜ�cœ3Ÿ9™9×+Ñ+Ô,Ð,Ð,ä�9‰9�T˜2˜tÓ$�D€CÜ�cœ3Ÿ9™9×+Ñ+Ô,Ð,Ð,Ø�8‰8�s—x‘xÑÐÑr+   c                  ó  — t        j                  g d¢«      } t        j                  g d¢¬«      }t        j                  j	                  |j
                  j                  «       | j
                  j                  «       «       t        j                  g d¢«      } t        j                  g d¢g d¢¬«      }t        j                  j	                  |j
                  j                  «       | j
                  j                  «       «       y )N)çš™™™™™É?rž   r•   r•   )Úposition)çš™™™™™¹?r    çš™™™™™é?r¡   )r   rp   ÚnpÚtestingÚassert_allcloseÚbboxÚ
get_points)ÚaxrefÚaxtests     r)   Útest_fallback_positionr©   :  s¥   € ä�H‰HÒ)Ó*€EÜ�X‰XÒ3Ô4€FÜ‡J�J×Ñ˜vŸ{™{×5Ñ5Ó7Ø$Ÿz™z×4Ñ4Ó6ô8ô �H‰HÒ)Ó*€EÜ�X‰XÒ*Ò5IÔJ€FÜ‡J�J×Ñ˜vŸ{™{×5Ñ5Ó7Ø$Ÿz™z×4Ñ4Ó6õ8r+   c                  ó  — t        j                  «       } | j                  d«      }t        j                  «        t        j                  «       | k7  sJ ‚t        j                  |d   «      }t        j                  «       | k(  sJ ‚|| k(  sJ ‚y )Nr	   rH   )r   ro   Ú
subfiguresrz   )Úfig1ÚsubfigsÚcurrents      r)   Ú%test_set_current_figure_via_subfigurer¯   H  sj   € Ü�:‰:‹<€DØ�o‰o˜aÓ €Gä‡J�J„LÜ�7‰7‹9˜ÒÐÐä�j‰j˜ ™Ó$€GÜ�7‰7‹9˜ÒÐÐØ�dŠ?Ð‰?r+   c                  ó4  — t        j                  «       } | j                  d«      }|d   j                  dd¬«      }|d   j                  dd¬«       t        j                  «       |k7  sJ ‚t        j
                  |«       t        j                  «       |k(  sJ ‚y )Nr	   r   rH   T)Úsqueeze)r   ro   r«   rA   rd   Úsca)rD   r­   rE   s      r)   Ú"test_set_current_axes_on_subfigurer³   T  sz   € Ü
�*‰*‹,€CØ�n‰n˜QÓ€Gà	�‰×	Ñ	˜Q¨Ð	Ó	-€BØˆA�J×Ñ˜ 4ÐÔ(ä�7‰7‹9˜Š?Ðˆ?Ü‡G�GˆB„KÜ�7‰7‹9˜Š?Ð‰?r+   c                  ó¨   — t        j                  d«      } t        j                  j	                  | j
                  dddj                  d«      d¬«       y )NÚIPythonz--pylabz-cú;)zimport matplotlib.pyplot as pltz<assert plt._REPL_DISPLAYHOOK == plt._ReplDisplayHook.IPYTHONé<   )Útimeout)r   r   r   r£   Úsubprocess_run_helperÚstart_ipythonr   )rµ   s    r)   Útest_pylab_integrationr»   `  sN   € Ü×!Ñ! )Ó,€GÜ‡K�K×%Ñ%Ø×ÑØØØ�‰ð 
ó 	ð ð &õ 	r+   c                  óª  — t        t        «      j                  dz  } | j                  «       st	        j
                  d«       d„ }| j                  «       j                  d«      }t         ||«      «      }t        t        j                  «       «      }|j                  |«      }|rt        d|›�«      ‚|j                  |«      }|rt        d|›�«      ‚y)z6Test that pyplot_summary lists all the plot functions.z#../../../doc/api/pyplot_summary.rstz#Documentation sources not availablec                 óÜ   — g }d}| D ]b  }|s|j                  d«      sŒd}Œ|r|j                  d«      rŒ.|d   j                  «       sd}ŒD|j                  |j                  «       «       Œd |S )ad  
        Return a list of all the functions that are mentioned in the
        autosummary blocks contained in *lines*.

        An autosummary block looks like this::

            .. autosummary::
               :toctree: _as_gen
               :template: autosummary.rst
               :nosignatures:

               plot
               errorbar

        Fz.. autosummary::Tz   :r   )Ú
startswithÚisspaceÚappendÚstrip)r˜   Ú	functionsÚin_autosummaryÚlines       r)   Úextract_documented_functionsz=test_doc_pyplot_summary.<locals>.extract_documented_functionst  su   € ð  ˆ	ØˆØò 	/ˆDÙ!Ø—?‘?Ð#5Õ6Ø%)‘Ná˜tŸ™¨vÔ6àØ˜A‘w—‘Ô(à%*�NØØ× Ñ  §¡£Õ.ð	/ð Ðr+   r   zsThe following pyplot functions are not listed in the documentation. Please add them to doc/api/pyplot_summary.rst: z•The following functions are listed in the pyplot documentation, but they do not exist in pyplot. Please remove them from doc/api/pyplot_summary.rst: N)r   r   Úparentr   r   r   r   r!   rŒ   r   Ú_get_pyplot_commandsÚ
differenceÚAssertionError)Úpyplot_docsrÅ   r˜   Údoc_functionsÚplot_commandsÚmissingÚextras          r)   Útest_doc_pyplot_summaryrÏ   n  sÞ   € ä”x“.×'Ñ'Ð*OÑO€KØ×ÑÔÜ�‰Ð9Ô:òðB ×!Ñ!Ó#×)Ñ)¨$Ó/€EÜÑ4°UÓ;Ó<€MÜœ×0Ñ0Ó2Ó3€MØ×&Ñ& }Ó5€GÙÜðMàˆkðóð 	ð ×$Ñ$ ]Ó3€EÙÜðCàCHÀ)ðMóNð 	Nð r+   c                  ó’  — t        j                  «        t        j                  t        j                  dd«      «       t        j
                  d¬«      \  } }t        j                  |t        j                  g t        j                  ¬«      k(  «      sJ ‚|g k(  sJ ‚t        j                  ddgdd	gd¬
«       t        j                  «       }|j                  d¬«      } |j                  d¬«      }t        j                  | t        j                  ddg«      k(  «      sJ ‚|D �cg c]  }|j                  «       ‘Œ c}dd	gk(  sJ ‚y c c}w )NrH   é
   T)Úminor)Údtypeg      @g      @ÚaÚb)ÚticksÚlabelsrÒ   )r   ro   Úplotr¢   ÚarangeÚxticksÚallÚarrayÚfloat64Úyticksrd   Ú
get_yticksÚget_yticklabelsÚget_text)Útick_posÚtick_labelsrE   Úls       r)   Útest_minor_ticksrå   ¦  sù   € Ü‡J�J„LÜ‡H�HŒR�Y‰Y�q˜"ÓÔÜŸJ™J¨TÔ2Ñ€HˆkÜ�6‰6�+¤§¡¨"´B·J±JÔ!?Ñ?Ô@Ð@Ð@Ø˜"ÒÐÐä‡J�J�c˜3�Z¨¨c¨
¸$Õ?Ü	�‰‹€BØ�}‰} 4ˆ}Ó(€HØ×$Ñ$¨4Ð$Ó0€KÜ�6‰6�(œbŸh™h¨¨S zÓ2Ñ2Ô3Ð3Ð3Ø"-Ö.˜QˆA�J‰J�LÒ.°3¸°*Ò<Ð<Ñ<ùÒ.s   Ä"Ec                  óž  — t        j                  d«       t        j                  «       } t        j                  «       } t        t        j                  «       «      dk(  sJ ‚t        j                  d«       t        t        j                  «       «      dk(  sJ ‚t        j                  d«       t        t        j                  «       «      dk(  sJ ‚y )NÚaggr	   Úsvg)r   Úswitch_backendro   rŽ   Úget_fignums)rD   s    r)   Útest_switch_backend_no_closerë   µ  s�   € Ü×Ñ�uÔÜ
�*‰*‹,€CÜ
�*‰*‹,€CÜŒs�‰Ó Ó! QÒ&Ð&Ð&Ü×Ñ�uÔÜŒs�‰Ó Ó! QÒ&Ð&Ð&Ü×Ñ�uÔÜŒs�‰Ó Ó! QÒ&Ð&Ñ&r+   c                 ó   — d| _         y )NT)Ú_test_was_here)ro   s    r)   Úfigure_hook_examplerî   À  s
   € Ø €FÕr+   c                  ó¦   — ddgi} t        j                  | «      5  t        j                  «       }d d d «       j                  sJ ‚y # 1 sw Y   ŒxY w)Nzfigure.hooksz0matplotlib.tests.test_pyplot:figure_hook_example)r   Ú
rc_contextr   ro   rí   )Útest_rcrD   s     r)   Útest_figure_hookrò   Ä  sS   € ð 	ÐKÐLð€Gô 
�‰˜Ó	 ñ Ü�j‰j‹lˆ÷ð ×ÒÐÑ÷ð ús   ›AÁAc                  óä  — t        j                  dd¬«      } t        j                  t        d¬«      5  t        j                  dt        j                  ddg«      ¬«      }d d d «       t        j                  t        d¬«      5  t        j                  | t        j                  dd	g«      ¬«       d d d «       | u sJ ‚t        j                  d«      }| |u sJ ‚y # 1 sw Y   Œ{xY w# 1 sw Y   Œ7xY w)
NrH   )rH   r	   )Úfigsizez)Ignoring specified arguments in this callr‚   rI   é   é   é   )r   ro   r   r<   ÚUserWarningr¢   rÜ   )rD   Úfig2Úfig3s      r)   Útest_multiple_same_figure_callsrû   Ï  s·   € Ü
�*‰*�Q Ô
'€CÜ	�‰”kÐ)TÔ	Uñ 7Ü�z‰z˜!¤R§X¡X¨q°!¨fÓ%5Ô6ˆ÷7ä	�‰”kÐ)TÔ	Uñ 2Ü�
‰
�3¤§¡¨!¨Q¨Ó 0Õ1÷2à�$‰;Ðˆ;Ü�:‰:�a‹=€DØ�$‰;Ð‰;÷7ð 7ú÷2ð 2ús   ³-CÂ-C&ÃC#Ã&C/c                  ó¤  — ddl m}   | «       }|j                  j                  �J ‚t	        j
                  t        «      5  |j                   d d d «       t        j                  |«       |j                  dk(  sJ ‚t        j                  d«       |j                  «       dk(  sJ ‚t        j                  j                  j                  |j                  «      |j                  j                  u sJ ‚t        j                  «       }|j                  dk(  sJ ‚t        j                  d«      |u sJ ‚t        j                  «       |u sJ ‚y # 1 sw Y   ŒûxY w)Nr   )ÚFigurerH   zmy titler	   )Úmatplotlib.figurerý   ÚcanvasÚmanagerr   rO   ÚAttributeErrorÚnumberr   ro   ÚsuptitleÚget_suptitleÚ_pylab_helpersÚGcfÚget_fig_managerrz   )rý   rD   rù   s      r)   Ú)test_register_existing_figure_with_pyplotr  Ú  s  € Ý(á
‹(€CØ�:‰:×ÑÐ%Ð%Ð%Ü	�‰”~Ó	&ñ ð 	�
Š
÷ô
 ‡J�Jˆs„OØ�:‰:˜Š?Ðˆ?ä‡L�L�ÔØ×ÑÓ Ò+Ð+Ð+ä×Ñ×!Ñ!×1Ñ1°#·*±*Ó=ÀÇÁ×ASÑASÑSÐSÐSä�:‰:‹<€DØ�;‰;˜!ÒÐÐÜ�:‰:�a‹=˜CÑÐÐÜ�7‰7‹9˜ÑÐÑ÷!ð ús   ¿EÅEc                  ó¶   — t        j                  «       } t        j                  t        d¬«      5  t        j                  d«      }d d d «       y # 1 sw Y   y xY w)Nzcloses all existing figuresr‚   rÛ   )r   ro   r   r<   rø   )r¬   rù   s     r)   Útest_close_all_warningr
  ò  sA   € Ü�:‰:‹<€Dô 
�‰”kÐ)FÔ	Gñ !Ü�z‰z˜%Ó ˆ÷!÷ !ñ !ús   °AÁAc                  ó~   — t        j                  «       } ddgddgg}t        j                  || j                  ¬«       y )Nr   rH   r	   )Úfignum)r   ro   Úmatshowr  )rD   Úarrs     r)   Útest_matshowr  ú  s3   € Ü
�*‰*‹,€CØˆqˆ6�A�q�6Ð
€Cô ‡K�K�˜CŸJ™JÖ'r+   c                 ón  — t        j                  | «      j                  }t        j                  |«      j                  }t        |«      t        |«      k(  sJ ‚t	        |D �cg c]B  }||   j
                  ||   j
                  k(  xr ||   j                  ||   j                  k(  ‘ŒD c}«      sJ ‚yc c}w )zÈ
    Assert that `func1` and `func2` have the same arguments,
    i.e. same parameter count, names and kinds.

    :param func1: First function to check
    :param func2: Second function to check
    N)ÚinspectÚ	signatureÚ
parametersrŽ   rÛ   rq   Úkind)Úfunc1Úfunc2Úparams1Úparams2Úps        r)   Úassert_same_signaturer    s®   € ô ×Ñ Ó&×1Ñ1€GÜ×Ñ Ó&×1Ñ1€Gäˆw‹<œ3˜w›<Ò'Ð'Ð'Üð öð ð 	�‰
�‰˜7 1™:Ÿ?™?Ñ*ò 	+Ø�‰
�‰˜7 1™:Ÿ?™?Ñ*ñ	+òô ð ñ ùò s   Á!AB2c                  óT   — t        t        j                  t        j                  «       y r1   )r  r   Úset_loglevelr   r2   r+   r)   Útest_setloglevel_signaturer    s   € Üœ#×*Ñ*¬C×,<Ñ,<Õ=r+   c                  ó°  — t        j                  d«      } t        j                  t        d¬«      5  t        j
                  d¬«       ddd«       t        j
                  dd¬«      \  }}|| u sJ ‚t        j                  t        d¬«      5  t        j
                  | ¬«       ddd«       t        j                  d«       y# 1 sw Y   ŒyxY w# 1 sw Y   Œ+xY w)	z@Test interaction of plt.subplots(num=...) with existing figures.rH   úalready existsr‚   ©ÚnumNT©r!  Úclearúcannot be a FigureBase instance)r   ro   r   rO   r…   rA   r^   )rD   Úfig_newÚaxss      r)   Ú)test_subplots_reuse_existing_figure_errorr'    s¤   € ô �*‰*�Q‹-€Cô 
�‰”zÐ)9Ô	:ñ Ü�‰˜Õ÷ô —<‘< A¨TÔ2�L€GˆSØ�c‰>Ðˆ>ô 
�‰”zÐ)JÔ	Kñ Ü�‰˜Õ÷ô ‡I�Iˆa…L÷ð ú÷ð ús   ±C ÂCÃ C	ÃCc                  óÂ  — t        j                  d«      } t        j                  t        d¬«      5  t        j
                  dggd¬«       ddd«       t        j                  t        d¬«      5  t        j
                  dgg| ¬«       ddd«       t        j
                  dggdd¬	«      \  }}|| u sJ ‚t        j                  d«       y# 1 sw Y   ŒxY w# 1 sw Y   ŒNxY w)
zETest that plt.subplot_mosaic raises ValueError when reusing a figure.r	   r  r‚   ÚAr   Nr$  Tr"  )r   ro   r   rO   r…   Úsubplot_mosaicr^   )rD   r%  Úaxds      r)   Ú/test_subplot_mosaic_reuse_existing_figure_errorr,  -  s¸   € ä
�*‰*�Q‹-€Cô 
�‰”zÐ)9Ô	:ñ +Ü×Ñ˜S˜E˜7¨Õ*÷+ô 
�‰”zÐ)JÔ	Kñ -Ü×Ñ˜S˜E˜7¨Õ,÷-ô ×%Ñ%¨ u g°1¸DÔA�L€GˆSØ�c‰>Ðˆ>ä‡I�Iˆa…L÷+ð +ú÷-ð -ús   ±C	Á.CÃ	CÃC)1r   r  Únumpyr¢   r   Úpathlibr   r   Ú
matplotlibr   Úmatplotlib.testingr   r   r   r*   r?   rF   rK   rR   rW   rZ   r\   r`   ri   rs   rv   r{   r}   r€   r†   r’   rœ   r©   r¯   r³   r»   rÏ   rå   rë   rî   rò   rû   r  r
  r  r  r  r'  r,  r2   r+   r)   ú<module>r1     sÒ   ðÛ Û ã Û 
Ý ã ã Ý 9Ý $ò
ò>!ò*	ò(ò
ò$ò ò)$òX$òòò2ò0%òò%ò2	<ò5ò  ò8ò	ò	òò5Nòp=ò'ò!òòòò0!ò(òò&>òó(r+   