<divid="unreleased-message"> You are reading an old version of the documentation (v2.1.1). For the latest version see <ahref="https://matplotlib.org/stable/api/style_api.html">https://matplotlib.org/stable/api/style_api.html</a></div>
<h1>style<aclass="headerlink" href="#style" title="Permalink to this headline">¶</a></h1>
<divclass="section" id="module-matplotlib.style">
<spanid="matplotlib-style"></span><h2><aclass="reference internal" href="#module-matplotlib.style" title="matplotlib.style"><codeclass="xref py py-mod docutils literal"><spanclass="pre">matplotlib.style</span></code></a><aclass="headerlink" href="#module-matplotlib.style" title="Permalink to this headline">¶</a></h2>
<dlclass="function">
<dtid="matplotlib.style.context">
<codeclass="descclassname">matplotlib.style.</code><codeclass="descname">context</code><spanclass="sig-paren">(</span><em>style</em>, <em>after_reset=False</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.style.context" title="Permalink to this definition">¶</a></dt>
<dd><p>Context manager for using style settings temporarily.</p>
<td>A list of style specifiers (str or dict) applied from first
to last in the list.</td>
</tr>
</tbody>
</table>
</div></blockquote>
<p><strong>after_reset</strong> : bool</p>
<blockquoteclass="last">
<div><p>If True, apply style after resetting settings to their defaults;
otherwise, apply style on top of the current settings.</p>
</div></blockquote>
</td>
</tr>
</tbody>
</table>
</dd></dl>
<dlclass="function">
<dtid="matplotlib.style.reload_library">
<codeclass="descclassname">matplotlib.style.</code><codeclass="descname">reload_library</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.style.reload_library" title="Permalink to this definition">¶</a></dt>
<dd><p>Reload style library.</p>
</dd></dl>
<dlclass="function">
<dtid="matplotlib.style.use">
<codeclass="descclassname">matplotlib.style.</code><codeclass="descname">use</code><spanclass="sig-paren">(</span><em>style</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#matplotlib.style.use" title="Permalink to this definition">¶</a></dt>
<dd><p>Use matplotlib style settings from a style specification.</p>
<p>The style name of ‘default’ is reserved for reverting back to
<codeclass="descclassname">matplotlib.style.</code><codeclass="descname">library</code><aclass="headerlink" href="#matplotlib.style.matplotlib.style.library" title="Permalink to this definition">¶</a></dt>
<codeclass="descclassname">matplotlib.style.</code><codeclass="descname">available</code><aclass="headerlink" href="#matplotlib.style.matplotlib.style.available" title="Permalink to this definition">¶</a></dt>