<divid="unreleased-message"> You are reading an old version of the documentation (v2.1.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>
<spanid="matplotlib-container"></span><h2><aclass="reference internal" href="#module-matplotlib.container" title="matplotlib.container"><codeclass="xref py py-mod docutils literal"><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>
<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"><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>
<td>(bool) <codeclass="docutils literal"><spanclass="pre">True</span></code> if the errorbar has x/y errors.</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>