<divid="unreleased-message"> You are reading an old version of the documentation (v3.2.0). 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><codeclass="docutils literal notranslate"><spanclass="pre">matplotlib.style</span></code><aclass="headerlink" href="#matplotlib-style" title="Permalink to this headline">¶</a></h1>
<divclass="admonition seealso">
<pclass="first admonition-title">See also</p>
<pclass="last">Examples of using style sheets with <aclass="reference internal" href="#matplotlib.style.use" title="matplotlib.style.use"><codeclass="xref py py-func docutils literal notranslate"><spanclass="pre">matplotlib.style.use()</span></code></a> can be found at <aclass="reference internal" href="../gallery/style_sheets/style_sheets_reference.html"><spanclass="doc">Style sheets reference</span></a>.</p>
<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="reference internal" href="../_modules/matplotlib/style/core.html#context"><spanclass="viewcode-link">[source]</span></a><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 path-like object which is a path to a style file.</td>
</tr>
<trclass="row-even"><td>list</td>
<td>A list of style specifiers (str, Path or dict) applied from
first to last in the list.</td>
</tr>
</tbody>
</table>
</dd>
<dt><strong>after_reset</strong><spanclass="classifier">bool</span></dt><dd><p>If True, apply style after resetting settings to their defaults;
otherwise, apply style on top of the current settings.</p>
</dd>
</dl>
</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="reference internal" href="../_modules/matplotlib/style/core.html#reload_library"><spanclass="viewcode-link">[source]</span></a><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="reference internal" href="../_modules/matplotlib/style/core.html#use"><spanclass="viewcode-link">[source]</span></a><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>