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

G8�czU���ddlZddlZddlZddlmZddlmZ	ddl
mZddlm
Z
mZdVd�ZdWd�Zedg�d��Zedg�d	��Zed
g�d��Zedg�d
��Zedgd��d��Zedgd��d��Zd�Zd�Zedg�d��Zedg�d��Zedg�d��Zedg�d��Zedg�d��Zed g�d!��Zed"gd#��d$��Zed%g�d&��Z ed'g�d(��Z!ed)g�d*��Z"ed+g�d,��Z#d-�Z$d.�Z%d/�Z&d0�Z'd1�Z(d2�Z)ed3gd4d5�6�d7��Z*d8�Z+d9�Z,ed:gd5�;�d<��Z-ed=gd5�;�d>��Z.d?�Z/ed@gd4d5dAdBi�C�dD��Z0edEgd4d5dAejbdFdgdGdHgg�i�C�dI��Z2dJ�Z3dK�Z4dL�Z5dM�Z6dN�Z7dO�Z8dP�Z9ejtjwdQdRdSid4fdTdid4fg�dU��Z<y)X�N)�image_comparison)�gridspec�tickerc�
�|jddg�|jd��|s:|jd|��|jd|��|j	d|��y|jg�|j
g�y)	N�����nbins�x-label��fontsize�y-label�Title)�plot�locator_params�
set_xlabel�
set_ylabel�	set_title�set_xticklabels�set_yticklabels)�axr�nodecs   �I/usr/lib/python3/dist-packages/matplotlib/tests/test_constrainedlayout.py�example_plotrsq���G�G�Q��F�O����A����
�
�
�i�(�
�3�
�
�
�i�(�
�3�
���W�x��0�
���2��
���2��c	��d\}}tjtdd|z|�tdd|z|�f\}}d|dzz
|dzz|dzztj|dz|dzz
�z}|j	|||dd�dd�fd	d
dd�
�}|jd|��|j
d|��|jd|��|S)N)�333333�?r���r	r�@�r����RdBu_rg���?T)�cmap�vmin�vmax�
rasterizedrr
rr)�np�mgrid�slice�exp�
pcolormeshrrr)rr�dx�dy�y�x�z�pcms        r�example_pcolorr4s���
�F�B��
�8�8�E�"�a�"�f�b�)��"�a�"�f�b�)�*�+�D�A�q�	
�Q��V��a�1�f�	�q�A�v�	%�����a���!�q�&�0@�)A�A�A�
�-�-��1�a����S�b�S��k��s��#'��)�C��M�M�)�h�M�/��M�M�)�h�M�/��L�L��8�L�,��Jrzconstrained_layout1.pngc�j�tjd��}|j�}t|d��y)z,Test constrained_layout for a single subplot�constrained��layout�r
N)�plt�figure�add_subplotr��figrs  r�test_constrained_layout1r?$s(���*�*�M�
*�C�	���	�B���b�!rzconstrained_layout2.pngc�v�tjddd��\}}|jD]}t|d���y)z(Test constrained_layout for 2x2 subplotsrr6r7r9r
N)r:�subplots�flatr�r>�axsrs   r�test_constrained_layout2rE,s7���|�|�A�q��7�H�C���h�h�&���R�"�%�&rzconstrained_layout3.pngc���tjddd��\}}t|j�D]0\}}t	|d��}|dk(rd}nd}|j|||�	��2y
)z3Test constrained_layout for colorbars with subplotsrr6r7r9r
r	g{�G�z�?�{�G�z�?)r�padN)r:rA�	enumeraterBr4�colorbar)r>rD�nnrr3rHs      r�test_constrained_layout3rL4se���|�|�A�q��7�H�C���C�H�H�%�*���B��R�"�-��
��7��C��C����S�R�S��)�
*rzconstrained_layout4.pngc��tjddd��\}}|jD]}t|d��}�|j	|dd��y	)
z;Test constrained_layout for a single colorbar with subplotsrr6r7r9r
�{�G�z�?r�rrH�shrinkN�r:rArBr4rJ�r>rDrr3s    r�test_constrained_layout4rSBsM���|�|�A�q��7�H�C���h�h�.���R�"�-��.��L�L���$�s�L�3rzconstrained_layout5.pngg����Mb`?)�tolc��tjddd��\}}|jD]}t|d��}�|j	|dddd	�
�y)zZ
    Test constrained_layout for a single colorbar with subplots,
    colorbar bottom
    rr6r7r9r
