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_backend_ps.cpython-312.pyc
�

G8�c�%���ddlmZddlmZddlZddlZddlZddlZddlm	Z	m
Z
mZddl
mZddlmZddlmZddlmZmZdd	lmZmZddlZddlmZej:j=d
��ej:j?dd
dg�ej:j?dddifddddifddddifddddifddifddddifddddifggd���d����Z d�Z!eed���Z"edg�d��Z#eedg�d ���Z$d!�Z%ed"��Z&ed#��Z'ed$��Z(ed%g�d&��Z)ed'g�d(��Z*ed)g�d*��Z+edg�+�d,��Z,ed-��Z-ed.gd/�0�d1��Z.ej:j?d2d3d4g�d5��Z/d6�Z0d7�Z1d8�Z2ed9gd:�;�d<��Z3ed=gd>�;�d?��Z4y)@�)�Counter)�PathN)�cbook�patheffects�font_manager)�MatplotlibDeprecationWarning)�Figure)�Ellipse)�needs_ghostscript�needs_usetex)�check_figures_equal�image_comparison�)�reruns�orientation�portrait�	landscapezformat, use_log, rcParams�psF�ps.usedistiller�ghostscript�xpdf�text.usetexT�eps�	ps.useafm)rzps with distiller=ghostscriptzps with distiller=xpdfzps with usetexrzeps afmzeps with usetex)�idsc��tjj|�tj�\}}tj�5}tj�5}|r|jd�|jddgddg�d}tjds|dz
}|j|�g}	|jd�r|	jtj�|jd�r|	jt�|jd�r|	jt�	|j!|||�	�|j!|||�	�|j*rJ�|j*rJ�|j-�j/d
�}|j-�}t1j2dd|�}t1j2dd|�}||j5d
d�k(sJ�	ddd�ddd�y#t#|	�$r(}
t%j&t)|
��Yd}
~
��d}
~
wwxYw#1swY�KxYw#1swYyxYw)N�log��u	Déjà vuru −€rr)�formatr�asciis(?<=
%%CreationDate: ).*�s
�
)�mpl�rcParams�update�plt�subplots�io�StringIO�BytesIO�
set_yscale�plot�	set_title�get�append�ExecutableNotFoundError�RuntimeErrorr�savefig�tuple�pytest�skip�str�closed�getvalue�encode�re�sub�replace)
r �use_logr%r�fig�ax�s_buf�b_buf�title�allowable_exceptions�exc�s_val�b_vals
             �B/usr/lib/python3/dist-packages/matplotlib/tests/test_backend_ps.py�test_savefig_to_stringiorIs���(�L�L����!��l�l�n�G�C��	����"6�%�����"6����M�M�%� �
����A���A������|�|�M�*��3�3�E�
���U��!���<�<�)�*� �'�'��(C�(C�D��<�<�
�&� �'�'��5��<�<��$� �'�'�(D�E�	"��K�K��f�+�K�F��K�K��f�+�K�F��<�<����<�<������ �'�'��0����� ��
���3�S�%�@�����3�S�%�@����
�
�g�u�5�5�5�5�E"6�"6�"6��(�)�*�	"��K�K��C��!�!��	"��)"6�"6��"6�"6�sP�I� CH7�4(G>�BH7�-I�>H4�H/�*H7�/H4�4H7�7I	�<I�Ic�"�tjdd��gtjd<t	j
�\}}|j
gd��tj�5}|j|d��ddd�y#1swYyxYw)N��w)�	linewidth�
foregroundzpath.effects)rrrr�r )
r�
withStroker$r%r'r(r-r)r+r3)r?r@rs   rH�test_patheffectsrQQsm������s�;�$=�C�L�L�� ��l�l�n�G�C���G�G�I��	����%�����B�t��$�%�%�%�s�(B�Bc�`�t|d�}|j�tjtt|���5dtjd<tjgd��tjd�tj|dzd�	�ddd�y#1swYyxYw)
Nzshort-1)�tempdirTr)rrrrKz\textbf{time} (s)ztex_demo.epsrrO)r�mkdirr�_setattr_cm�tempfiler7r$r%r'r-�xlabelr3)�tmpdir�base_tempdirs  rH�test_tilde_in_tempfilenamerZZs�����	�*�L�����
�	�	�8�S��->�	?�@�&*����]�#�������
�
�'�(����L�>�1�$�?�
@�@�@�s
�AB$�$B-z	empty.epsc��tj�\}}|j�|jddgdd��|j	ddddd��y)Nrr�r��color�alpha��?�foo)r'r(�set_axis_offr-�text�r?r@s  rH�test_transparencyremsG���l�l�n�G�C���O�O���G�G�Q��F�#�Q�G�'��G�G�B��E��A�G�.r"c���dtjd<tj�\}}|j	�|jddgdd��|j
ddddd��y)	NTrrrr\r]r`ra)r$r%r'r(rbr-rcrds  rH�test_transparency_texrgusW��#'�C�L�L����l�l�n�G�C���O�O���G�G�Q��F�#�Q�G�'��G�G�B��E��A�G�.r"c	�P�tj�\}}tj�5}|j	|d��|j�}ddd�t
jdtj�}|sJ�t
jd|tj�}|sJ�tdd�D]b}d|j|�vsJ�t|j|��tjt|j|��d�k(r�bJ�y#1swY��xYw)NrrOs$^%%BoundingBox: (.+) (.+) (.+) (.+)$s)^%%HiResBoundingBox: (.+) (.+) (.+) (.+)$r��.)r'r(r)r+r3r9r;�search�	MULTILINE�range�group�intr5�approx�float)r?r@�buf�bb�hibb�is      rH�	test_bboxrvs����l�l�n�G�C��	���������C���&��l�l�n���
���:�C����	N�B�
�I�2�
�9�9�A�3��\�\�#�D��K�4�
�1�a�[�J���2�8�8�A�;�&�&�&��2�8�8�A�;��6�=�=��t�z�z�!�}�1E�q�#I�I�I�I�J���s�$D�D%c��dtjd<tjd�t	j
t�5tjtj�d��ddd�y#1swYyxYw)z"Test failing latex subprocess callTrz$22_2_2$rrON)
r$r%r'rWr5�raisesr2r3r)r+�r"rH�test_failing_latexrz�sS��#'�C�L�L����J�J�z��	���|�	$�/����B�J�J�L��.�/�/�/�s�*A5�5A>c� �|jd�tjdddd��tjdddd��tjt	j
�d�	�|j\}d
|j�vsJ�y)N�WARNINGg�������?raT)�usetex皙�����?�barrrOzas if usetex=False)�	set_levelr'�figtextr3r)r+�records�
getMessage)�caplog�records  rH�test_partial_usetexr��sj��
���Y���K�K��B��d�+��K�K��B��d�+��K�K��
�
��T�*��n�n�G�F��6�#4�#4�#6�6�6�6r"c���tjjddd��tjddd�tj
t
j�d��y)NTz$\usepackage{color,graphicx,textcomp})rztext.latex.preambler`rarrO)r$r%r&r'r�r3r)r+)r�s rH�test_usetex_preambler��sE���L�L����F���
�K�K��B����K�K��
�
��T�*r"z
useafm.epsc��dtjd<tj�\}}|j	�|jd�|j
ddd�y)NTrr`�qk)r$r%r'r(rb�axhlinercrds  rH�test_useafmr��sD�� $�C�L�L����l�l�n�G�C���O�O���J�J�r�N��G�G�B��D�r"z	type3.epsc�2�tjddd�y)Nr`zI/J)r'r�ryr"rH�test_type3_fontr��s���K�K��B��r"zcoloredhatcheszerolw.epsc��tj�}|jtddddddd���|jtdd	d	d
ddd���|jtd
dddddd���|j	�y)N)rrr�/�noner\r)�hatch�	facecolor�	edgecolorrM)r`r`r`�+�gr~)rrg333333�?g�������?�\�b)r'�gca�	add_patchr
rb)r@s rH�!test_colored_hatch_zero_linewidthr��s}��	����B��L�L����A�S�F�#&�!�5�6��L�L���S�#�S�F�#&�#�7�8��L�L����c���#&�!�5�6��O�O�r")�
extensionsc��|j�}|jddd|jd��|j�y)Nr�helloT)�	transform�clip_on)�add_subplotrc�transFigure)�fig_test�fig_refr@s   rH�test_text_clipr��s8��	�	�	�	�B��G�G�A�q�'�X�%9�%9�4�G�H����r"c���tj�}|jddd�|dz}|j|�tj
jj|d��y)Nr`�defztest.epsF)�cache)r'�figurercr3r$�testing�compare�convert)�tmp_pathr?�outs   rH�test_d_glyphr��sR���*�*�,�C��H�H�R��U��
�Z�
�C��K�K����K�K������5��1r"ztype42_without_prep.eps�mpl20)�stylec�~�dtjd<dtjd<tjddd�y)N�*�ps.fonttype�stixzmathtext.fontsetr`zMass $m$)r$r%r'r�ryr"rH�test_type42_font_without_prepr��s1��#%�C�L�L���'-�C�L�L�#�$��K�K��S�*�%r"�fonttype�3�42c�^�|tjd<tj�\}}|j	ddd�tj�}|j|d��dt|�d�	�zd
z}tj||j�tj�sJ�y)Nr�g�?r`z&Forty-two is the answer to everything!rrOs
/FontType zutf-8)�encodings def)
r$r%r'r(rcr)r+r3�bytesr;rkr9rl)r�r?r@rr�tests     rH�
test_fonttyper��s���"*�C�L�L����l�l�n�G�C���G�G�D�#�?�@�
�*�*�,�C��K�K��D�K�!��5�H�:��A�A�G�K�D�
�9�9�T�3�<�<�>�2�<�<�8�8�8r"c���tj�\}}|jddgd��tj�}|j|d��|j
�dkDsJ�y)z-Test that dashed lines do not break PS outputrrz--)�	linestylerrON)r'r(r-r)r+r3�tell)r?r@rrs   rH�
test_linedashr��sR���l�l�n�G�C���G�G�Q��F�d�G�#�
�*�*�,�C��K�K��D�K�!��8�8�:��>��>r"c��t�}|jddd�tj�}|j	|d��|j	|d��y)Nr`z
foo

