| Server IP : 35.80.110.71 / Your IP : 216.73.216.221 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/__pycache__/ |
Upload File : |
�
G8�c�h � � � d Z ddlmZmZ ddlmZmZ ddlmZ ddl m
Z
ddlmZ ddl
mZ G d� d e� ZeZ G d
� de� Zej$ dd
�� Zy)a$
Tables drawing.
.. note::
The table implementation in Matplotlib is lightly maintained. For a more
featureful table implementation, you may wish to try `blume
<https://github.com/swfiua/blume>`_.
Use the factory function `~matplotlib.table.table` to create a ready-made
table from texts. If you need more control, use the `.Table` class and its
methods.
The table consists of a grid of cells, which are indexed by (row, column).
The cell (0, 0) is positioned at the top left.
Thanks to John Gill for providing the class and table.
� )�_api�
_docstring)�Artist�allow_rasterization)� Rectangle)�Text)�Bbox)�Pathc �* � � e Zd ZdZdZ dZdeddd�Z ej dd �
� ddd�� fd
�� Z � fd�Z
� fd�Zd� Zd� Z
d� Zd� Ze� fd�� Zd� Zd� Zd� Zej, d� � Zed� � Zej4 d� � Zd� Z� xZS )�Cellz�
A cell is a `.Rectangle` with some associated `.Text`.
As a user, you'll most likely not creates cells yourself. Instead, you
should use either the `~matplotlib.table.table` factory function or
`.Table.add_cell`.
g�������?�BRTL� �BT�RL)�open�closed�
horizontal�verticalz3.6� edgecolor)�namer )�
visible_edgesc
� �� t �| � ||||||�� | j d� |
| _ |�d}|| _ t |d |d d|| |d�� | _ y) a>
Parameters
----------
xy : 2-tuple
The position of the bottom left corner of the cell.
width : float
The cell width.
height : float
The cell height.
edgecolor : color
The color of the cell border.
facecolor : color
The cell facecolor.
fill : bool
Whether the cell background is filled.
text : str
The cell text.
loc : {'left', 'center', 'right'}, default: 'right'
The alignment of the text within the cell.
fontproperties : dict
A dict defining the font properties of the text. Supported keys and
values are the keyword arguments accepted by `.FontProperties`.
visible_edges : str, default: 'closed'
The cell edges to be drawn with a line: a substring of 'BRTL'
(bottom, right, top, left), or one of 'open' (no edges drawn),
'closed' (all edges drawn), 'horizontal' (bottom and top),
'vertical' (right and left).
)�width�height�fillr � facecolorFN�right� r �center)�x�y�clip_on�text�fontproperties�horizontalalignment�verticalalignment)�super�__init__�set_clip_onr �_locr �_text)�self�xyr r r r r r# �locr$ r � __class__s ��2/usr/lib/python3/dist-packages/matplotlib/table.pyr( z
Cell.__init__6 st �� �P ����5��d�#,� � � C������*��� �;��C��� ��B�q�E�R��U�E�#�N�.1�X�O��
� c �2 �� t �| � |� d| _ y �NT)r'