403Webshell
Server IP : 35.80.110.71  /  Your IP : 216.73.216.46
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_spines.cpython-312.pyc
�

G8�c�����ddlZddlZddlmZddlmZddlm	Z	m
Z
d�Ze
dg�d��Ze
dg�d��Z
e	d	g�
�d��Ze
dg�d
��Zd�Zy)�N)�Spines)�check_figures_equal�image_comparisonc��Gd�d�}|�|�|�|�d�}tdi|��}|d|dusJ�|j|dusJ�|ddgjd�|jjdk(sJ�|jjdk(sJ�|j
j�J�|jj�J�|ddjd�td	�|j�D��sJ�tjtd
��5|jddd�tjtd
��5|d
ddd�tjtd��5|gd
�ddd�tjtd��5|dddd�tjtd��5|ddddd�tjtd��5|ddddd�y#1swY��xYw#1swY��xYw#1swY��xYw#1swY��xYw#1swY�cxYw#1swYyxYw)z)Test Spines and SpinesProxy in isolation.c��eZdZd�Zd�Zy)�#test_spine_class.<locals>.SpineMockc��d|_y�N��val)�selfs �>/usr/lib/python3/dist-packages/matplotlib/tests/test_spines.py�__init__z,test_spine_class.<locals>.SpineMock.__init__s	���D�H�c��||_yr
r)r
rs  r�set_valz+test_spine_class.<locals>.SpineMock.set_vals	���D�HrN)�__name__�
__module__�__qualname__rr�rr�	SpineMockrs��	�	rr)�left�right�top�bottomrr�xN�yc3�:K�|]}|jdk(���y�w)rNr)�.0�spines  r�	<genexpr>z#test_spine_class.<locals>.<genexpr>$s����=�E�u�y�y�C��=�s��foo)�matchzfoo, bar)rr"r�barzsingle list)rrzSpines does not support slicingrr)rrrrrrr�all�values�pytest�raises�AttributeErrorr"�KeyError�
ValueError)r�spines_dict�spiness   r�test_spine_classr.	s
���������{��+�	�K��
"�k�
"�F��&�>�[��0�0�0�0��;�;�+�f�-�-�-�-�
�F�G���%�%�c�*��;�;�?�?�c�!�!�!��<�<���s�"�"�"��:�:�>�>�!�!�!��=�=���$�$�$�
�1�I���c���=�V�]�]�_�=�=�=�=�	���~�U�	3���
�
��	���x�u�	-���u�
��	���x�z�	2�0��.�/�0�	���z��	7� ���� �	���z�)J�	K���v�g���	���z�)J�	K���u�v����������0�0�� � �������sH�
H�
H�6H�!H&�
H2�3H>�H�H�H#�&H/�2H;�>I�spines_axes_positionsc��tj�}tjddtjzd�}dtj
|�z}|j
ddd�}|jd�|j||�|jjjd�|jjd�|jjjd�|jjd	�|jj j#d
�|jj$j#d
�y)Nr��d�zcentered spines)�axes皙�����?r)r4g�?r�none)�plt�figure�np�linspace�pi�sin�add_subplot�	set_title�plotr-r�set_position�yaxis�set_ticks_positionr�xaxisr�	set_colorr)�figrr�axs    r�test_spines_axes_positionsrG4s����*�*�,�C�
���A�q����w��$�A�	�"�&�&��)��A�	����A�q�	!�B��L�L�"�#��G�G�A�q�M��I�I�O�O� � ��/��H�H����(��I�I�M�M���~�.��H�H����&��I�I�N�N���V�$��I�I�����v�&r�spines_data_positionsc��tj�\}}|jjj	d�|jj
j	d�|jjj	d�|jjj	d�|jddg�|jddg�y)N)�datag��)rJg�?)rJg��zero���r1)
r7�subplotsr-rr@rrr�set_xlim�set_ylim�rErFs  r�test_spines_data_positionsrQEs����l�l�n�G�C���I�I�N�N����/��I�I�M�M���}�-��I�I�O�O� � ��0��I�I���!�!�&�)��K�K��Q����K�K��Q��r�png)�
extensionsc�H�tjjd�|j�}|j	dd��|j
jjd�|j
jjd�|j
jjd�|jdd	d
��|j�}|j	dd��|j
jjd�|jdd	d	d�
�y)N�default�log)r5r3)�xscale�xlim)rJr3r1)rJr5rF�in)�axis�	labelleft�	directionT)rZr[rr)r7�style�user=�setr-rr@�
set_linewidthr�tick_params)�fig_test�fig_refrFs   r�#test_spine_nonlinear_data_positionsrdPs����I�I�M�M�)��	�	�	�	�B��F�F�%�g�F�&�
�I�I�N�N����,��I�I�N�N� � ��#��I�I�O�O� � ��.��N�N��u��N�=�	�	�	�	�B��F�F�%�g�F�&��I�I�O�O�!�!�!�$��N�N��u�5��N�Er�spines_capstylec��tjdd��tj�\}}|jg�|j	g�y)Nr4�)�	linewidth)r7�rcrM�
set_xticks�
set_yticksrPs  r�test_spines_capstylerles9���F�F�6�R� ��l�l�n�G�C���M�M�"���M�M�"�rc�D�tj�\}}tjdd��|jt	j
d��|jjd�|jjjd�|jjjd�|jd�|jjd�|jjjd�|jj jd�|j#d	�|jj%g�|jj%g�tj&�|jj}|j)�j+|j-��j/�}|jj0j3�d
|j4ksJd��|jj}|j)�j+|j-��j/�}|jj0j3�d|j6ksJd
��y)Ng333333�?)rr�
r)�outward�Fzy labelrzx labelrz"Y-Axis label not left of the spiner3z X-Axis label not below the spine)r7rM�subplots_adjustr?r9�arangerArBr-rr@r�set_visible�
set_ylabelrCrr�
set_xlabel�	set_ticks�draw�
get_transform�transform_path�get_path�get_extents�label�get_position�xmin�ymin)rErFr �	spinebboxs    r�test_label_without_ticksr�ns����l�l�n�G�C�����S��-��G�G�B�I�I�b�M���H�H����'��I�I�N�N����0��I�I�O�O����&��M�M�)���H�H����)��I�I���!�!�/�2��I�I�M�M���e�$��M�M�)���H�H���r���H�H���r���H�H�J��I�I�N�N�E��#�#�%�4�4�
�����%�+�-��
�8�8�>�>�&�&�(��+�i�n�n�<�-�,�-�<�
�I�I���E��#�#�%�4�4�
�����%�+�-��
�8�8�>�>�&�&�(��+�i�n�n�<�+�*�+�<r)�numpyr9r'�matplotlib.pyplot�pyplotr7�matplotlib.spinesr�matplotlib.testing.decoratorsrrr.rGrQrdrlr�rrr�<module>r�s����
��$�O�(�V�*�+�,�
'�-�
'� �*�+�,��-�����(�F�)�F�(�$�%�&��'��+r

Youez - 2016 - github.com/yon3zu
LinuXploit