OwlCyberSecurity - MANAGER
Edit File: table.cpython-38.pyc
U ��]wh � @ s� d Z ddlmZmZmZ ddlmZmZ ddlmZ ddl m Z ddlmZ ddl mZ G dd � d e�ZG d d� de�ZG dd � d e�Zejje�e�d� ejddd��ZdS )a� This module provides functionality to add a table to a plot. 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. � )�artist�cbook� docstring)�Artist�allow_rasterization)� Rectangle)�Text)�Bbox)�Pathc @ s� e Zd ZdZdZd dd �Zd d� Zdd � Zdd� Zdd� Z dd� Z dd� Zedd� �Z dd� Zdd� Zdd� Zejdd� �ZdS )!�Cella� A cell is a `.Rectangle` with some associated `.Text`. .. note: 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`. 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 spec The color of the cell border. facecolor : color spec 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`. g�������?�k�wT� Nc C s^ t j| ||||||d� | �d� |d kr.d}|| _t|d |d || d�| _| j�d� d S )N)�width�height�fill� edgecolor� facecolorF�right� r )�x�y�text�fontproperties)r �__init__�set_clip_on�_locr �_text) �self�xyr r r r r r �locr � r! �2/usr/lib/python3/dist-packages/matplotlib/table.pyr A s � �z Cell.__init__c C s t �| |� d| _d S �NT)r � set_transform�stale)r Ztransr! r! r"