FrNr�bottom)r�use_gridspecrHrP�locationNrQrRs    r�test_constrained_layout5rYLsX���|�|�A�q��7�H�C���h�h�.���R�"�-��.��L�L���#��c�"��$rzconstrained_layout6.pngc
��dtjd<tjd��}|jdd|��}|dj	dd�}|dj	dd�}g}|D]&}|j|�}||gz
}t
|d	�
��(jd�g}|D]&}|j|�}||gz
}t|d	�
�}�(|j|dd
dtjd����y)z,Test constrained_layout for nested gridspecsF�pcolormesh.snapr6r7rr�r;r�r
zx-label
MultiLinerNg�G�z��?rVr!r
)rrHrPrX�ticksN)r:�rcParamsr;�add_gridspec�subgridspecr<rrr4rJr�MaxNLocator)r>�gs�gsl�gsr�axslr�axsrr3s        r�test_constrained_layout6rh[s��',�C�L�L�"�#�

�*�*�M�
*�C�	�	�	�!�Q�s�	�	+�B�
�Q�%�
�
�A�q�
!�C�
�Q�%�
�
�A�q�
!�C�
�D��&��
�_�_�R�
 ��������R�"�%�&��M�M�&�'�
�D��.��
�_�_�R�
 ��������R�"�-��.�
�L�L����$���)�)��2��4rc���tjd��}|jdd�}|djdd�}|djdd�}g}g}t	d�D]2}||j||�gz
}||j||�gz
}�4|j
�|dj�j|dj�jkDsJ�y)NT��constrained_layoutrrrr	)
r:r;r`ra�ranger<�draw_without_rendering�get_position�y0�y1)r>�GS�GSA�GSB�axa�axb�is       r�test_identical_subgridspecrwvs���

�*�*��
-�C�	�	�	�!�Q�	�B�
�Q�%�
�
�A�q�
!�C�
�Q�%�
�
�A�q�
!�C�
�C�
�C�
�1�X�)�������A��'�(�(�������A��'�(�(��)���� ��q�6��� �#�#�c�!�f�&9�&9�&;�&>�&>�>�>�>rc�t�tjtd��5tjd��}tjdd�}tjdd|d�}tjdd|d�}|D]}|j|��|j�ddd�y#1swYyxYw)	z2Test for proper warning if fig not set in GridSpeczhThere are no gridspecs with layoutgrids. Possibly did not call parent GridSpec with the "figure" keyword��matchr6r7rrrN)
�pytest�warns�UserWarningr:r;r�GridSpec�GridSpecFromSubplotSpecr<rm)r>rcrdres    r�test_constrained_layout7r��s���	����3�
5�%��j�j�
�.��
�
�
�q�!�
$���.�.�q�!�R��U�;���.�.�q�!�R��U�;���	 �B��O�O�B��	 �	�"�"�$�%�%�%�s�B	B.�.B7zconstrained_layout8.pngc���tjdd��}tjdd|��}g}dD]|}|dk(rd	g}ndd
g}|D]h}|j	|||f�}||gz
}t|d��|dkDr|j
d
�|d	kr|jd
�|jd
��j�~|j	|ddd�f�}||gz
}t|d��}|j||dd��y)z/Test for gridspecs that are not completely full)�
r!r6��figsizer8r	r!r\�rrrr��	r
�rNrNrrO)
r:r;rr~r<r4rrrrJ)r>rcrD�j�ilistrvrr3s        r�test_constrained_layout8r��s���*�*�W�]�
;�C�	�	�	�1�a��	,�B�
�C�
�
����6��C�E���F�E��	�A�����A�q�D��*�B��B�4�K�C��2��*��1�u��
�
�b�!��1�u��
�
�b�!��L�L���	�
�

����A�q�D��	"�B��B�4�K�C�
��a�
(�C��L�L���$�s�L�3rzconstrained_layout9.pngc�0�tjddddd��\}}|jD]1}t|d��}|j	d�|jd��3j
d�|j|d	d
��|jdd
��y)z4Test for handling suptitle and for sharex and shareyrr6F�r8�sharex�shareyr9r
r�r rNrrOz
Test Suptitle�N)	r:rArBr4rr�
set_aspectrJ�suptitlerRs    r�test_constrained_layout9r��s����|�|�A�q��#(��8�H�C���h�h����R�"�-��
�
�
�b��
�
�
�b����M�M�"���L�L���$�s�L�3��L�L��2�L�.rzconstrained_layout10.pngc���tjddd��\}}|jD](}|jt	j
d�d���*j
dd�	�y
)z%Test for handling legend outside axisrr6r7r]zThis is a label)�labelzcenter left)g�������?��?)�loc�bbox_to_anchorN)r:rArBrr)�arange�legendrCs   r�test_constrained_layout10r��sV���|�|�A�q��7�H�C���h�h�8��
����	�	�"�
�%6��7�8��I�I�-�
�I�;rzconstrained_layout11.pngc���tjdd��}tjdd|��}tjdd|d�}tjdd|d�}|j|d�}t
|d�	�g}|D]&}|j|�}||gz
}t|d�	�}�(|j|d
d��|j|d�}t
|d�	�y
)z"Test for multiple nested gridspecsr6)�
r	�r8r�rrr\rr�r
r��Q@�rrP�aspectN�	r:r;rr~rr<rr4rJ�r>�gs0rd�gsl0rrDrcr3s        r�test_constrained_layout11r��s����*�*�M�7�
;�C�
�
�
�A�q��
-�C�
�
*�
*�1�a��Q��
8�C��+�+�A�q�#�a�&�9�D�	����Q��	 �B���a� �
�C��-��
�_�_�R�
 ����t����R�!�,��-��L�L���S��L�5�	����Q��	 �B���a� rzconstrained_layout11rat.pngc���tjdd��}tjdd|ddg��}tjdd|d�}tjdd|dddg�	�}|j|d�}t
|d
��g}|D]&}|j|�}||gz
}t|d
��}�(|j|dd
��|j|d�}t
|d
��y)z4Test for multiple nested gridspecs with width_ratiosr6)r�r	r�rr�)r;�width_ratiosr)�
height_ratiosr�r
rr�r�Nr�r�s        r�test_constrained_layout11ratr��s����*�*�M�7�
;�C�
�
�
�A�q��A�q�6�
B�C�
�
*�
*�1�a��Q��
8�C��+�+�A�q�#�a�&��A��O�D�	����Q��	 �B���a� �
�C��-��
�_�_�R�
 ����t����R�!�,��-��L�L���S��L�5�	����Q��	 �B���a� rzconstrained_layout12.pngc��tjdd��}tjdd|��}|j	|dd�d	f�}|j	|dd�d	f�}t|d
��t|d
��|j	|dd�df�}t|d
��|j	|dd�df�}t|d
��|j	|dd�df�}t|d
��|j
d�y)z/Test that very unbalanced labeling still works.r6)r��r�r�rr\Nr	r�r
rT)rr�r)r:r;rr~r<rr)r>r��ax1�ax2rs     r�test_constrained_layout12r��s����*�*�M�6�
:�C�
�
�
�A�q��
-�C�

�/�/�#�b�q�b�!�e�*�
%�C�

�/�/�#�a�b�!�e�*�
%�C���r�"���r�"�	����Q�q�S�!�V��	%�B���4� �	����Q�q�S�!�V��	%�B���4� �	����Q�R��U��	$�B���4� ��M�M�)�rzconstrained_layout13.pngrGc��tjddd��\}}|jD]%}t|d��}|j	||ddd�	��'tjt�5|j�jd
d��ddd�|j�jd
d
��y#1swY�+xYw)�Test that padding works.rr6r7r]r
r�4@rG�rrPr�rHr)�wpad�hpadNgUUUUUU�?��w_pad�h_pad)
r:rArBr4rJr{�raises�	TypeError�get_layout_engine�setrRs    r�test_constrained_layout13r�s����|�|�A�q��7�H�C���h�h�C���R�"�-�����S�R��C�T��B�C�
���y�	!�4�����#�#���#�3�4�������g�W��=�4�4�s�)"B5�5B>zconstrained_layout14.pngc���tjddd��\}}|jD]%}t|d��}|j	||ddd�	��'|j�j
d
d
dd��y
)r�rr6r7r]r
rr�rGr�gUUUUUU�?皙�����?�r�r��hspace�wspaceN)r:rArBr4rJr�r�rRs    r�test_constrained_layout14r�sy���|�|�A�q��7�H�C���h�h�C���R�"�-�����S�R��C�T��B�C����������s� �$rzconstrained_layout15.pngc��dtjd<tjdd�\}}|jD]}t|d���y)zTest that rcparams work.Tzfigure.constrained_layout.userr]r
N)�mplr_r:rArBrrCs   r�test_constrained_layout15r�$sD��59�C�L�L�0�1��|�|�A�q�!�H�C���h�h�&���R�"�%�&rzconstrained_layout16.pngc�v�tjd��\}}t|d��|jgd��}y)zTest ax.set_position.r6r7r]r
)r�r�皙�����?r�N)r:rAr�add_axes�r>rr�s   r�test_constrained_layout16r�-s/���l�l�-�0�G�C����b�!�

�,�,�+�
,�Crzconstrained_layout17.pngc�t�tjd��}tjdd|��}|j	|d�}|j	|ddd�f�}|j	|dd�dd	�f�}|j	|dd�d
f�}t|�t|�t|�t|�y)zTest uneven gridspecsr6r7r	r\�rrrrNrr")r:r;rr~r<r)r>rcr�r��ax3�ax4s      r�test_constrained_layout17r�5s����*�*�M�
*�C�	�	�	�1�a��	,�B�

�/�/�"�T�(�
#�C�

�/�/�"�Q���U�)�
$�C�

�/�/�"�Q�R��1��W�+�
&�C�

�/�/�"�Q�R��V�*�
%�C������������rc�&�tjd��\}}|j�}t|�t|d��|j	�t|j
�j|j
�jk(�sJ�y)z
Test twinxr6r7r9r
N)r:rA�twinxrrm�allrn�extentsr�s   r�test_constrained_layout18r�Fsl���l�l�-�0�G�C��
�(�(�*�C������r�"���� ��r��� �(�(�C�,<�,<�,>�,F�,F�F�G�G�Grc�j�tjd��\}}|j�}t|�t|d��|j	d�|j	d�|j�t
|j�j|j�jk(�sJ�y)z
Test twinyr6r7r9r
r�N)	r:rA�twinyrrrmr�rnr�r�s   r�test_constrained_layout19r�Ps����l�l�-�0�G�C��
�(�(�*�C������r�"��M�M�"���L�L������ ��r��� �(�(�C�,<�,<�,>�,F�,F�F�G�G�Grc��tjddd�}tj||dd�df�}tj�}|jgd��}|j
|||dd�dd�f�}|j|�y)z)Smoke test cl does not mess up added axes���r!r�N)rrrrr")r)�linspace�hypotr:r;r�r-rJ)�gx�imgr>r�meshs     r�test_constrained_layout20r�\ss��	���R��A�	�B�
�(�(�2�r�!�T�'�{�
#�C�

�*�*�,�C�	���l�	#�B�
�=�=��R��S�b�S�#�2�#�X��/�D��L�L��rc��tjd��\}}|jd�|j�t	j
|j
�j�}|jd�|j�t	j
|j
�j�}tjj||�y)z>#11035: repeated calls to suptitle should not alter the layoutr6r7�	Suptitle0�	Suptitle1N)
r:rAr�rmr)�copyrnr��testing�assert_allclose�r>r�extents0�extents1s    r�test_constrained_layout21r�gs����l�l�-�0�G�C���L�L������ ��w�w�r���(�0�0�1�H��L�L������ ��w�w�r���(�0�0�1�H��J�J���x��2rc��tjd��\}}|j�tj|j�j�}|jdd��|j�tj|j�j�}tjj||�y)zC#11035: suptitle should not be include in CL if manually positionedr6r7�Suptitler��r0N)
r:rArmr)r�rnr�r�r�r�r�s    r�test_constrained_layout22r�vs����l�l�-�0�G�C����� ��w�w�r���(�0�0�1�H��L�L��s�L�#���� ��w�w�r���(�0�0�1�H��J�J���x��2rc���td�D]a}tjddd��}|jdd�}|dj	dd�}|jdj
|���cy	)
zu
    Comment in #11035: suptitle used to cause an exception when
    reusing a figure w/ CL with ``clear=True``.
    rr6T�123)r8�clear�numrrz
Suptitle{}N)rlr:r;r`rar��format)rvr>rc�subs    r�test_constrained_layout23r��sh���1�X�-���j�j�
�T�u�E��
�
�
�a��
#����e����1�%�����\�(�(��+�,�	-rztest_colorbar_location.pngT�mpl20)�remove_text�stylec�$�dtjd<tjddd��\}}|jD]/}t	|�}|jd�|j
d��1|j|dd�d	fd
��|j||ddd
�fdd��|j||dd
d�fddd��|j||ddd�fdd��|j||ddd��|j||d	d�d
fdd��y)zY
    Test that colorbar handling is as expected for various complicated
    cases...
    Fr[r�r!r6r7r�Nrr�)rrPr"rr�rV)rrPrXrg�������?)rrPrXrH���r	�topr��left�right)r:r_rArBr4rrrJrRs    r�test_colorbar_locationr�s��',�C�L�L�"�#��|�|�A�q��7�H�C���h�h����R� ��
