<divid="unreleased-message"> You are reading an old version of the documentation (v3.0.2). For the latest version see <ahref="https://matplotlib.org/stable/api/container_api.html">https://matplotlib.org/stable/api/container_api.html</a></div>
<p>Container for the artists of bar plots (e.g. created by <aclass="reference internal" href="_as_gen/matplotlib.axes.Axes.bar.html#matplotlib.axes.Axes.bar" title="matplotlib.axes.Axes.bar"><codeclass="xref py py-obj docutils literal notranslate"><spanclass="pre">Axes.bar</span></code></a>).</p>
<p>The container can be treated as a tuple of the <em>patches</em> themselves.
Additionally, you can access these and further parameters by the
<dd><pclass="first last">A container for the error bar artists if error bars are present.
<em>None</em> otherwise.</p>
</dd>
</dl>
</td>
</tr>
</tbody>
</table>
</dd></dl>
<dlclass="class">
<dtid="matplotlib.container.Container">
<emclass="property">class </em><codeclass="descclassname">matplotlib.container.</code><codeclass="descname">Container</code><spanclass="sig-paren">(</span><em>kl</em>, <em>label=None</em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/container.html#Container"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.container.Container" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">add_callback</code><spanclass="sig-paren">(</span><em>func</em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/container.html#Container.add_callback"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.container.Container.add_callback" title="Permalink to this definition">¶</a></dt>
<dd><p>Adds a callback function that will be called whenever one of
the <codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">Artist</span></code>'s properties changes.</p>
<p>Returns an <em>id</em> that is useful for removing the callback with
<codeclass="descname">get_children</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/container.html#Container.get_children"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.container.Container.get_children" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
<dlclass="method">
<dtid="matplotlib.container.Container.get_label">
<codeclass="descname">get_label</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/container.html#Container.get_label"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.container.Container.get_label" title="Permalink to this definition">¶</a></dt>
<dd><p>Get the label used for this artist in the legend.</p>
</dd></dl>
<dlclass="method">
<dtid="matplotlib.container.Container.pchanged">
<codeclass="descname">pchanged</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/container.html#Container.pchanged"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.container.Container.pchanged" title="Permalink to this definition">¶</a></dt>
<dd><p>Fire an event when property changed, calling all of the
registered callbacks.</p>
</dd></dl>
<dlclass="method">
<dtid="matplotlib.container.Container.remove">
<codeclass="descname">remove</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/container.html#Container.remove"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.container.Container.remove" title="Permalink to this definition">¶</a></dt>
<codeclass="descname">remove_callback</code><spanclass="sig-paren">(</span><em>oid</em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/container.html#Container.remove_callback"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.container.Container.remove_callback" title="Permalink to this definition">¶</a></dt>
<dd><p>Remove a callback based on its <em>id</em>.</p>
<codeclass="descname">set_label</code><spanclass="sig-paren">(</span><em>s</em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/container.html#Container.set_label"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.container.Container.set_label" title="Permalink to this definition">¶</a></dt>
<dd><p>Set the label to <em>s</em> for auto legend.</p>
<codeclass="descname">set_remove_method</code><spanclass="sig-paren">(</span><em>f</em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/container.html#Container.set_remove_method"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.container.Container.set_remove_method" title="Permalink to this definition">¶</a></dt>
<dd><divclass="deprecated">
<p><spanclass="versionmodified">Deprecated since version 3.0: </span>The set_remove_method function was deprecated in Matplotlib 3.0 and will be removed in 3.2.</p>
</div>
<p></p>
</dd></dl>
</dd></dl>
<dlclass="class">
<dtid="matplotlib.container.ErrorbarContainer">
<emclass="property">class </em><codeclass="descclassname">matplotlib.container.</code><codeclass="descname">ErrorbarContainer</code><spanclass="sig-paren">(</span><em>lines</em>, <em>has_xerr=False</em>, <em>has_yerr=False</em>, <em>**kwargs</em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/container.html#ErrorbarContainer"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.container.ErrorbarContainer" title="Permalink to this definition">¶</a></dt>
<p>Container for the artists of error bars (e.g. created by <aclass="reference internal" href="_as_gen/matplotlib.axes.Axes.errorbar.html#matplotlib.axes.Axes.errorbar" title="matplotlib.axes.Axes.errorbar"><codeclass="xref py py-obj docutils literal notranslate"><spanclass="pre">Axes.errorbar</span></code></a>).</p>
<p>The container can be treated as the <em>lines</em> tuple itself.
Additionally, you can access these and further parameters by the
<dd><pclass="first">Tuple of <codeclass="docutils literal notranslate"><spanclass="pre">(data_line,</span><spanclass="pre">caplines,</span><spanclass="pre">barlinecols)</span></code>.</p>
<dd><pclass="first last"><codeclass="docutils literal notranslate"><spanclass="pre">True</span></code> if the errorbar has x/y errors.</p>
</dd>
</dl>
</td>
</tr>
</tbody>
</table>
</dd></dl>
<dlclass="class">
<dtid="matplotlib.container.StemContainer">
<emclass="property">class </em><codeclass="descclassname">matplotlib.container.</code><codeclass="descname">StemContainer</code><spanclass="sig-paren">(</span><em>markerline_stemlines_baseline</em>, <em>**kwargs</em><spanclass="sig-paren">)</span><aclass="reference internal" href="../_modules/matplotlib/container.html#StemContainer"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.container.StemContainer" title="Permalink to this definition">¶</a></dt>
<p>Container for the artists created in a <aclass="reference internal" href="_as_gen/matplotlib.axes.Axes.stem.html#matplotlib.axes.Axes.stem" title="matplotlib.axes.Axes.stem"><codeclass="xref py py-meth docutils literal notranslate"><spanclass="pre">Axes.stem()</span></code></a> plot.</p>
<p>The container can be treated like a namedtuple <codeclass="docutils literal notranslate"><spanclass="pre">(markerline,</span><spanclass="pre">stemlines,</span>