3
$ßL]wh  ã               @   s°   d Z ddlmZmZm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 G dd	„ d	eƒZG d
d„ deƒZG dd„ deƒZejjejeƒd� ejddd„ƒZdS )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 Zd ZdZdZd dd	„Zd
d„ Zdd„ Zdd„ Zdd„ Z	dd„ Z
dd„ Zedd„ ƒZdd„ Zdd„ Zdd„ Zejdd„ ƒZdS )!Ú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� | jdƒ |d kr.d}|| _t|d |d ||	d�| _| j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!   ú8/tmp/pip-install-edjban26/matplotlib/matplotlib/table.pyr   A   s    	


zCell.__init__c             C   s   t j| |ƒ d| _d S )NT)r   Úset_transformÚstale)r   Ztransr!   r!   r"   r#   V   s    zCell.set_transformc             C   s   t j| |ƒ | jj|ƒ d S )N)r   Ú
set_figurer   )r   Zfigr!   r!   r"   r%   [   s    zCell.set_figurec             C   s   | j S )z!Return the cell `.Text` instance.)r   )r   r!   r!   r"   Úget_text_   s    zCell.get_textc             C   s   | j j|ƒ d| _dS )zSet the text fontsize.TN)r   Úset_fontsizer$   )r   Úsizer!   r!   r"   r'   c   s    zCell.set_fontsizec             C   s
   | j jƒ S )zReturn the cell fontsize.)r   Úget_fontsize)r   r!   r!   r"   r)   h   s    zCell.get_fontsizec             C   sL   | j ƒ }| j|ƒ}x4|dkrF|| jƒ krF|d8 }| j|ƒ | j|ƒ}qW |S )z9Shrink font size until the text fits into the cell width.r   )r)   Úget_required_widthÚ	get_widthr'   )r   ÚrendererÚfontsizeÚrequiredr!   r!   r"   Úauto_set_font_sizel   s    

zCell.auto_set_font_sizec             C   s8   | j ƒ sd S tj| |ƒ | j|ƒ | jj|ƒ d| _d S )NF)Úget_visibler   ÚdrawÚ_set_text_positionr   r$   )r   r,   r!   r!   r"   r1   w   s    
z	Cell.drawc       	      C   s¬   | j |ƒ}|j\}}}}| jjdƒ ||d  }| jdkrT| jjdƒ ||d  }nD| jdkrz| jjdƒ ||| j  }n| jjdƒ ||d| j   }| jj||fƒ dS )zlSet text up so it draws in the right place.

        Currently support 'left', 'center' and 'right'
        Úcenterg       @Úleftr   g      ð?N)Úget_window_extentÚboundsr   Zset_verticalalignmentr   Zset_horizontalalignmentÚPADZset_position)	r   r,   ÚbboxÚlÚbr   Úhr   r   r!   r!   r"   r2   ƒ   s    


zCell._set_text_positionc             C   s    | j j|ƒ}|j| jƒ ƒ}|jS )zY
        Return the text bounds as *(x, y, width, height)* in table coordinates.
        )r   r5   Úinverse_transformedZget_data_transformr6   )r   r,   r8   Zbboxar!   r!   r"   Úget_text_boundsœ   s    zCell.get_text_boundsc             C   s$   | j |ƒ\}}}}|dd| j   S )z/Return the minimal required width for the cell.g      ð?g       @)r=   r7   )r   r,   r9   r:   r   r;   r!   r!   r"   r*   ¤   s    zCell.get_required_widthc             K   s   | j j|ƒ d| _dS )zX
        Update the text properties.

        Valid kwargs are
        %(Text)s
        TN)r   Úupdater$   )r   Úkwargsr!   r!   r"   Úset_text_props©   s    zCell.set_text_props)r   r   Tr   NN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r7   r   r#   r%   r&   r'   r)   r/   r   r1   r2   r=   r*   r   Údedent_interpdr@   r!   r!   r!   r"   r      s$       
