File: //opt/alt/python27/lib64/python2.7/site-packages/matplotlib/table.pyo
�
�)�Uc
@ s
d Z d d l m Z d d l Z d d l Z d d l m Z m Z d d l m Z d d l m
Z
d d l m Z d d l
m Z d d l m Z d
e f d � � YZ d e f d
� � YZ e e d e e e d e e d d e d � Z e j j d e j e � � d S( sG
Place a table below the x-axis at location loc.
The table consists of a grid of cells.
The grid need not be rectangular and can have holes.
Cells are added by specifying their row and column.
For the purposes of positioning the cell at (0, 0) is
assumed to be at the top left and the cell at (max_row, max_col)
is assumed to be at bottom right.
You can add additional cells outside this range to have convenient
ways of positioning more interesting grids.
Author : John Gill <jng@europe.renre.com>
Copyright : 2004 John Gill and John Hunter
License : matplotlib license
i����( t divisionN( t Artistt allow_rasterization( t Rectangle( t is_string_like( t docstring( t Text( t Bboxt Cellc B s� e Z d Z d Z d d e d d d d � Z d � Z d � Z d � Z d � Z
d
� Z d � Z e
d � � Z d
� Z d � Z d � Z d � Z RS( s;
A cell is a Rectangle with some associated text.
g�������?t kt wt c
C s� t j | | d | d | d | d | �| j t � | d k rJ d } n | | _ t d | d d | d d
| d | � | _ | j j t � d S( Nt widtht heightt edgecolort facecolort rightt xi t yi t textt fontproperties( R t __init__t set_clip_ont Falset Nonet _locR t _text(
t selft xyR R
R R t fillR t locR ( ( sC /opt/alt/python27/lib64/python2.7/site-packages/matplotlib/table.pyR * s
c C s t j | | � d S( N( R t
set_transform( R t trans( ( sC /opt/alt/python27/lib64/python2.7/site-packages/matplotlib/table.pyR @ s c C s$ t j | | � | j j | � d S( N( R t
set_figureR ( R t fig( ( sC /opt/alt/python27/lib64/python2.7/site-packages/matplotlib/table.pyR! D s c C s | j S( s Return the cell Text intance( R ( R ( ( sC /opt/alt/python27/lib64/python2.7/site-packages/matplotlib/table.pyt get_textH s c C s | j j | � d S( N( R t set_fontsize( R t size( ( sC /opt/alt/python27/lib64/python2.7/site-packages/matplotlib/table.pyR$ L s c C s
| j j � S( s Return the cell fontsize( R t get_fontsize( R ( ( sC /opt/alt/python27/lib64/python2.7/site-packages/matplotlib/table.pyR&