ó
    {ñ:i<  ã                   ó¾  • S SK r S SKJrJr  S SKJr  S SKJr  S rS r	S r
\ R                  R                  SS	S
0S4SSS.S4SS
0S4SS
0S4SS
// SQS.S4SS
// SQS.S445      S 5       r\ R                  R                  SSS
0S4SS/S S.S 4S!S
0S"4S!S0S#4S$S S%.S&4S'S S%.S(4S)S S%.S*4S+S S,S/S/S-.S.4S+S S,S/S/S/.S044	5      S1 5       rS2 r\" S3/S49S5 5       rg)6é    N)Úassert_allcloseÚassert_array_equal)ÚSankey)Úcheck_figures_equalc                  ó8   • [        5       n U R                  5         g )N)r   Úadd)Úsankeys    Ú_/srv/projetos/modelo_ml_acdoc/venv/lib/python3.13/site-packages/matplotlib/tests/test_sankey.pyÚtest_sankeyr      s   € ä‹X€FØ
‡J�J…Ló    c                  ó€   • [        S/S/S/S9n U R                  S   R                  S   R                  5       S:X  d   eg )Nç      Ð?ÚFirstéÿÿÿÿ)ÚflowsÚlabelsÚorientationsr   z
First
0.25©r   ÚdiagramsÚtextsÚget_text)Úss    r
   Ú
test_labelr      s@   € Ü�d�V W I¸R¸DÑA€AØ�:‰:�a‰=×Ñ˜qÑ!×*Ñ*Ó,°Ó=Ð=Ñ=r   c                  óˆ   • S n [        S/S/S/U S9nUR                  S   R                  S   R                  5       S:X  d   eg )Nc                 ó
   • U S $ )Nz.3f© )Úvalues    r
   Úshow_three_decimal_placesÚ=test_format_using_callable.<locals>.show_three_decimal_places   s   € Ø˜�Ðr   r   r   r   )r   r   r   Úformatr   zFirst
0.250r   )r   r   s     r
   Útest_format_using_callabler!      sN   € òô 	�d�V W I¸R¸DØ/ñ	1€Að �:‰:�a‰=×Ñ˜qÑ!×*Ñ*Ó,°Ó>Ð>Ñ>r   zkwargs, msgÚgapr   z'gap' is negativeé   é   )r"   Úradiusz'radius' is greater than 'gap'Ú
head_anglez'head_angle' is negativeÚ	tolerancez'tolerance' is negative)r   r   r#   ©r   r   z/The shapes of 'flows' \(2,\) and 'orientations')ÚaÚbÚc)r   r   z)The shapes of 'flows' \(2,\) and 'labels'c                 ó€   • [         R                  " [        US9   [        S0 U D6  S S S 5        g ! , (       d  f       g = f)N©Úmatchr   )ÚpytestÚraisesÚ
ValueErrorr   )ÚkwargsÚmsgs     r
   Útest_sankey_errorsr4      s)   € ô 
�Š”z¨Ó	-ÜÑ�Ò÷ 
.×	-Ö	-ús   š/¯
=Útrunklengthz'trunklength' is negativeçš™™™™™É?g333333Ó?)r   ÚpriorzThe scaled sum of the connectedr7   z*The index of the prior diagram is negativez#The index of the prior diagram is 1)r   r#   )Úconnectr7   zAt least one of the connection)r$   r#   z"The connection index to the source)r#   é   z The connection index to this dia)r#   r#   çš™™™™™É¿)r8   r7   r   r   zThe value of orientations)r8   r7   r   ÚpathlengthszThe lengths of 'flows'c                 óÄ   • [        5       n[        R                  " [        US9   UR	                  SS/S9  UR                  " S0 U D6  S S S 5        g ! , (       d  f       g = f)Nr-   r6   r:   )r   r   )r   r/   r0   r1   r   )r2   r3   r	   s      r
   Útest_sankey_add_errorsr=   .   sF   € ô ‹X€FÜ	�Š”z¨Ó	-Ø�
‰
˜#˜t˜ˆ
Ñ%Ø�
Š
Ñ�VÒ÷ 
.×	-Ö	-ús   ¤$AÁ
Ac                  ó  • [        / SQS/S/SS9n U R                  5       n[        US   R                  / SQ5        US   R                  / SQ:X  d   e[        US   R                   Vs/ s H  o"R                  5       SS S:H  PM     sn5      (       d   e[        US   R                   Vs/ s H  o"R                  5       S	S  S:H  PM     sn5      (       d   eUS   R                  R                  5       S
:X  d   e[        US   R                  / SQ5        [        / SQS/S/SS9n U R                  5       n[        US   R                  / SQ5        US   R                  / SQ:X  d   e[        US   R                  / SQ5        g s  snf s  snf )N)r   ç      Ð¿ç      à?ç      à¿ÚFoor   ÚBar)r   r   r   Úunitr   )r#   r9   r#   r9   r9   éýÿÿÿÚ )©g      ö¿g=§Ã¤à¿©g      ö?g6µ	ƒt)è¿©g      è¿gƒÕ�A“Ú¿©g      è?g±qXu±„ë¿)r   r?   r   r@   rA   )r#   r9   Nr#   r9   )rG   rH   )r   r   rI   rJ   )r   Úfinishr   r   ÚanglesÚallr   r   Útextr   Útips)r   ÚsfrN   s      r
   Útest_sankey2rQ   B   sc  € ÜÒ-°u°gØ˜D uñ	.€Aà	
�‰‹€BÜ�r˜!‘u—{‘{Ò$<Ô=Øˆa‰5�<‰<š<Ó'Ð'Ð'Ü¸"¸Q¹%¿+º+ÓFº+°$—‘“  !Ð$¨Ô-¹+ÑF×GÑGÐGÐGÜ¸"¸Q¹%¿+º+ÓFº+°$—‘“  Ð$¨Ô-¹+ÑF×GÑGÐGÐGØˆa‰5�:‰:×ÑÓ  BÓ&Ð&Ð&Ü�B�q‘E—J‘Jò)ô*ô 	Ò0¸%¸Ø˜D uñ	.€Aà	
�‰‹€BÜ�r˜!‘u—{‘{Ò$?Ô@Øˆa‰5�<‰<Ò-Ó-Ð-Ð-Ü�B�q‘E—J‘Jò)õ*ùò GùÚFs   Á)FÂ,F
Úpng)Ú
extensionsc                 óÜ   • U R                  5       n[        U/ SQ/ SQS9nUR                  5         UR                  5       n[        US9nUR                  / SQ/ SQS9  UR                  5         g )N)r   r?   r?   r   r@   rA   )r#   r   r#   r   r   r   )Úaxr   r   )rU   r(   )Úgcar   rK   r   )Úfig_testÚfig_refÚax_testÚs_testÚax_refÚs_refs         r
   Útest_sankey3r]   ^   s]   € à�l‰l‹n€GÜ�wÒ&KÚ!5ñ7€Fà
‡M�M„Oà�[‰[‹]€FÜ�fÑ€EØ	‡I�IÒ9Ú/ð ñ 1à	‡L�L…Nr   )r/   Únumpy.testingr   r   Úmatplotlib.sankeyr   Úmatplotlib.testing.decoratorsr   r   r   r!   ÚmarkÚparametrizer4   r=   rQ   r]   r   r   r
   Ú<module>rc      s‘  ðÛ ß =å $Ý =òò>ò
	?ð ‡�×Ñ˜ØˆR€[Ð%Ð&Ø˜!ÑÐ>Ð?Ø�BÐÐ3Ð4Ø�2ÐÐ1Ð2Ø�2ˆwª
Ñ3Ø7ð9à�2ˆw¢/Ñ2Ø1ð3ð	)ó 	ñó	ðð
 ‡�×Ñ˜Ø�RÐÐ5Ð6Ø�Sˆz AÑ&Ð(IÐJØˆr€]Ð@ÐAØˆq€\Ð8Ð9Ø 1Ñ%Ð'GÐHØ !Ñ$Ð&JÐKØ !Ñ$Ð&HÐIØ !¨t°S¨kØ�cñØ7ð9à !¨t°S¨kØ�SñØ3ð5ð)ó ñóðò*ñ8   Ñ(ñ
ó )ñ
r   