�
�
�b��
�
�
�b����L�L���Q��T��3�L�/��L�L���R��!��V��S�8�L�D��L�L���Q���U��C�(��L�M��L�L���R���V��S�5�L�A��L�L���T��3��L�@��L�L���Q�q�S�!�V��S�7�L�Crc�*�tjddd��\}}|djd�|j�t	j
|dj
�j�}tjj|gd�d�	�y)
Nrr6r7r�Fr�)g��|�R�?g\�	��b�?g&��:���?g��9?�q�?��h㈵��>)�rtol)
r:rA�set_visiblermr)r�rnr�r�r�)r>rDr�s   r�test_hidden_axesr�sy���|�|�A�q��7�H�C����I���%� ���� ��w�w�s�4�y�-�-�/�7�7�8�H��J�J����9���Frc	���dD�]�}tjddd��\}}g}t|j�D]�\}}|j	d��t|�}|j
|||dd�	�}||gz
}|jj	d��|d
k7s�a|jjjg�|jjjg�|jg�|jg���|j�jdddd�
�|j�|dvr�t j"j%|djj'�j(|djj'�j(�t j"j%|d
jj'�j(|djj'�j(���t j"j%|djj'�j*|d
jj'�j*�t j"j%|djj'�j*|djj'�j*����y)N)r�r�r�rVrr6r7�in)�	directionrg{�G�z�?)rrXrPrHrg�q�q�?g�������?r�)r�r�rr	)r:rArIrB�tick_paramsr4rJr�xaxis�	set_ticks�yaxisrrr�r�rmr)r�r�rn�x0ro)rXr>rD�cbsrKr�pc�cbs        r�test_colorbar_alignr�sG��6�D���<�<��1�]�;���S�������)�	'�F�B���N�N�T�N�*���#�B����b�R�(�3�"&��(�B��B�4�K�C��E�E�����-��Q�w������%�%�b�)������%�%�b�)��"�"�2�&��"�"�2�&�	'�	����#�#�&��+.�s�	$�	<�	�"�"�$��(�(��J�J�&�&�s�1�v�y�y�'=�'=�'?�'B�'B�'*�1�v�y�y�'=�'=�'?�'B�'B�
D��J�J�&�&�s�1�v�y�y�'=�'=�'?�'B�'B�'*�1�v�y�y�'=�'=�'?�'B�'B�
D�
�J�J�&�&�s�1�v�y�y�'=�'=�'?�'B�'B�'*�1�v�y�y�'=�'=�'?�'B�'B�
D��J�J�&�&�s�1�v�y�y�'=�'=�'?�'B�'B�'*�1�v�y�y�'=�'=�'?�'B�'B�
D�7Drztest_colorbars_no_overlapV.png)r�c�b�tjdd��}|jdddd��}|D]m}|jj	tj��|jdd	�
�|jddgddgg�}|j||d
���o|jd�y)N)rr�r6r�rrT�r�r��bothr��axisrr	r��vertical�r�orientation�foo)r:r;rAr�set_major_formatterr�
NullFormatterr	�imshowrJr��r>rDr�ims    r�test_colorbars_no_overlapVr �s���

