<spanid="matplotlib-container"></span><h2><aclass="reference internal" href="#module-matplotlib.container" title="matplotlib.container"><codeclass="xref py py-mod docutils literal notranslate"><spanclass="pre">matplotlib.container</span></code></a><aclass="headerlink" href="#module-matplotlib.container" title="Permalink to this headline">¶</a></h2>
<dlclass="class">
<dtid="matplotlib.container.BarContainer">
<emclass="property">class </em><codeclass="descclassname">matplotlib.container.</code><codeclass="descname">BarContainer</code><spanclass="sig-paren">(</span><em>patches</em>, <em>errorbar=None</em>, <em>**kwargs</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.container.BarContainer" title="Permalink to this definition">¶</a></dt>
<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="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="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="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="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="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="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="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="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>
<p>ACCEPTS: string or anything printable with ‘%s’ conversion.</p>
<codeclass="descname">set_remove_method</code><spanclass="sig-paren">(</span><em>f</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.container.Container.set_remove_method" title="Permalink to this definition">¶</a></dt>
<dd></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="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="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>