Axes.
table
(cellText=None, cellColours=None, cellLoc='right', colWidths=None, rowLabels=None, rowColours=None, rowLoc='left', colLabels=None, colColours=None, colLoc='center', loc='bottom', bbox=None, edges='closed', **kwargs)¶Add a table to an 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
cellColours : 2D list of matplotlib color specs, optional
cellLoc : {'left', 'center', 'right'}, default: 'right'
colWidths : list of float, optional
rowLabels : list of str, optional
rowColours : list of matplotlib color specs, optional
rowLoc : {'left', 'center', 'right'}, optional, default: 'left'
colLabels : list of str, optional
colColours : list of matplotlib color specs, optional
colLoc : {'left', 'center', 'right'}, optional, default: 'left'
loc : str, optional
bbox :
edges : substring of 'BRTL' or {'open', 'closed', 'horizontal', 'vertical'}
|
||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Returns: | table :
|
||||||||||||||||||||||||||||||||||||||||||||
Other Parameters: | **kwargs
|