rrOr)r	rcr)r+r3)r�rrs  rH�test_empty_liner�sD��
�X�F�
�K�K��S�+�&�
�*�*�,�C�
�N�N�3�u�N�%�
�N�N�3�t�N�$r"c�,�t�}|jddtd����}|jD](}|j	gg��|jddg��*|j
d�tj�}|j|d	�
�|jd�|j�D�cgc]'}|jd�r|jd
�d��)}}tt|�j!��dk(sJ�ycc}w)NrK�polar)�
projection)�
subplot_kw)�xticks�yticksrrzhello, worldrrOrr�� )r	r(�dict�flat�setr-�suptitler)r*r3�seek�	readlines�
startswith�	partition�maxr�values)r?�axsr@rr�ln�wdss      rH�test_no_duplicate_definitionr�
s���
�(�C�

�,�,�q�!���(@�,�
A�C��h�h���
���b���$�
����A�����L�L�� �
�+�+�-�C��K�K��E�K�"��H�H�Q�K�����"�
��m�m�C� ��<�<���Q��"�C�"��w�s�|�"�"�$�%��*�*�*��	"s�;,Dzmulti_font_type3.epsgR���Q�?)�tolc�b�tjdg��}ttj|��jdk7rtjd�tjdddgd��tjd	d
��tj�}|jdd
d�y)N�WenQuanYi Zen Hei��family�wqy-zenhei.ttc�Font may be missing�font�DejaVu Sans��r��sizerr�r��333333�?�ffffff�?�"There are 几个汉字 in between!��fm�FontPropertiesr�findfont�namer5r6r'�rcr�rc��fpr?s  rH�test_multi_font_type3r�s��	�	�	�#6�"7�	8�B��B�K�K��O��!�!�%5�5����)�*��F�F�6�=�*=�>�R�H��F�F�4�!��

�*�*�,�C��H�H�T�5�>�?r"zmulti_font_type42.epsg�������?c�b�tjdg��}ttj|��jdk7rtjd�tjdddgd��tjd	d
��tj�}|jdd
d�y)Nr�r�r�r�r�r�r�r�rr�r�r�r�r�r�r�s  rH�test_multi_font_type42r�+s��	�	�	�#6�"7�	8�B��B�K�K��O��!�!�%5�5����)�*��F�F�6�=�*=�>�R�H��F�F�4�"��

�*�*�,�C��H�H�T�5�>�?r")5�collectionsr�pathlibrr)r;rVr5�
matplotlibrrrr��matplotlib._apir�matplotlib.figurer	�matplotlib.patchesr
�matplotlib.testing._markersrr�matplotlib.testing.decoratorsr
rr$�matplotlib.pyplot�pyplotr'�mark�flaky�parametrizerIrQrZrergrvrzr�r�r�r�r�r�r�r�r�r�r�r�r�r�ryr"rH�<module>rs�����	�	��
�=�=�8�$�&�G�O��������!����������[�(A�B������4�	�5�"��	�5�$�m�4�5�	�5�$�f�-�.�	�5�=�$�'�(�
�E�2��
�D�;��%�&�
�E�M�4�(�)�7����"'6�#�C��&'6�T%���@���@�"�;�-� �/�!�/���;�-� �/�!��/�J�$�/��/��7��7��+��+��<�.�!��"���;�-� ��!���-�.�/��0�����(��)���2��2��,�-�W�=�&�>�&�������c�4�[�1�9�2�9�	�%�+�(�)�*��5�	@�6�	@��*�+��5�	@�6�	@r"

Youez - 2016 - github.com/yon3zu
LinuXploit