You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.
Dismiss alert
<divid="unreleased-message"> You are reading an old version of the documentation (v3.2.2). For the latest version see <ahref="https://matplotlib.org/stable/api/table_api.html">https://matplotlib.org/stable/api/table_api.html</a></div>
<spanid="matplotlib-table"></span><h1><codeclass="docutils literal notranslate"><spanclass="pre">matplotlib.table</span></code><aclass="headerlink" href="#module-matplotlib.table" title="Permalink to this headline">¶</a></h1>
<p>This module provides functionality to add a table to a plot.</p>
<p>Use the factory function <aclass="reference internal" href="#matplotlib.table.table" title="matplotlib.table.table"><codeclass="xref py py-obj docutils literal notranslate"><spanclass="pre">table</span></code></a> to create a ready-made
table from texts. If you need more control, use the <aclass="reference internal" href="#matplotlib.table.Table" title="matplotlib.table.Table"><codeclass="xref py py-obj docutils literal notranslate"><spanclass="pre">Table</span></code></a> class and its
methods.</p>
<p>The table consists of a grid of cells, which are indexed by (row, column).
The cell (0, 0) is positioned at the top left.</p>
<p>Thanks to John Gill for providing the class and table.</p>
<dlclass="py class">
<dtid="matplotlib.table.Cell">
<emclass="property">class </em><codeclass="descclassname">matplotlib.table.</code><codeclass="descname">Cell</code><spanclass="sig-paren">(</span><em><spanclass="n">xy</span></em>, <em><spanclass="n">width</span></em>, <em><spanclass="n">height</span></em>, <em><spanclass="n">edgecolor</span><spanclass="o">=</span><spanclass="default_value">'k'</span></em>, <em><spanclass="n">facecolor</span><spanclass="o">=</span><spanclass="default_value">'w'</span></em>, <em><spanclass="n">fill</span><spanclass="o">=</span><spanclass="default_value">True</span></em>, <em><spanclass="n">text</span><spanclass="o">=</span><spanclass="default_value">''</span></em>, <em><spanclass="n">loc</span><spanclass="o">=</span><spanclass="default_value">None</span></em>, <em><spanclass="n">fontproperties</span><spanclass="o">=</span><spanclass="default_value">None</span></em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/table.html#Cell"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.table.Cell" title="Permalink to this definition">¶</a></dt>
<dt><strong>loc</strong><spanclass="classifier">{'left', 'center', 'right'}, default: 'right'</span></dt><dd><p>The alignment of the text within the cell.</p>
</dd>
<dt><strong>fontproperties</strong><spanclass="classifier">dict</span></dt><dd><p>A dict defining the font properties of the text. Supported keys and
values are the keyword arguments accepted by <aclass="reference internal" href="font_manager_api.html#matplotlib.font_manager.FontProperties" title="matplotlib.font_manager.FontProperties"><codeclass="xref py py-obj docutils literal notranslate"><spanclass="pre">FontProperties</span></code></a>.</p>
<dt><strong>angle</strong><spanclass="classifier">float, optional</span></dt><dd><p>rotation in degrees anti-clockwise about <em>xy</em> (default is 0.0)</p>
</dd>
<dt><strong>fill</strong><spanclass="classifier">bool, optional</span></dt><dd><p>Whether to fill the rectangle (default is <codeclass="docutils literal notranslate"><spanclass="pre">True</span></code>)</p>
<codeclass="descname">PAD</code><emclass="property"> = 0.1</em><aclass="headerlink" href="#matplotlib.table.Cell.PAD" title="Permalink to this definition">¶</a></dt>
<dd><p>Padding between text and rectangle.</p>
</dd></dl>
<dlclass="py method">
<dtid="matplotlib.table.Cell.auto_set_font_size">
<codeclass="descname">auto_set_font_size</code><spanclass="sig-paren">(</span><em><spanclass="n">self</span></em>, <em><spanclass="n">renderer</span></em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/table.html#Cell.auto_set_font_size"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.table.Cell.auto_set_font_size" title="Permalink to this definition">¶</a></dt>
<dd><p>Shrink font size until the text fits into the cell width.</p>
</dd></dl>
<dlclass="py method">
<dtid="matplotlib.table.Cell.draw">
<codeclass="descname">draw</code><spanclass="sig-paren">(</span><em><spanclass="n">self</span></em>, <em><spanclass="n">renderer</span></em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/table.html#Cell.draw"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.table.Cell.draw" title="Permalink to this definition">¶</a></dt>
<dd><p>Draw to the given <em>renderer</em>.</p>
</dd></dl>
<dlclass="py method">
<dtid="matplotlib.table.Cell.get_fontsize">
<codeclass="descname">get_fontsize</code><spanclass="sig-paren">(</span><em><spanclass="n">self</span></em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/table.html#Cell.get_fontsize"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.table.Cell.get_fontsize" title="Permalink to this definition">¶</a></dt>
<dd><p>Return the cell fontsize.</p>
</dd></dl>
<dlclass="py method">
<dtid="matplotlib.table.Cell.get_required_width">
<codeclass="descname">get_required_width</code><spanclass="sig-paren">(</span><em><spanclass="n">self</span></em>, <em><spanclass="n">renderer</span></em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/table.html#Cell.get_required_width"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.table.Cell.get_required_width" title="Permalink to this definition">¶</a></dt>
<dd><p>Return the minimal required width for the cell.</p>
</dd></dl>
<dlclass="py method">
<dtid="matplotlib.table.Cell.get_text">
<codeclass="descname">get_text</code><spanclass="sig-paren">(</span><em><spanclass="n">self</span></em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/table.html#Cell.get_text"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.table.Cell.get_text" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">get_text_bounds</code><spanclass="sig-paren">(</span><em><spanclass="n">self</span></em>, <em><spanclass="n">renderer</span></em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/table.html#Cell.get_text_bounds"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.table.Cell.get_text_bounds" title="Permalink to this definition">¶</a></dt>
<dd><p>Return the text bounds as <em>(x, y, width, height)</em> in table coordinates.</p>
</dd></dl>
<dlclass="py method">
<dtid="matplotlib.table.Cell.set_figure">
<codeclass="descname">set_figure</code><spanclass="sig-paren">(</span><em><spanclass="n">self</span></em>, <em><spanclass="n">fig</span></em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/table.html#Cell.set_figure"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.table.Cell.set_figure" title="Permalink to this definition">¶</a></dt>
<dd><p>Set the <aclass="reference internal" href="_as_gen/matplotlib.figure.Figure.html#matplotlib.figure.Figure" title="matplotlib.figure.Figure"><codeclass="xref py py-obj docutils literal notranslate"><spanclass="pre">Figure</span></code></a> instance the artist belongs to.</p>
<codeclass="descname">set_fontsize</code><spanclass="sig-paren">(</span><em><spanclass="n">self</span></em>, <em><spanclass="n">size</span></em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/table.html#Cell.set_fontsize"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.table.Cell.set_fontsize" title="Permalink to this definition">¶</a></dt>
<dd><p>Set the text fontsize.</p>
</dd></dl>
<dlclass="py method">
<dtid="matplotlib.table.Cell.set_text_props">
<codeclass="descname">set_text_props</code><spanclass="sig-paren">(</span><em><spanclass="n">self</span></em>, <em><spanclass="o">**</span><spanclass="n">kwargs</span></em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/table.html#Cell.set_text_props"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.table.Cell.set_text_props" title="Permalink to this definition">¶</a></dt>
<td>{a numeric value in range 0-1000, 'ultra-condensed', 'extra-condensed', 'condensed', 'semi-condensed', 'normal', 'semi-expanded', 'expanded', 'extra-expanded', 'ultra-expanded'}</td>
<codeclass="descname">set_transform</code><spanclass="sig-paren">(</span><em><spanclass="n">self</span></em>, <em><spanclass="n">trans</span></em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/table.html#Cell.set_transform"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.table.Cell.set_transform" title="Permalink to this definition">¶</a></dt>
<dt><strong>angle</strong><spanclass="classifier">float, optional</span></dt><dd><p>rotation in degrees anti-clockwise about <em>xy</em> (default is 0.0)</p>
</dd>
<dt><strong>fill</strong><spanclass="classifier">bool, optional</span></dt><dd><p>Whether to fill the rectangle (default is <codeclass="docutils literal notranslate"><spanclass="pre">True</span></code>)</p>
<codeclass="descname">get_path</code><spanclass="sig-paren">(</span><em><spanclass="n">self</span></em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/table.html#CustomCell.get_path"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.table.CustomCell.get_path" title="Permalink to this definition">¶</a></dt>
<dd><p>Return a <aclass="reference internal" href="path_api.html#matplotlib.path.Path" title="matplotlib.path.Path"><codeclass="xref py py-obj docutils literal notranslate"><spanclass="pre">Path</span></code></a> for the <aclass="reference internal" href="#matplotlib.table.CustomCell.visible_edges" title="matplotlib.table.CustomCell.visible_edges"><codeclass="xref py py-obj docutils literal notranslate"><spanclass="pre">visible_edges</span></code></a>.</p>
<emclass="property">property </em><codeclass="descname">visible_edges</code><aclass="headerlink" href="#matplotlib.table.CustomCell.visible_edges" title="Permalink to this definition">¶</a></dt>
<dd><p>The cell edges to be drawn with a line.</p>
<p>Reading this property returns a substring of 'BRTL' (bottom, right,
top, left').</p>
<p>When setting this property, you can use a substring of 'BRTL' or one
of {'open', 'closed', 'horizontal', 'vertical'}.</p>
</dd></dl>
</dd></dl>
<dlclass="py class">
<dtid="matplotlib.table.Table">
<emclass="property">class </em><codeclass="descclassname">matplotlib.table.</code><codeclass="descname">Table</code><spanclass="sig-paren">(</span><em><spanclass="n">ax</span></em>, <em><spanclass="n">loc</span><spanclass="o">=</span><spanclass="default_value">None</span></em>, <em><spanclass="n">bbox</span><spanclass="o">=</span><spanclass="default_value">None</span></em>, <em><spanclass="o">**</span><spanclass="n">kwargs</span></em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/table.html#Table"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.table.Table" title="Permalink to this definition">¶</a></dt>
<p>The table consists of a grid of cells, which are indexed by (row, column).</p>
<p>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.</p>
<p><em>Note</em>: You'll usually not create an empty table from scratch. Instead use
<aclass="reference internal" href="#matplotlib.table.table" title="matplotlib.table.table"><codeclass="xref py py-obj docutils literal notranslate"><spanclass="pre">table</span></code></a> to create a table from data.</p>
<dt><strong>loc</strong><spanclass="classifier">str</span></dt><dd><p>The position of the cell with respect to <em>ax</em>. This must be one of
the <aclass="reference internal" href="#matplotlib.table.Table.codes" title="matplotlib.table.Table.codes"><codeclass="xref py py-obj docutils literal notranslate"><spanclass="pre">codes</span></code></a>.</p>
</dd>
<dt><strong>bbox</strong><spanclass="classifier"><aclass="reference internal" href="transformations.html#matplotlib.transforms.Bbox" title="matplotlib.transforms.Bbox"><codeclass="xref py py-obj docutils literal notranslate"><spanclass="pre">Bbox</span></code></a> or None</span></dt><dd><p>A bounding box to draw the table into. If this is not <em>None</em>, this
overrides <em>loc</em>.</p>
</dd>
</dl>
</td>
</tr>
<trclass="field-even field"><thclass="field-name">Other Parameters:</th><tdclass="field-body"><dlclass="first last docutils">
<codeclass="descname">AXESPAD</code><emclass="property"> = 0.02</em><aclass="headerlink" href="#matplotlib.table.Table.AXESPAD" title="Permalink to this definition">¶</a></dt>
<dd><p>The border between the Axes and the table edge in Axes units.</p>
</dd></dl>
<dlclass="py attribute">
<dtid="matplotlib.table.Table.FONTSIZE">
<codeclass="descname">FONTSIZE</code><emclass="property"> = 10</em><aclass="headerlink" href="#matplotlib.table.Table.FONTSIZE" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
<dlclass="py method">
<dtid="matplotlib.table.Table.add_cell">
<codeclass="descname">add_cell</code><spanclass="sig-paren">(</span><em><spanclass="n">self</span></em>, <em><spanclass="n">row</span></em>, <em><spanclass="n">col</span></em>, <em><spanclass="o">*</span><spanclass="n">args</span></em>, <em><spanclass="o">**</span><spanclass="n">kwargs</span></em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/table.html#Table.add_cell"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.table.Table.add_cell" title="Permalink to this definition">¶</a></dt>
<dt><strong>*args, **kwargs</strong></dt><dd><p>All other parameters are passed on to <aclass="reference internal" href="#matplotlib.table.Cell" title="matplotlib.table.Cell"><codeclass="xref py py-obj docutils literal notranslate"><spanclass="pre">Cell</span></code></a>.</p>
</dd>
</dl>
</td>
</tr>
<trclass="field-even field"><thclass="field-name">Returns:</th><tdclass="field-body"><dlclass="first last docutils">
<codeclass="descname">auto_set_column_width</code><spanclass="sig-paren">(</span><em><spanclass="n">self</span></em>, <em><spanclass="n">col</span></em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/table.html#Table.auto_set_column_width"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.table.Table.auto_set_column_width" title="Permalink to this definition">¶</a></dt>
<dd><p>Automatically set the widths of given columns to optimal sizes.</p>
<codeclass="descname">auto_set_font_size</code><spanclass="sig-paren">(</span><em><spanclass="n">self</span></em>, <em><spanclass="n">value</span><spanclass="o">=</span><spanclass="default_value">True</span></em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/table.html#Table.auto_set_font_size"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.table.Table.auto_set_font_size" title="Permalink to this definition">¶</a></dt>
<dd><p>Possible values where to place the table relative to the Axes.</p>
</dd></dl>
<dlclass="py method">
<dtid="matplotlib.table.Table.contains">
<codeclass="descname">contains</code><spanclass="sig-paren">(</span><em><spanclass="n">self</span></em>, <em><spanclass="n">mouseevent</span></em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/table.html#Table.contains"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.table.Table.contains" title="Permalink to this definition">¶</a></dt>
<dd><p>Test whether the artist contains the mouse event.</p>
<codeclass="descname">draw</code><spanclass="sig-paren">(</span><em><spanclass="n">self</span></em>, <em><spanclass="n">renderer</span></em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/table.html#Table.draw"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.table.Table.draw" title="Permalink to this definition">¶</a></dt>
<dd><p>Draw the Artist using the given renderer.</p>
<p>This method will be overridden in the Artist subclasses. Typically,
it is implemented to not have any effect if the Artist is not visible
<emclass="property">property </em><codeclass="descname">edges</code><aclass="headerlink" href="#matplotlib.table.Table.edges" title="Permalink to this definition">¶</a></dt>
<dd><p>The default value of <aclass="reference internal" href="#matplotlib.table.CustomCell.visible_edges" title="matplotlib.table.CustomCell.visible_edges"><codeclass="xref py py-obj docutils literal notranslate"><spanclass="pre">visible_edges</span></code></a> for newly added
<codeclass="descname">get_celld</code><spanclass="sig-paren">(</span><em><spanclass="n">self</span></em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/table.html#Table.get_celld"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.table.Table.get_celld" title="Permalink to this definition">¶</a></dt>
<dd><p>Return a dict of cells in the table mapping <em>(row, column)</em> to
<codeclass="descname">get_children</code><spanclass="sig-paren">(</span><em><spanclass="n">self</span></em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/table.html#Table.get_children"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.table.Table.get_children" title="Permalink to this definition">¶</a></dt>
<dd><p>Return the Artists contained by the table.</p>
</dd></dl>
<dlclass="py method">
<dtid="matplotlib.table.Table.get_window_extent">
<codeclass="descname">get_window_extent</code><spanclass="sig-paren">(</span><em><spanclass="n">self</span></em>, <em><spanclass="n">renderer</span></em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/table.html#Table.get_window_extent"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.table.Table.get_window_extent" title="Permalink to this definition">¶</a></dt>
<dd><p>Return the bounding box of the table in window coords.</p>
</dd></dl>
<dlclass="py method">
<dtid="matplotlib.table.Table.scale">
<codeclass="descname">scale</code><spanclass="sig-paren">(</span><em><spanclass="n">self</span></em>, <em><spanclass="n">xscale</span></em>, <em><spanclass="n">yscale</span></em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/table.html#Table.scale"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.table.Table.scale" title="Permalink to this definition">¶</a></dt>
<dd><p>Scale column widths by <em>xscale</em> and row heights by <em>yscale</em>.</p>
</dd></dl>
<dlclass="py method">
<dtid="matplotlib.table.Table.set_fontsize">
<codeclass="descname">set_fontsize</code><spanclass="sig-paren">(</span><em><spanclass="n">self</span></em>, <em><spanclass="n">size</span></em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/table.html#Table.set_fontsize"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.table.Table.set_fontsize" title="Permalink to this definition">¶</a></dt>
<dd><p>Set the font size, in points, of the cell text.</p>
<p>As long as auto font size has not been disabled, the value will be
clipped such that the text fits horizontally into the cell.</p>
<p>You can disable this behavior using <aclass="reference internal" href="#matplotlib.table.Table.auto_set_font_size" title="matplotlib.table.Table.auto_set_font_size"><codeclass="xref py py-obj docutils literal notranslate"><spanclass="pre">auto_set_font_size</span></code></a>.</p>
<dd><p>Add a table to an <aclass="reference internal" href="axes_api.html#matplotlib.axes.Axes" title="matplotlib.axes.Axes"><codeclass="xref py py-obj docutils literal notranslate"><spanclass="pre">Axes</span></code></a>.</p>
<p>At least one of <em>cellText</em> or <em>cellColours</em> 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.</p>
<p>The table can optionally have row and column headers, which are configured
using <em>rowLabels</em>, <em>rowColours</em>, <em>rowLoc</em> and <em>colLabels</em>, <em>colColours</em>,
<em>colLoc</em> respectively.</p>
<p>For finer grained control over tables, use the <aclass="reference internal" href="#matplotlib.table.Table" title="matplotlib.table.Table"><codeclass="xref py py-obj docutils literal notranslate"><spanclass="pre">Table</span></code></a> class and add it to
the axes with <aclass="reference internal" href="_as_gen/matplotlib.axes.Axes.add_table.html#matplotlib.axes.Axes.add_table" title="matplotlib.axes.Axes.add_table"><codeclass="xref py py-obj docutils literal notranslate"><spanclass="pre">Axes.add_table</span></code></a>.</p>
<dt><strong>cellText</strong><spanclass="classifier">2D list of str, optional</span></dt><dd><p>The texts to place into the table cells.</p>
<p><em>Note</em>: Line breaks in the strings are currently not accounted for and
will result in the text exceeding the cell boundaries.</p>
</dd>
<dt><strong>cellColours</strong><spanclass="classifier">2D list of colors, optional</span></dt><dd><p>The background colors of the cells.</p>
</dd>
<dt><strong>cellLoc</strong><spanclass="classifier">{'left', 'center', 'right'}, default: 'right'</span></dt><dd><p>The alignment of the text within the cells.</p>
</dd>
<dt><strong>colWidths</strong><spanclass="classifier">list of float, optional</span></dt><dd><p>The column widths in units of the axes. If not given, all columns will
have a width of <em>1 / ncols</em>.</p>
</dd>
<dt><strong>rowLabels</strong><spanclass="classifier">list of str, optional</span></dt><dd><p>The text of the row header cells.</p>
</dd>
<dt><strong>rowColours</strong><spanclass="classifier">list of colors, optional</span></dt><dd><p>The colors of the row header cells.</p>
</dd>
<dt><strong>rowLoc</strong><spanclass="classifier">{'left', 'center', 'right'}, optional, default: 'left'</span></dt><dd><p>The text alignment of the row header cells.</p>
</dd>
<dt><strong>colLabels</strong><spanclass="classifier">list of str, optional</span></dt><dd><p>The text of the column header cells.</p>
</dd>
<dt><strong>colColours</strong><spanclass="classifier">list of colors, optional</span></dt><dd><p>The colors of the column header cells.</p>
</dd>
<dt><strong>colLoc</strong><spanclass="classifier">{'left', 'center', 'right'}, optional, default: 'left'</span></dt><dd><p>The text alignment of the column header cells.</p>
</dd>
<dt><strong>loc</strong><spanclass="classifier">str, optional</span></dt><dd><p>The position of the cell with respect to <em>ax</em>. This must be one of
the <aclass="reference internal" href="#matplotlib.table.Table.codes" title="matplotlib.table.Table.codes"><codeclass="xref py py-obj docutils literal notranslate"><spanclass="pre">codes</span></code></a>.</p>
</dd>
<dt><strong>bbox</strong><spanclass="classifier"><aclass="reference internal" href="transformations.html#matplotlib.transforms.Bbox" title="matplotlib.transforms.Bbox"><codeclass="xref py py-obj docutils literal notranslate"><spanclass="pre">Bbox</span></code></a>, optional</span></dt><dd><p>A bounding box to draw the table into. If this is not <em>None</em>, this
overrides <em>loc</em>.</p>
</dd>
<dt><strong>edges</strong><spanclass="classifier">substring of 'BRTL' or {'open', 'closed', 'horizontal', 'vertical'}</span></dt><dd><p>The cell edges to be drawn with a line. See also