r   c                   sT   e Zd ZdZdZdedddœZ‡ fdd„Zed	d
„ ƒZej	dd
„ ƒZdd„ Z
‡  ZS )Ú
CustomCellz?
    A `.Cell` subclass with configurable edge visibility.
    ZBRTLr   ZBTZRL)ÚopenÚclosedZ
horizontalZverticalc               s   t ƒ j||Ž || _d S )N)Úsuperr   Úvisible_edges)r   rJ   Úargsr?   )Ú	__class__r!   r"   r   Á   s    zCustomCell.__init__c             C   s   | j S )a"  
        The cell edges to be drawn with a line.

        Reading this property returns a substring of 'BRTL' (bottom, right,
        top, left').

        When setting this property, you can use a substring of 'BRTL' or one
        of {'open', 'closed', 'horizontal', 'vertical'}.
        )Ú_visible_edges)r   r!   r!   r"   rJ   Å   s    zCustomCell.visible_edgesc                sr   |d krˆ j ˆ _nV|ˆ jkr*ˆ j| ˆ _n>t‡ fdd„|D ƒƒrbtdj|djˆ jƒdjˆ j ƒƒƒ‚|ˆ _dˆ _d S )Nc             3   s   | ]}|ˆ j kV  qd S )N)Ú_edges)Ú.0Úedge)r   r!   r"   ú	<genexpr>Ù   s    z+CustomCell.visible_edges.<locals>.<genexpr>z=Invalid edge param {}, must only be one of {} or string of {}z, T)rN   rM   Ú_edge_aliasesÚanyÚ
ValueErrorÚformatÚjoinr$   )r   Úvaluer!   )r   r"   rJ   Ò   s    


c             C   s„   t jg}x2| jD ](}|| jkr,|jt jƒ q|jt jƒ qW t j|dd… krXt j|d< t ddgddgddgddgddgg|dd�S )z*Return a `.Path` for the `.visible_edges`.r   Ng        g      ð?T)Úreadonlyéÿÿÿÿ)r
   ZMOVETOrN   rM   ÚappendZLINETOZ	CLOSEPOLY)r   ÚcodesrP   r!   r!   r"   Úget_pathâ   s    

 zCustomCell.get_path)rA   rB   rC   rD   rN   rR   r   ÚpropertyrJ   Úsetterr\   Ú__classcell__r!   r!   )rL   r"   rF   µ   s   rF   c               @   s  e Zd ZdZdddddddd	d
ddddddddddœZdZdZdDdd„Zdd„ Zdd„ Z	dd„ Z
edd „ ƒZejd!d „ ƒZd"d#„ Zed$d%„ ƒZd&d'„ Zd(d)„ Zd*d+„ Zejd,ƒeƒZd-d.„ Zd/d0„ Zd1d2„ Zd3d4„ ZdEd6d7„Zd8d9„ Zd:d;„ Zd<d=„ Zd>d?„ Zd@dA„ Z dBdC„ Z!dS )FÚTableaD  
    A table of cells.

    The table consists of a grid of cells, which are indexed by (row, column).

    For a simple table, you'll have a full grid of cells with indices from
    (0, 0) to (num_rows-1, num_cols-1), in which the cell (0, 0) is positioned
    at the top left. However, you can also add cells with negative indices.
    You don't have to add a cell to every grid position, so you can create
    tables that have holes.

    *Note*: You'll usually not create an empty table from scratch. Instead use
    `~matplotlib.table.table` to create a table from data.
    r   r   é   é   é   é   é   é   é   é	   é
   é   é   é   é   é   é   é   )Úbestzupper rightz
upper leftz
lower leftzlower rightzcenter leftzcenter rightzlower centerzupper centerr3   z	top rightztop leftzbottom leftzbottom rightr   r4   ÚtopÚbottomg{®Gáz”?Nc             K   s¤   t j| ƒ t|tƒrJ|| jkr@tjddj|dj| jƒƒd� d}| j| }| j	|j
ƒ || _|| _|| _| j|jƒ i | _d| _g | _d| _| j|ƒ | jdƒ dS )	aü  
        Parameters
        ----------
        ax : `matplotlib.axes.Axes`
            The `~.axes.Axes` to plot the table into.
        loc : str
            The position of the cell with respect to *ax*. This must be one of
            the `~.Table.codes`.
        bbox : `.Bbox` or None
            A bounding box to draw the table into. If this is not *None*, this
            overrides *loc*.

        Other Parameters
        ----------------
        **kwargs
            `.Artist` properties.
        z3.1zwUnrecognized location {!r}. Falling back on 'bottom'; valid locations are
	{}