�*�*�V�M�
:�C�

�,�,�q�!�D��,�
6�C��8��
���$�$�V�%9�%9�%;�<�
���F�d��3�
�Y�Y��A���A��'�
(�����R�B�J��7�	8�
�L�L��rztest_colorbars_no_overlapH.pngc�b�tjdd��}|jd�|jdddd��}|D]m}|jjt
j��|jd	d
��|jddgdd
gg�}|j||d���oy)N)r�rr6r�rrrTrrrrr	r��
horizontalr)r:r;r�rArrrrr	rrJrs    r�test_colorbars_no_overlapHr#�s���

�*�*�V�M�
:�C��L�L���

�,�,�q�!�D��,�
6�C��:��
���$�$�V�%9�%9�%;�<�
���F�d��3�
�Y�Y��A���A��'�
(�����R�B�L��9�	:rc�|�tjddd��\}}|djgd��|j�|dj	�}t
jj|ddgddgg�tjddd��\}}|djgd��|djt
jjd	d	��}|j||d�
�|j�|dj	�}t
jj|ddgddgg�y)Nrrr6r7r�r�r��333333�?r&r�r���rg)\��(�?)r:rA�set_positionrmrnr)r�r�r-�random�randrJ)r>rD�pprs    r�test_manually_set_positionr-�s	���|�|�A�q��7�H�C����F���,�-���� �	�Q��	�	�	�B��J�J���r�S�#�J��c�
�#;�<��|�|�A�q��7�H�C����F���,�-�	�Q��	�	�2�9�9�>�>�"�b�1�	2�B��L�L���A��L����� �	�Q��	�	�	�B��J�J���r�S�#�J��s��#<�=rztest_bboxtight.png�bbox_inches�tight)r�r��
savefig_kwargc�X�tjd��\}}|jd�y�Nr6r7r$�r:rAr�r=s  r�test_bboxtightr4�s"���l�l�-�0�G�C���M�M�"�rz
test_bbox.pngr�g@rc�X�tjd��\}}|jd�yr2r3r=s  r�	test_bboxr6s"��
�l�l�-�0�G�C���M�M�"�rc��tjddddddi��\}\}}}|jdd�|jd	�|jd
d�|jd	�|jdd�|jd	�|j	|||f��|j�|jjj�|jjj�|jjj�g}tjj|dj|d
jg|djdd��|djdk\sJ�y)z�
    Tests for a bug in which constrained layout and align_ylabels on
    three unevenly sized subplots, one of whose y tick labels include
    negative numbers, drives the non-negative subplots' y labels off
    the edge of the plot
    r	rr6)g������@r�r�)rrgffffff�?)r8r��gridspec_kwr�Labelg��g�?)rDrr)r�atolN)
