| Server IP : 35.80.110.71 / Your IP : 216.73.216.143 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�c� � �X � d dl mZ d dlZd dlmZ d dlmZ d dl m
Z d dlm
Z d dlmZ edgdddi� � d
� � Z edgddi�� d
� � Z edgddid�� d� � Z edgdddi� � d� � Z edgdddi� � d� � Zd� Zd� Zd� Z edgdgdddi�� d� � Zy)� )�BytesION)�image_comparison)�
FuncFormatter�bbox_inches_tightT�bbox_inches�tight)�remove_text�
savefig_kwargc � � g d�g d�g d�g d�g d�g} dgdz x}}t | � }t j t |� � dz }g }d }t j t |� � }t j
d
d
� \ }} t
|� D ]6 }
| j || |
||dd�
� || |
z }|j dg� �8 t j g � t j dd� t j dgdz d�� |j dgdz dd�� |j � t j |||d�� y )N)iR iب i{% it� i} )iv� i�� i�0 i� i�r )i/\ i�: i�S i=� i�5 )iO2 i�? i�L i�� i )ia i� i|< iD� i-� � � g333333�?g�������?� �edge�b)�bottom�align�colorr )g333333�?皙�����?)�loc)r r z
lower left��bbox_to_anchorr r )�cellText� rowLabels� colLabelsr )�len�np�arange�zeros�plt�subplots�range�bar�append�xticks�xlim�legend�reverse�table)�data�
col_labels�
row_labels�rows�ind� cell_text�width�yoff�fig�ax�rows �B/usr/lib/python3/dist-packages/matplotlib/tests/test_bbox_tight.py�test_bbox_inches_tightr5 s0 � �
2�1�2�1�3� 5�D� "�d�Q�h�&�J���t�9�D�
�)�)�C�
�O�
$�s�
*�C��I��E�
�8�8�C�
�O�$�D��l�l�1�a� �G�C���T�{� ��
���s�D��I�u�T��s��K��d�3�i������"���� �J�J�r�N��H�H�Q��N��J�J��t�a�x�Z�(��J�J��t�a�x��l�J�C�
�����I�I�y�J�*��� � bbox_inches_tight_suptile_legend)r
c �v � t j t j d� d�� t j dd�� t j
d� t j d� d � } t j � j j t | � � t j d
� y )N�
za straight line)�label)g�������?r z
upper leftr z
Axis titlezFigure titlec �6 � t | � dk( ryt | � S )N� zThe number 4)�int�str)�y�poss r4 �y_formatterz:test_bbox_inches_tight_suptile_legend.<locals>.y_formatter6 s � ��q�6�Q�;�!��q�6�Mr6 zX axis)r �plotr r r&