This will raise an exception %(removal)s.z
	)Úmessagers   NTF)r   r   Ú
isinstanceÚstrr[   r   Zwarn_deprecatedrU   rV   r%   ÚfigureÚ_axesr   Ú_bboxr#   Z	transAxesÚ_cellsrN   Ú_autoColumnsÚ_autoFontsizer>   r   )r   Úaxr    r8   r?   r!   r!   r"   r     s&    




zTable.__init__c             O   s.   d}t |f|žd| ji|—Ž}|| ||f< |S )ac  
        Create a cell and add it to the table.

        Parameters
        ----------
        row : int
            Row index.
        col : int
            Column index.
        *args, **kwargs
            All other parameters are passed on to `Cell`.

        Returns
        -------
        cell : `.CustomCell`
            The created cell.

        r   rJ   )r   r   )rF   Úedges)r   ÚrowÚcolrK   r?   r   Úcellr!   r!   r"   Úadd_cellM  s    zTable.add_cellc             C   s‚   t |tƒstdƒ‚y|d |d  }}W n tk
rD   tdƒ‚Y nX |j| jƒ |j| jƒ ƒ |j	dƒ || j
||f< d| _dS )z8
        Set a custom cell in a given position.
        zTable only accepts CustomCellr   r   z0Only tuples length 2 are accepted as coordinatesFTN)ru   rF   Ú	TypeErrorÚ	ExceptionÚKeyErrorr%   rw   r#   Úget_transformr   rz   r$   )r   Úpositionr�   r   r€   r!   r!   r"   Ú__setitem__e  s    

zTable.__setitem__c             C   s
   | j | S )z-Retrieve a custom cell from a given position.)rz   )r   r‡   r!   r!   r"   Ú__getitem__u  s    zTable.__getitem__c             C   s   | j S )aœ  
        The default value of `~.CustomCell.visible_edges` for newly added
        cells using `.add_cell`.

        Notes
        -----
        This setting does currently only affect newly created cells using
        `.add_cell`.

        To change existing cells, you have to set their edges explicitly::

            for c in tab.get_celld().values():
                c.visible_edges = 'horizontal'

        )rN   )r   r!   r!   r"   r~   y  s    zTable.edgesc             C   s   || _ d| _d S )NT)rN   r$   )r   rW   r!   r!   r"   r~   Œ  s    c             C   s    | j d | jj | jjj d S )Ng      R@g333333ó?)ÚFONTSIZErw   Zdpirx   r8   r   )r   r!   r!   r"   Ú_approx_text_height‘  s    zTable._approx_text_heightc             C   sx   |d kr| j j}|d kr tdƒ‚| jƒ s,d S |jdƒ | j|ƒ x"t| jƒD ]}| j| j|ƒ qLW |j	dƒ d| _
d S )NzNo renderer definedÚtableF)rw   Ú_cachedRendererÚRuntimeErrorr0   Z
open_groupÚ_update_positionsÚsortedrz   r1   Zclose_groupr$   )r   r,   Úkeyr!   r!   r"   r1   •  s    


z
Table.drawc                s0   ‡ fdd„| j jƒ D ƒ}tj|ƒ}|j| jƒ ƒS )zrGet a bbox, in axes co-ordinates for the cells.

        Only include those in the range (0,0) to (maxRow, maxCol)c                s.   g | ]&\\}}}|d kr|d kr|j ˆ ƒ‘qS )r   )r5   )rO   r   r€   r�   )r,   r!   r"   ú
<listcomp>¯  s   
z(Table._get_grid_bbox.<locals>.<listcomp>)rz   Úitemsr	   Úunionr<   r†   )r   r,   Úboxesr8   r!   )r,   r"   Ú_get_grid_bbox«  s    

