| 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 : |
�
G8�czU � � � d dl Zd dlZd dlZd dlmZ d dlmZ d dl
mZ d dlm
Z
mZ dVd�ZdWd�Z edg� d� � Z edg� d � � Z ed
g� d� � Z edg� d
� � Z edgd�� d� � Z edgd�� d� � Zd� Zd� Z edg� d� � Z edg� d� � Z edg� d� � Z edg� d� � Z edg� d� � Z ed g� d!� � Z ed"gd#�� d$� � Z ed%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� � Z0 edEgd4d5dA ejb dFd gdGdHgg� i�C� dI� � Z2dJ� Z3dK� Z4dL� Z5dM� Z6dN� Z7dO� Z8dP� Z9ejt jw dQdRdSi d4fdTdid4fg� dU� � Z<y)X� N)�image_comparison)�gridspec�tickerc �
� | j ddg� | j d�� |s:| j d|�� | j d|�� | j d|�� y | j g � | 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_plotr sq � ��G�G�Q��F�O����A����
�
�
�i�(�
�3�
�
�
�i�(�
�3�
���W�x��0�
���2��
���2�� c � � d\ }}t j t dd|z |� t dd|z |� f \ }}d|dz z
|dz z |dz z t j |dz |dz z
� z }| j |||d d�d d�f d d
dd�
� }| j d|�� | j
d|�� | j d|�� |S )N)�333333�?r ���r r � @� r ����RdBu_rg �� �?T)�cmap�vmin�vmax�
rasterizedr r
r r )�np�mgrid�slice�exp�
pcolormeshr r r )r r �dx�dy�y�x�z�pcms r �example_pcolorr4 s� � �
�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�,��Jr zconstrained_layout1.pngc �j � t j d�� } | j � }t |d�� y)z,Test constrained_layout for a single subplot�constrained��layout� r
N)�plt�figure�add_subplotr ��figr s r �test_constrained_layout1r? $ s( � � �*�*�M�
*�C� ��� �B���b�!r zconstrained_layout2.pngc �v � t j ddd�� \ } }|j D ] }t |d�� � y)z(Test constrained_layout for 2x2 subplotsr r6 r7 r9 r
N)r: �subplots�flatr �r>