<divid="unreleased-message"> You are reading an old version of the documentation (v3.0.3). For the latest version see <ahref="https://matplotlib.org/stable/api/table_api.html">https://matplotlib.org/stable/api/table_api.html</a></div>
<p>A cell is a <aclass="reference internal" href="_as_gen/matplotlib.patches.Rectangle.html#matplotlib.patches.Rectangle" title="matplotlib.patches.Rectangle"><codeclass="xref py py-obj docutils literal notranslate"><spanclass="pre">Rectangle</span></code></a> with some associated text.</p>
<dlclass="attribute">
<dtid="matplotlib.table.Cell.PAD">
<codeclass="descname">PAD</code><emclass="property"> = 0.1</em><aclass="headerlink" href="#matplotlib.table.Cell.PAD" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
<dlclass="method">
<dtid="matplotlib.table.Cell.auto_set_font_size">
<codeclass="descname">auto_set_font_size</code><spanclass="sig-paren">(</span><em>renderer</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 text fits.</p>
</dd></dl>
<dlclass="method">
<dtid="matplotlib.table.Cell.draw">
<codeclass="descname">draw</code><spanclass="sig-paren">(</span><em>renderer</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 the <codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">Patch</span></code> to the given <em>renderer</em>.</p>
</dd></dl>
<dlclass="method">
<dtid="matplotlib.table.Cell.get_fontsize">
<codeclass="descname">get_fontsize</code><spanclass="sig-paren">(</span><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="method">
<dtid="matplotlib.table.Cell.get_required_width">
<codeclass="descname">get_required_width</code><spanclass="sig-paren">(</span><em>renderer</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>Get width required for this cell.</p>
</dd></dl>
<dlclass="method">
<dtid="matplotlib.table.Cell.get_text">
<codeclass="descname">get_text</code><spanclass="sig-paren">(</span><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>renderer</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>Get text bounds in axes co-ordinates.</p>
</dd></dl>
<dlclass="method">
<dtid="matplotlib.table.Cell.set_figure">
<codeclass="descname">set_figure</code><spanclass="sig-paren">(</span><em>fig</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>size</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></dd></dl>
<dlclass="method">
<dtid="matplotlib.table.Cell.set_text_props">
<codeclass="descname">set_text_props</code><spanclass="sig-paren">(</span><em>**kwargs</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>
<dd><p>update the text properties with kwargs</p>
</dd></dl>
<dlclass="method">
<dtid="matplotlib.table.Cell.set_transform">
<codeclass="descname">set_transform</code><spanclass="sig-paren">(</span><em>trans</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>
<p>A subclass of Cell where the sides may be visibly toggled.</p>
<dlclass="method">
<dtid="matplotlib.table.CustomCell.get_path">
<codeclass="descname">get_path</code><spanclass="sig-paren">(</span><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 path where the edges specified by _visible_edges are drawn.</p>
<codeclass="descname">visible_edges</code><aclass="headerlink" href="#matplotlib.table.CustomCell.visible_edges" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
</dd></dl>
<dlclass="class">
<dtid="matplotlib.table.Table">
<emclass="property">class </em><codeclass="descclassname">matplotlib.table.</code><codeclass="descname">Table</code><spanclass="sig-paren">(</span><em>ax</em>, <em>loc=None</em>, <em>bbox=None</em>, <em>**kwargs</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>Table can have (optional) row and column headers.</p>
<p>Each entry in the table can be either text or patches.</p>
<p>Column widths and row heights for the table can be specified.</p>
<p>Return value is a sequence of text, line and patch instances that make
up the table</p>
<dlclass="attribute">
<dtid="matplotlib.table.Table.AXESPAD">
<codeclass="descname">AXESPAD</code><emclass="property"> = 0.02</em><aclass="headerlink" href="#matplotlib.table.Table.AXESPAD" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
<dlclass="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="method">
<dtid="matplotlib.table.Table.add_cell">
<codeclass="descname">add_cell</code><spanclass="sig-paren">(</span><em>row</em>, <em>col</em>, <em>*args</em>, <em>**kwargs</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>
<codeclass="descname">auto_set_column_width</code><spanclass="sig-paren">(</span><em>col</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>Given column indexs in either List, Tuple or int. Will be able to
automatically set the columns into optimal sizes.</p>
<p>Here is the example of the input, which triger automatic adjustment on
<codeclass="descname">auto_set_font_size</code><spanclass="sig-paren">(</span><em>value=True</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>
<codeclass="descname">contains</code><spanclass="sig-paren">(</span><em>mouseevent</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 mouse event occurred in the table.</p>
<p>Returns T/F, {}</p>
</dd></dl>
<dlclass="method">
<dtid="matplotlib.table.Table.draw">
<codeclass="descname">draw</code><spanclass="sig-paren">(</span><em>renderer</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>Derived classes drawing method</p>
</dd></dl>
<dlclass="attribute">
<dtid="matplotlib.table.Table.edges">
<codeclass="descname">edges</code><aclass="headerlink" href="#matplotlib.table.Table.edges" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
<dlclass="method">
<dtid="matplotlib.table.Table.get_celld">
<codeclass="descname">get_celld</code><spanclass="sig-paren">(</span><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.</p>
</dd></dl>
<dlclass="method">
<dtid="matplotlib.table.Table.get_child_artists">
<codeclass="descname">get_child_artists</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.table.Table.get_child_artists" title="Permalink to this definition">¶</a></dt>
<dd><divclass="deprecated">
<p><spanclass="versionmodified">Deprecated since version 3.0: </span>The get_children function was deprecated in Matplotlib 3.0 and will be removed in 3.2.</p>
</div>
<p>Return the Artists contained by the table.</p>
</dd></dl>
<dlclass="method">
<dtid="matplotlib.table.Table.get_children">
<codeclass="descname">get_children</code><spanclass="sig-paren">(</span><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="method">
<dtid="matplotlib.table.Table.get_window_extent">
<codeclass="descname">get_window_extent</code><spanclass="sig-paren">(</span><em>renderer</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="method">
<dtid="matplotlib.table.Table.scale">
<codeclass="descname">scale</code><spanclass="sig-paren">(</span><em>xscale</em>, <em>yscale</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 xscale and row heights by yscale.</p>
</dd></dl>
<dlclass="method">
<dtid="matplotlib.table.Table.set_fontsize">
<codeclass="descname">set_fontsize</code><spanclass="sig-paren">(</span><em>size</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>