zTable._get_grid_bboxc                sh   | j d k	r| j | |ƒS | jj‰ ˆ d k	r\‡ fdd„| jjƒ D ƒ}tj|ƒ}|j|j|j	ƒi fS di fS d S )Nc                s.   g | ]&\\}}}|d kr|d kr|j ˆ ƒ‘qS )r   )r5   )rO   r   r€   r�   )r,   r!   r"   r’   ¾  s   
z"Table.contains.<locals>.<listcomp>F)
Z	_containsrw   r�   rz   r“   r	   r”   Úcontainsr   r   )r   Z
mouseeventr•   r8   r!   )r,   r"   r—   µ  s    


zTable.containsc             C   s   t | jjƒ ƒS )z*Return the Artists contained by the table.)Úlistrz   Úvalues)r   r!   r!   r"   Úget_childrenÆ  s    zTable.get_childrenz3.0c                s"   ‡ fdd„| j jƒ D ƒ}tj|ƒS )z6Return the bounding box of the table in window coords.c                s   g | ]}|j ˆ ƒ‘qS r!   )r5   )rO   r�   )r,   r!   r"   r’   Í  s   z+Table.get_window_extent.<locals>.<listcomp>)rz   r™   r	   r”   )r   r,   r•   r!   )r,   r"   r5   Ë  s    
zTable.get_window_extentc             C   sü   i }i }xV| j jƒ D ]H\\}}}|j|dƒ}t||jƒ ƒ||< |j|dƒ}t||jƒ ƒ||< qW d}i }	x$t|ƒD ]}||	|< ||| 7 }qrW d}
i }x(t|dd�D ]}|
||< |
|| 7 }
q¤W x6| j jƒ D ](\\}}}|j|	| ƒ |j|| ƒ qÌW dS )zV
        Calculate row heights and column widths; position cells accordingly.
        g        r   T)ÚreverseN)	rz   r“   Ú
setdefaultÚmaxÚ
get_heightr+   r�   Úset_xÚset_y)r   ZwidthsZheightsr   r€   r�   r   r   ZxposZleftsZyposZbottomsr!   r!   r"   Ú_do_cell_alignmentÑ  s(    zTable._do_cell_alignmentc             C   sV   yt |ƒ W n$ ttfk
r0   | jj|ƒ Y nX x|D ]}| jj|ƒ q8W d| _dS )zÔ
        Automatically set the widths of given columns to optimal sizes.

        Parameters
        ----------
        col : int or sequence of ints
            The indices of the columns to auto-scale.
        TN)Úiterrƒ   ÚAttributeErrorr{   rZ   r$   )r   r€   r�   r!   r!   r"   Úauto_set_column_widthð  s    

zTable.auto_set_column_widthc                sN   ‡ fdd„| j jƒ D ƒ}t‡fdd„|D ƒdd�}x|D ]}|j|ƒ q8W dS )z#Automatically set width for column.c                s    g | ]\}}|d  ˆ kr|‘qS )r   r!   )rO   r‘   r�   )r€   r!   r"   r’     s    z0Table._auto_set_column_width.<locals>.<listcomp>c             3   s   | ]}|j ˆ ƒV  qd S )N)r*   )rO   r�   )r,   r!   r"   rQ     s    z/Table._auto_set_column_width.<locals>.<genexpr>r   )ÚdefaultN)rz   r“   r�   Ú	set_width)r   r€   r,   ÚcellsÚ	max_widthr�   r!   )r€   r,   r"   Ú_auto_set_column_width  s
    