r:rA�set_ylimr�
align_ylabelsrmrr��get_window_extentr)r�r�r
)r>r�r�r��after_aligns     r�test_align_labelsr?sM���<�<��1�]�08�5D�GL�5M�N��C��#�s�C�
�L�L��A���N�N�7���L�L��s���N�N�7���L�L��A���N�N�7�����3��S�/��*���� ��9�9�?�?�4�4�6��9�9�?�?�4�4�6��9�9�?�?�4�4�6�8�K��J�J����A�� 1� 1�;�q�>�3D�3D�E�*�1�~�0�0�q�u��F��q�>����!�!�!rc��tjd��\}}|j�|j|jj��}|j
d�|jd�|j�|j|jj��}|j|jdzkDsJ�|j|jdzkDsJ�tjd��\}}|j�|j|jj��}|j
dd��|jdd��|j�|j|jj��}|j|jdzkDsJ�|j|jdzkDsJ�y)	Nr6r7�Boo�Booyg$@r�)r1r�)
r:rArm�
get_tightbbox�canvas�get_renderer�	supxlabel�	supylabelror
)r>r�pos0�poss    r�test_suplabelsrJ0sj���l�l�-�0�G�C����� �
���C�J�J�3�3�5�6�D��M�M�%���M�M�&����� �
�
�
�3�:�:�2�2�4�
5�C��6�6�D�G�G�d�N�"�"�"��6�6�D�G�G�d�N�"�"�"��l�l�-�0�G�C����� �
���C�J�J�3�3�5�6�D��M�M�%�3�M���M�M�%�3�M����� �
�
�
�3�:�:�2�2�4�
5�C��6�6�D�G�G�d�N�"�"�"��6�6�D�G�G�d�N�"�"�"rc��tj�}|jdd�}|j|dd�dd�f�}|j	�y)Nr	rr)r:r;r`r<rm)r>rc�sps   r�test_gridspec_addressingrMGsE��

�*�*�,�C�	�	�	�!�Q�	�B�	����A�B���F��	$�B���� rc��tjd��\}}|j�tjt
d��5tj�\}}|j
d�|j�ddd�tjt
d��5tj�\}}|j
ddd��|j�ddd�y#1swY�ixYw#1swYyxYw)NTrjzwill be deprecatedryrGr�)r:rArmr{r|�PendingDeprecationWarning�set_constrained_layoutr=s  r�test_discouraged_apirQNs����l�l�d�3�G�C����� �	���/�0�
2�%��,�,�.���R��"�"�4�(��"�"�$�	%�
���/�0�
2�%��,�,�.���R��"�"�T�D�#A�B��"�"�$�	%�%�
%�%��%�%�s�9C&�!<C2�&C/�2C;c�Z�tjddi��\}}|j�y)Nr�rGrj)r:rArmr=s  r�test_kwargsrS_s$���l�l�w��o�>�G�C����� rc�<�tjd��\}}|j�jgd���|j	�|j�}|jdksJ�|jdksJ�tjd��\}}|j�jgd���|j	�|j�}|jdksJ�|jdksJ�|jdkDsJ�|jdkDsJ�y)Nr6r7)rrr�r�)�rectr�r%r�)
r:rAr�r�rmrn�x1rpr
ro)r>r�pposs   r�	test_rectrXds����l�l�-�0�G�C��������%5��6���� �
�?�?��D��7�7�S�=��=��7�7�S�=��=��l�l�-�0�G�C��������%9��:���� �
�?�?��D��7�7�S�=��=��7�7�S�=��=��7�7�S�=��=��7�7�S�=��=rc��tjddddd��\}}|jD]1}|jtj
j
dd��}�3|j|��|j�|dj�}tjj|jd	d
��|dj�}tjj|jd
d
��tjdddddd��\}}|jD]1}|jtj
j
dd��}�3|j||��|j�|dj�}tjj|jdd
��tjj|jdd
��|dj�}tjj|jdd
��tjj|jdd
��y)Nr	r�
compressedTr�r'r(r�g�X���?g����MbP?)r:r�g����z�?)r!r�)r8r�r�r�gGr�鷯?g����Q�?)rrgk+��ݓ�?go��T��?)r:rArBrr)r*�randnrJrmrnr�r�r
rVrpro)r>rDrrrIs     r�test_compressed1r\vs����|�|�A�q��#'��6�H�C���h�h�0��
�Y�Y�r�y�y���r�2�.�
/��0��L�L���L����� �

�d�)�
 �
 �
"�C��J�J���s�v�v�v�D��9�

�d�)�
 �
 �
"�C��J�J���s�v�v�v�D��9��|�|�A�q��#'��f�F�H�C���h�h�0��
�Y�Y�r�y�y���r�2�.�
/��0��L�L���L����� �

�d�)�
 �
 �
"�C��J�J���s�v�v�w�T��:��J�J���s�v�v�v�D��9�

�d�)�
 �
 �
"�C��J�J���s�v�v�v�D��9��J�J���s�v�v�v�D��9rz
arg, state)TT)FFrUc�^�tj|��\}}|j�|usJ�y)Nrj)r:rA�get_constrained_layout)�arg�stater>rs    r�test_set_constrained_layoutra�s-���l�l�c�2�G�C���%�%�'�5�0�0�0r)r]F)r])=�numpyr)r{�
matplotlibr��matplotlib.testing.decoratorsr�matplotlib.pyplot�pyplotr:�matplotlib.transforms�
transforms�mtransformsrrrr4r?rErLrSrYrhrwr�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�rrrr r#r-r4�Bboxr6r?rJrMrQrSrXr\�mark�parametrizera�rr�<module>rns����
��:��+�'�	�
��,�-�.�"�/�"��,�-�.�&�/�&��,�-�.�
*�/�
*��,�-�.�4�/�4��,�-�5�9�$�:�$��,�-�5�9�4�:�4�4?�(
%� �,�-�.�4�/�4�6�,�-�.�/�/�/��-�.�/�<�0�<��-�.�/�!�0�!�&�0�1�2�!�3�!�&�-�.�/��0��*�-�.�E�:�>�;�>��-�.�/�$�0�$��-�.�/�&�0�&��-�.�/�-�0�-��-�.�/�
�0�
� H�	H��3�3�
-��/�0�"�'�3�D�3�D�*
F�D�@�3�4�G�D��E���3�4�G�D�:�E�:�
>� �'�(�"�'�!.�� 8�:��:��
�?�#�"�'�!.�!1��!1�!1�C��8�c�1�X�2F�!G�!I�J��	J��
"�D#�.!�%�"!�
�$:�>����������J��d�^�T��	(��1�
�1r

Youez - 2016 - github.com/yon3zu
LinuXploit