| Server IP : 202.61.199.114 / Your IP : 216.73.217.139 Web Server : nginx/1.22.1 System : Linux de.arni-solutions.de 6.1.0-49-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.174-1 (2026-05-26) x86_64 User : web20 ( 1018) PHP Version : 8.4.23 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/local/lib/python3.9/dist-packages/matplotlib/__pycache__/ |
Upload File : |
a
���hj � @ s� d Z ddlZddlmZmZ ddlmZmZ ddl m
Z
ddlmZ ddl
mZ dd lmZ G d
d� de
�ZeZG dd
� d
e�Zejddd��ZdS )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.
� N� )�_api�
_docstring)�Artist�allow_rasterization)� Rectangle)�Text)�Bbox)�Pathc s� e Zd ZdZdZdZdeddd�Zdd d
dddd
d�� fdd�
Ze� ddd�� fdd��Z
� fdd�Zdd� Zdd� Z
dd� Zdd� Ze� fd d!��Zd"d#� Zd$d%� Zd&d'� Zejd(d)� �Zed*d+� �Zejd,d+� �Zd-d.� Z� ZS )/�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�������?ZBRTL� ZBTZRL)�open�closedZ
horizontalZvertical�k�wT�rightNr )� edgecolor� facecolor�fill�text�loc�fontproperties�
visible_edgesc sR t � j||||||d� | �d� |
| _|| _t|d |d d|| |dd�| _dS )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 : :mpltype:`color`, default: 'k'
The color of the cell border.
facecolor : :mpltype:`color`, default: 'w'
The cell facecolor.
fill : bool, default: True
Whether the cell background is filled.
text : str, optional
The cell text.
loc : {'right', 'center', 'left'}
The alignment of the text within the cell.
fontproperties : dict, optional
A dict defining the font properties of the text. Supported keys and
values are the keyword arguments accepted by `.FontProperties`.
visible_edges : {'closed', 'open', 'horizontal', 'vertical'} or substring of 'BRTL'
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�heightr r r Fr r �center)�x�yZclip_onr r ZhorizontalalignmentZverticalalignmentN)�super�__init__�set_clip_onr �_locr �_text)�self�xyr r r r r r r r r �� __class__� �:/usr/local/lib/python3.9/dist-packages/matplotlib/table.pyr 8 s '�
�z
Cell.__init__�3.8Ztrans�tc s t � �|� d| _d S �NT)r �
set_transform�stale)r# r* r% r'