403Webshell
Server IP : 35.80.110.71  /  Your IP : 216.73.217.120
Web Server : Apache/2.4.58 (Ubuntu)
System : Linux ip-172-31-21-44 6.17.0-1019-aws #19~24.04.1-Ubuntu SMP Tue Jun 23 18:53:06 UTC 2026 x86_64
User : ubuntu ( 1000)
PHP Version : 8.3.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/matplotlib/tests/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/matplotlib/tests/__pycache__/test_patheffects.cpython-312.pyc
�

 lf���D�ddlZddlmZddlmZddlmZ	ddl
mZddlm
Z
edgd��d��Zedgdd	�
�d��Zedg�d
��Zedg�d��Zd�Zd�Zedgdd	��d��Zedgddgd��d��Zedgd��d��Zy)�N)�image_comparison)�Path�patheffect1T)�remove_textc��tj�}|jddgddgg�|jdddt	ddd�	�d
dtjdd�
�g��}|jjtjdd�
�tj�g�tjdd�
�g}|jdd|��y)N����test)��?r)�rz->�angle3)�
arrowstyle�connectionstyle�lw��center�w��	linewidth�
foreground)�
arrowprops�size�ha�path_effects�T�-)�	linestyler)�plt�subplot�imshow�annotate�dictr�
withStroke�arrow_patch�set_path_effects�Stroke�Normal�grid)�ax1�txt�pes   �C/usr/lib/python3/dist-packages/matplotlib/tests/test_patheffects.py�test_patheffect1r.
s���

�+�+�-�C��J�J��A���A��� �

�,�,�v�x��"&�$�7?�A�#G��8�%1�%<�%<�q�HK�&M�%N�	�O�C��O�O�$�$�l�&9�&9�A�EH�'J�&2�&9�&9�&;�&=�>��
!�
!�A�#�
>�	?�B��H�H�T�S�r�H�2��patheffect2�mpl20)r�stylec��tj�}tjd�j	d�}|j|d��|j
|d��}tj|jtjdd�	�g�
�|j|dd�
�}tj|tjdd�	�g�
�y)N�)rr�nearest)�
interpolation�k��colorsr
rr�rz%2.0fT)�fmt�use_clabeltext)rr �np�arange�reshaper!�contour�setp�collectionsrr$�clabel)�ax2�arr�cntr�clblss    r-�test_patheffect2rHs����+�+�-�C�
�)�)�B�-�
�
��
'�C��J�J�s�)�J�,��;�;�s�3�;�'�D��H�H�T�
�
�'�2�2�Q�>A�C�D�E�
�J�J�t���J�>�E��H�H�U�'�2�2�Q�>A�C�D�Er/�patheffect3c	�`�tjgd�dd��\}|jtj�tj
�g�tjdtjdd��g�	�tj|gd
gdd�
�}|jjtj�g�tjddddddd���}tjdd��tjdd��g}|j|�|j�j|�tjddd��tjddd �!�g}tj�jd"d#d$d%d&d'�(�}|j|�y))N)rr
r�r
zo-brK)rztesting$^{123}$r�rrr:z
Line 1$^2$Tz
upper left)�fancybox�locr	r
z	Drop test�whitezcircle,pad=0.1�red)�boxstyle�color)rR�bboxg@r7)�����blue)�shadow_rgbFace)rK����xxxx�gray)�offset�hatch�	facecolor�blackg�������?)�	edgecolorr]rg{�G�z�?g�������?zHatch shadow�Ki�r)�fontsize�weight�va)r�plotr&r�SimpleLineShadowr(�titler$�legend�legendPatch�withSimplePatchShadow�textr'�get_bbox_patch�PathPatchEffect�gcf)�p1�legrjr,�ts     r-�test_patheffect3rq.sn��

�(�(�?�E�a�
0�C�B�����6�6�8�%�,�,�.�0�1��I�I��"�-�-��c�J�K�M��*�*�b�T�M�?�T�|�
L�C��O�O�$�$�l�&H�&H�&J�%K�L��8�8�A�q�+�W�&6��G�I�D�
�
�
���
=�
�
,�
,�W�V�
L�
N�B����"������*�*�2�.�
�
&�
&�g�V�17�9�
�
&�
&��G�*-�/�
0�B�
	���	���t�S�.�2�d�"�	�	$�A����r�r/zstroked_text.pngc��gd�}d}tjgd��}t|�D]b\}}|jdd|dzz
|dd|d	d
���}|j	tj|dzd
��tj�g��d|jdd�|jdd�|jd�y)N)zA B C D E F G H I J K LzM N O P Q R S T U V WzX Y Z a b c d e f g h i jzk l m n o p q r s t u vzw x y z 0123456789z!@#$%^&*()-=_+[]\;'z,./{}|:"<>?�2)rrrrg{�G�z�?g�������?g�p=
ף�?�leftrrO)rrcrrR)�x�y�s�fontdict�
r^rrr�off)r�axes�	enumeraterjr&rr'r(�set_xlim�set_ylim�axis)�text_chunks�	font_size�ax�i�chunkrjs      r-�test_patheffects_stroked_textr�Js����K��I�	���,�	�B��k�*�7���5��w�w��#��D��.�U�'-�X�)2�W�!F��G��	
���|�2�2�Y��^�>E� G�+�2�2�4�6�	7�7��K�K��1���K�K��1���G�G�E�Nr/c��tjd��}tjtd��\}|j	tj�tj�g�|jj�}tj|j�|�}|jd�|jd�k(sJ�y)N�)�dpiry�)
r�figurerd�ranger&rrer(�canvas�get_renderer�PathEffectRenderer�get_path_effects�points_to_pixels)�figrn�renderer�pe_renderers    r-� test_PathEffect_points_to_pixelsr�fs���

�*�*��
�C�

�(�(�5��9�
�C�B�����6�6�8�%�,�,�.�0�1��z�z�&�&�(�H��1�1�
����x�)�K��$�$�R�(�K�,H�,H��,L�L�L�Lr/c�R�tjd��}|jdk(sJ�y)N)rKr)r[)r�SimplePatchShadow�_offset)r,s r-�test_SimplePatchShadow_offsetr�ss$��	�	'�	'�v�	6�B�
�:�:����r/�
collectiongsh��|?�?)�tolr2c�Z�tjtjddd�tjddd��\}}tj|�tj|�z}tj|�}tjddd	�
�tjd��g}|jD]}|j|��tj|d�
�D]>}|jtjdd��g�|jdddd���@y)Nrryr����r�dr^�none�)r_r]r)rrOr8r7r
)rr�sawtoothrV)rQr]r_)r=�meshgrid�linspace�sin�cosrr@rrlr'rBr&rCr$�set_bbox)rurv�data�csr,r�rjs       r-�test_collectionr�xs��
�;�;�r�{�{�1�b�#�.����B��3�0G�H�D�A�q�
�6�6�!�9�r�v�v�a�y� �D�	���T�	�B�
�
&�
&��F�13�5�
�
�
��
*�
,�B��n�n�(�
��#�#�B�'�(��
�
�2�g�.�-�����|�6�6�#�AB� D�E�	F��
�
�:�F�$*�,�	-�-r/�tickedstroke�pngg)\��(�?)r�
extensionsr�c
��tjddd��\}\}}}tj�}t	j
|ddt
jddd�	�g�
�}|j|�|jd�|jdd�|jdd�|jd
dgd
dgdt
jdd��g��d}tjdd|�}dtj|dz�zdz}|j||dt
j�g��|j!�d}d}	tjdd|�}
tjdd|	�}tj"|
|�\}}
d|z|
zdz
}|d|
zzdz
}d|dzz|
z
}|j%||
|d
gd �!�}tj&|j(t
jd�"�g�#�|j%||
|d
gd$�!�}tj&|j(t
jd%d�&�g�#�|j%||
|d
gd'�!�}tj&|j(t
jd�(�g�#�|jd
d�|jd
d�y))Nrr
)r�rK)�figsizer�r	i����ry)�angle�spacing�length)r]rr�equal���r� ��)r�r�)�labelr�er
rg333333�?�g�������?�ig����MbP?g@g@rKg�������?rU)r7r8)r�r:)rL�<)r�r�)�b)r�)r�subplotsr�unit_circle�patches�	PathPatchr�withTickedStroke�	add_patchrr}r~rdr=r�r�rgr�r@rArB)r�r*rD�ax3�path�patch�nxrurv�ny�xvec�yvec�x1�x2�g1�g2�g3�cg1�cg2�cg3s                    r-�test_tickedstroker��s����<�<��1�g�>��C��#�s�C�����D����d�f���%�%�C��-.�	0�J1�
2�E��M�M�%���H�H�W���L�L��Q���L�L��Q���H�H�a��V�a��V�3�'�8�8��?B�D�E�
�F�

�B�
���C��b�!�A��b�f�f�Q��U�m��c�!�A��H�H�Q���L�,I�,I�,K�+L�H�M��J�J�L�	�B�	�B��;�;�u�c�2�&�D�
�;�;�u�c�2�&�D��[�[��t�
$�F�B��
�r�6�B�;���	�B�
��B��;��?�	�B�	�b�B�h���	�B�

�+�+�b�"�b�1�#�f�+�
5�C��H�H�S�_�_�'�8�8�s�C�D�F��+�+�b�"�b�1�#�f�+�
5�C��H�H�S�_�_�'�8�8�r�!�L�M�O��+�+�b�"�b�1�#�f�+�
5�C��H�H�S�_�_�'�8�8��C�D�F��L�L��A���L�L��A�r/zspaces_and_newlines.pngc
�,�tj�}d}d}|jdd|dddddi�	�}|jdd
|dddddi�	�}|jt	j
�g�|jt	j
�g�y)Nz	         z
Newline also causes problemsg�?g�?rrrR�salmon)rrcrrSg�?�thistle)rr rjr&rr()r��s1�s2�text1�text2s     r-�$test_patheffects_spaces_and_newlinesr��s���	����B�	�B�	)�B��G�G�C��r�h�8�"�!�8�,�
�
.�E��G�G�C��r�h�8�"�!�9�-�
�
/�E�	���L�/�/�1�2�3�	���L�/�/�1�2�3r/)�numpyr=�matplotlib.testing.decoratorsr�matplotlib.pyplot�pyplotr�matplotlib.patheffects�patheffectsr�matplotlib.pathr�matplotlib.patchesr�r.rHrqr�r�r�r�r�r��r/r-�<module>r�s���:��-� �$��=�/�t�4�3�5�3�"�=�/�t�7�C�E�D�E�"�=�/�"��#��6�%�&�'��(��6
M� �
�<�.�e�7�;�-�<�-�$�>�"��%����2��2�j�,�-�4�@�	4�A�	4r/

Youez - 2016 - github.com/yon3zu
LinuXploit