zTable._auto_set_column_widthTc             C   s   || _ d| _dS )zAutomatically set font size.TN)r|   r$   )r   rW   r!   r!   r"   r/     s    zTable.auto_set_font_sizec             C   s”   t | jƒdkrd S tt| jjƒ ƒƒjƒ }g }xD| jjƒ D ]6\}}|d | jkrPq8|j|ƒ}t	||ƒ}|j
|ƒ q8W x| jjƒ D ]}|j|ƒ q~W d S )Nr   r   )Úlenrz   Únextr¢   r™   r)   r“   r{   r/   ÚminrZ   r'   )r   r,   r-   r§   r‘   r�   r(   r!   r!   r"   Ú_auto_set_font_size  s    

zTable._auto_set_font_sizec             C   s<   x6| j jƒ D ](}|j|jƒ | ƒ |j|jƒ | ƒ qW dS )z<Scale column widths by *xscale* and row heights by *yscale*.N)rz   r™   r¦   r+   Z
set_heightrž   )r   ZxscaleZyscaleÚcr!   r!   r"   Úscale#  s    zTable.scalec             C   s(   x| j jƒ D ]}|j|ƒ qW d| _dS )a>  
        Set the font size, in points, of the cell text.

        Parameters
        ----------
        size : float

        Notes
        -----
        As long as auto font size has not been disabled, the value will be
        clipped such that the text fits horizontally into the cell.

        You can disable this behavior using `.auto_set_font_size`.

        >>> the_table.auto_set_font_size(False)
        >>> the_table.set_fontsize(20)

        However, there is no automatic scaling of the row height so that the
        text may exceed the cell boundary.
        TN)rz   r™   r'   r$   )r   r(   r�   r!   r!   r"   r'   )  s    zTable.set_fontsizec             C   sF   x@| j jƒ D ]2}|jƒ |jƒ  }}|j|| ƒ |j|| ƒ qW dS )z-Move all the artists by ox, oy (axes coords).N)rz   r™   Zget_xZget_yrŸ   r    )r   ÚoxÚoyr®   r   r   r!   r!   r"   Ú_offsetB  s    zTable._offsetc              C   s,  x| j D ]}| j||ƒ qW | jr,| j|ƒ | jƒ  | j|ƒ}|j\}}}}| jd k	r”| j\}}	}
}| j|
| || ƒ || }|	| }| jƒ  �nˆt	t
| jƒƒ\}}}}}}}}}}}}}}}}}}d|d  | }d|d  | }| j|||fk�r| j| }| j|||||fk�r*d|| | j  }| j||||fk�rPd|| | j  }| j|||fk�rl| j| }| j|||fk�rŽd|d  | }| j|||fk�r°d|d  | }| j|||fk�rÌ||  }| j|||fk�ræd| }| j|||fk�r d| }| j|||fk�r||  }| j||ƒ d S )Ng      à?ra   r   g      ð?)r{   r©   r|   r­   r¡   r–   r6   ry   r¯   Úrangerª   r[   r   ÚAXESPADr²   ) r   r,   r€   r8   r9   r:   r   r;   ZrlÚrbÚrwZrhr°   r±   ZBESTZURZULZLLZLRZCLÚCRZLCZUCÚCZTRZTLZBLZBRÚRÚLÚTÚBr!   r!   r"   r�   I  sJ    


2



zTable._update_positionsc             C   s   | j S )a  
        Return a dict of cells in the table mapping *(row, column)* to
        `.Cell`\s.

        Notes
        -----
        You can also directly index into the Table object to access individual
        cells::

            cell = table[row, col]

        )rz   )r   r!   r!   r"   Ú	get_celld€  s    zTable.get_celld)NN)T)"rA   rB   rC   rD   r[   rŠ   r´   r   r‚   rˆ   r‰   r]   r~   r^   r‹   r   r1   r–   r—   rš   r   Ú
deprecatedZget_child_artistsr5   r¡   r¤   r©   r/   r­   r¯   r'   r²   r�   r½   r!   r!   r!   r"   r`   ö   sX   
.

