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

G8�c���P�ddlmZddlZddlZddlZddlmZddlm	Z	ddl
mZmZddl
mZddlmZeZedgdd	gd
��d��Ze�d
��Ze�d��Zd�Zedg�d��Zej0j3dgd��d��Zej0j3dddg�d��Zej0j3dddg�d��Zd�Zej0j=d��ej0j3d dd!g�d"���Zy)#�)�
TemporaryFileN)�dviread)�_has_tex_package)�check_figures_equal�image_comparison)�needs_usetex�test_usetex�pdf�png�mpl20)�baseline_images�
extensions�stylec�h�dtjd<tj�\}}ddt	ddd��d	�}|j
d
i|��|j
di|��|j
di|��|j
d
i|��|j
di|��|jD�chc]}|j�d��c}D]}|j|��|jD�chc]}|j�d��c}D]}|j|��|j�ycc}wcc}w)NT�text.usetex�baseline�r�k�none)�pad�	edgecolor�	facecolor)�verticalalignment�size�bbox)皙�����?gffffff�?zO\LaTeX\ $\left[\int\limits_e^{2e}\sqrt\frac{\log^3 x}{x}\,\mathrm{d}x \right\}$)r�333333�?�lg)g�������?rz$\frac{1}{2}\pi$)g333333�?rz	$p^{3^A}$)g�������?rz	$p_{3_2}$�)�mpl�rcParams�plt�subplots�dict�text�texts�get_position�axvline�axhline�set_axis_off)�fig�ax�kwargs�t�x�ys      �>/usr/lib/python3/dist-packages/matplotlib/tests/test_usetex.pyr	r	s��
#'�C�L�L����l�l�n�G�C��#-�r��q�C�6�B�D�F��B�G�G���
��B�G�G�%�f�%��B�G�G�4�V�4��B�G�G�,�V�,��B�G�G�,�V�,�+-�8�8�
4�a�a�n�n��q�!�
4���
�
�
�1�
��+-�8�8�
4�a�a�n�n��q�!�
4���
�
�
�1�
���O�O���	5��
4s�%D*�&D/c�P�dtjd<|jddd�y)NTr��?z% a comment�r r!r%��fig_test�fig_refs  r1�
test_emptyr8,s ��"&�C�L�L����M�M�"�b�-�(�c�v�dtjd<|jddd�|jddd�y)NTrr3z$-$u−r4r5s  r1�test_unicode_minusr;2s1��"&�C�L�L����M�M�"�b�%� ��L�L��R�)�*r9c���dtjd<tj�}|j�j	dd�dt
jd<|jj�y)NTzaxes.formatter.use_mathtext���rr)r"r!�figure�add_subplot�set_xlimr �canvas�draw)r+s r1�test_mathdefaultrC9sQ��26�C�L�L�.�/�

�*�*�,�C��O�O����r�1�%�#'�C�L�L����J�J�O�O�r9zeqnarray.pngc�b�d}tjd��}|jdd|ddd��y)Nz/\begin{eqnarray*}foo\\bar\\baz\\\end{eqnarray*})rr)�figsizer3T�center)�usetex�horizontalalignmentr)r"r>r%)r%r+s  r1�test_multiline_eqnarrayrICs;��	�	��*�*�V�
$�C��H�H�S�#�t�D�!)�X�
�Gr9�fontsize)��
�c	��tjjd�|tjd<i}t	j
�}dD]�}|j
�|D]}|jddd|�d�d���|jj�tj|jj��dd	k7jd
��j�||<��th|j!���d
k(sJ�y)Nrz	font.size))r)r=)r=rr3�$T�rG).r�r)�axis)r r�user!r"r>�clearr%rArB�np�array�buffer_rgba�any�sum�len�values)rJ�heightsr+�valsr/s     r1�test_minus_no_descentr^Rs���
�I�I�M�M�'�� (�C�L�L����G�

�*�*�,�C�&�-���	�	���	4�A��H�H�R��q���1�X�d�H�3�	4��
�
�����(�(�3�:�:�#9�#9�#;�<�V�D��K��#�1�#�+�c�c�e�	��
�
-��"����!�"�#�q�(�(�(r9�pkg�xcolor�chemformulac��t|�stj|�d��dtjd<tj�}|jddd�}|jj�d|ztjd<tj�}|jddd�}|jj�tjj|j�|j��y)Nz is not availableTrr3zSome text 0123456789z8\PassOptionsToPackage{dvipsnames}{xcolor}\usepackage{%s}�text.latex.preamble)r�pytest�skipr r!r"r>r%rArBrU�testing�assert_array_equal�get_window_extent)r_r+r%�text2s    r1�test_usetex_packagesrjfs����C� ����s�e�,�-�.�"&�C�L�L���

�*�*�,�C��8�8�C��4�5�D��J�J�O�O��	D�c�I��L�L�&�'�

�*�*�,�C��H�H�S�#�5�6�E��J�J�O�O���J�J�!�!�%�"9�"9�";�"&�"8�"8�":�<r9�preamblez\usepackage[full]{textcomp}z\usepackage{underscore}c��|tjd<tj�}|jdddd��|jj�y)Nrcr3zhello, worldTrP)r"r!r>r%rArB)rkr+s  r1�test_latex_pkg_already_loadedrmys@��
+3�C�L�L�&�'�

�*�*�,�C��H�H�R��^�D�H�1��J�J�O�O�r9c�,�dtjd<td�ddd�td�d�}tj�\}}|j	dd|��|j�|j
d	d	d
d��tj�y)NTr�r=)�a_b�crqrp)�datar�foo_barrP)r"r!�ranger#�plot�legendr%rB)�dfr+r,s   r1�test_usetex_with_underscorerx�sq��"&�C�L�L����q��$�B�$��e�A�h�	/�B��l�l�n�G�C���G�G�C��R�G� ��I�I�K��G�G�A�q�)�D�G�)��H�H�Jr9�)�reruns�fmt�svgc��|jtjdd��dtjd<tj�\}}|jddd�t�5}tjt�5|j||��ddd�ddd�y#1swY�xYw#1swYyxYw)	z:An error is raised if a TeX font lacks a Type-1 equivalent�__getitem__c�6�tjddddd��S)Nstexfonts	Some Font)�texname�psname�effects�encoding�filename)r�PsFont)�selfrs  r1�<lambda>z%test_missing_psfont.<locals>.<lambda>�s������|��4�$�8�r9Trr3�hello)�formatN)
�setattrr�
PsfontsMapr r!r"r#r%rrd�raises�
ValueError�savefig)r{�monkeypatchr+r,�tmpfiles     r1�test_missing_psfontr��s���������M�	8�9�
#'�C�L�L����l�l�n�G�C���G�G�C��g��	��)�G�V�]�]�:�%>�)����G�C��(�)�)�)�)��)�)�s$�*B5�B)�B5�)B2	�.B5�5B>) �tempfiler�numpyrUrd�
matplotlibr r�matplotlib.testingr�matplotlib.testing.decoratorsrr�matplotlib.testing._markersr�matplotlib.pyplot�pyplotr"�
pytestmarkr	r8r;rCrI�mark�parametrizer^rjrmrx�flakyr��r9r1�<module>r�sf��"��
���/�O�4���
��"�O��u�~�
���	��.��)��)�
��+��+���>�"�#�G�$�G�������[�1�)�2�)�&�������=� 9�:�<�;�<�$������#�%?�@���	��������!������������/�)�0��)r9

Youez - 2016 - github.com/yon3zu
LinuXploit