.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "gallery/intermediate/01.style_sheets.py" .. LINE NUMBERS ARE GIVEN BELOW. .. only:: html .. note:: :class: sphx-glr-download-link-note :ref:`Go to the end ` to download the full example code .. rst-class:: sphx-glr-example-title .. _sphx_glr_gallery_intermediate_01.style_sheets.py: ============ Style sheets ============ `You can use style sheets in the same way as Matplotlib. `__ This applies also for the style sheets of third-party packages like `seaborn `__. .. GENERATED FROM PYTHON SOURCE LINES 12-15 .. code-block:: Python import matplotlib.pyplot as plt from mpltern.datasets import get_spiral .. GENERATED FROM PYTHON SOURCE LINES 16-29 .. code-block:: Python plt.style.use("ggplot") ax = plt.subplot(projection="ternary") ax.plot(*get_spiral()) ax.set_tlabel("Top") ax.set_llabel("Left") ax.set_rlabel("Right") plt.show() .. image-sg:: /gallery/intermediate/images/sphx_glr_01.style_sheets_001.svg :alt: 01.style sheets :srcset: /gallery/intermediate/images/sphx_glr_01.style_sheets_001.svg :class: sphx-glr-single-img .. GENERATED FROM PYTHON SOURCE LINES 30-42 .. code-block:: Python plt.style.use("dark_background") ax = plt.subplot(projection="ternary") ax.plot(*get_spiral()) ax.set_tlabel("Top") ax.set_llabel("Left") ax.set_rlabel("Right") plt.show() .. image-sg:: /gallery/intermediate/images/sphx_glr_01.style_sheets_002.svg :alt: 01.style sheets :srcset: /gallery/intermediate/images/sphx_glr_01.style_sheets_002.svg :class: sphx-glr-single-img .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 1.380 seconds) .. _sphx_glr_download_gallery_intermediate_01.style_sheets.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: 01.style_sheets.ipynb <01.style_sheets.ipynb>` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: 01.style_sheets.py <01.style_sheets.py>` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_