7r`   )r`   Nr   r4   r3   rs   rH   c             K   sÊ  |dkr|dkrt dƒ‚|dkrDt|ƒ}t|d ƒ}dg| g| }t|ƒ}t|d ƒ}x&|D ]}t|ƒ|kr^t dj|ƒƒ‚q^W |dk	rÌt|ƒ|kr¢t dj|ƒƒ‚x6|D ]}t|ƒ|kr¨t dj|ƒƒ‚q¨W nd| g| }|dkrðd	| g| }d}|dk�r|dk	�r.dg| }|d }n|dk�r.d| }|dk	�rTt|ƒ|k�rTt d
j|ƒƒ‚d}|dk�r~|	dk	�rxdg| }nd}n|	dk�r�d| }	|dk�r¨d| g| }t| ||f|Ž}||_|jƒ }xVt|ƒD ]J}xBt|ƒD ]6}|j|| ||| ||| | || | |d� �qÞW �qÐW |dk	�r`x6t|ƒD ]*}|jd||| ||| |	| |
d� �q2W |dk	�r¼x<t|ƒD ]0}|j|| d|�pŒd||| || |d� �qtW |dk�r¼|jdƒ | j	|ƒ |S )aµ	  
    Add a table to an `~.axes.Axes`.

    At least one of *cellText* or *cellColours* must be specified. These
    parameters must be 2D lists, in which the outer lists define the rows and
    the inner list define the column values per row. Each row must have the
    same number of elements.

    The table can optionally have row and column headers, which are configured
    using *rowLabels*, *rowColours*, *rowLoc* and *colLabels*, *colColours*,
    *colLoc* respectively.

    For finer grained control over tables, use the `.Table` class and add it to
    the axes with `.Axes.add_table`.

    Parameters
    ----------
    cellText : 2D list of str, optional
        The texts to place into the table cells.

        *Note*: Line breaks in the strings are currently not accounted for and
        will result in the text exceeding the cell boundaries.

    cellColours : 2D list of matplotlib color specs, optional
        The background colors of the cells.

    cellLoc : {'left', 'center', 'right'}, default: 'right'
        The alignment of the text within the cells.

    colWidths : list of float, optional
        The column widths in units of the axes. If not given, all columns will
        have a width of *1 / ncols*.

    rowLabels : list of str, optional
        The text of the row header cells.

    rowColours : list of matplotlib color specs, optional
        The colors of the row header cells.

    rowLoc : {'left', 'center', 'right'}, optional, default: 'left'
        The text alignment of the row header cells.

    colLabels : list of str, optional
        The text of the column header cells.

    colColours : list of matplotlib color specs, optional
        The colors of the column header cells.

    rowLoc : {'left', 'center', 'right'}, optional, default: 'left'
        The text alignment of the column header cells.

    loc : str, optional
        The position of the cell with respect to *ax*. This must be one of
        the `~.Table.codes`.

    bbox : `.Bbox`, optional
        A bounding box to draw the table into. If this is not *None*, this
        overrides *loc*.

    edges : substring of 'BRTL' or {'open', 'closed', 'horizontal', 'vertical'}
        The cell edges to be drawn with a line. See also
        `~.CustomCell.visible_edges`.

    Other Parameters
    ----------------
    **kwargs
        `.Table` properties.

    %(Table)s

    Returns
    -------
    table : `~matplotlib.table.Table`
        The created table.
    NzZAt least one argument from "cellColours" or "cellText" must be provided to create a table.r   r   z+Each row in 'cellText' must have {} columnsz'cellColours' must have {} rowsz.Each row in 'cellColours' must have {} columnsr   g      ð?z!'rowLabels' must be of length {0}r   )r   r   r   r   r    gVçž¯Ò<rY   rY   )
rT   rª   rU   r`   r~   r‹   r³   r‚   r¤   Z	add_table)r}   ZcellTextZcellColoursZcellLocZ	colWidthsZ	rowLabelsZ
rowColoursZrowLocZ	colLabelsZ
colColoursZcolLocr    r8   r~   r?   ZrowsÚcolsr   ZrowLabelWidthÚoffsetrŒ   r   r€   r!   r!   r"   rŒ   “  s†    T



















rŒ   )NNr   NNNr4   NNr3   rs   NrH   )rD   r   r   r   r   r   r   Zpatchesr   r   r   Z
transformsr	   Úpathr
   r   rF   r`   Zinterpdr>   ZkwdocrE   rŒ   r!   r!   r!   r"   Ú<module>   s(    A       