
.. DO NOT EDIT.
.. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY.
.. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE:
.. "gallery/style_sheets/plot_solarizedlight2.py"
.. LINE NUMBERS ARE GIVEN BELOW.

.. only:: html

    .. meta::
        :keywords: codex

    .. note::
        :class: sphx-glr-download-link-note

        :ref:`Go to the end <sphx_glr_download_gallery_style_sheets_plot_solarizedlight2.py>`
        to download the full example code.

.. rst-class:: sphx-glr-example-title

.. _sphx_glr_gallery_style_sheets_plot_solarizedlight2.py:


==========================
Solarized Light stylesheet
==========================

This shows an example of "Solarized_Light" styling, which
tries to replicate the styles of:

- https://ethanschoonover.com/solarized/
- https://github.com/jrnold/ggthemes
- http://www.pygal.org/en/stable/documentation/builtin_styles.html#light-solarized

and work of:

- https://github.com/tonysyu/mpltools

using all 8 accents of the color palette - starting with blue

Still TODO:

- Create alpha values for bar and stacked charts. .33 or .5
- Apply Layout Rules

.. GENERATED FROM PYTHON SOURCE LINES 24-46



.. image-sg:: /gallery/style_sheets/images/sphx_glr_plot_solarizedlight2_001.png
   :alt: 8 Random Lines - Line
   :srcset: /gallery/style_sheets/images/sphx_glr_plot_solarizedlight2_001.png, /gallery/style_sheets/images/sphx_glr_plot_solarizedlight2_001_2_00x.png 2.00x
   :class: sphx-glr-single-img





.. code-block:: Python

    import matplotlib.pyplot as plt
    import numpy as np

    # Fixing random state for reproducibility
    np.random.seed(19680801)

    x = np.linspace(0, 10)
    with plt.style.context('Solarize_Light2'):
        plt.plot(x, np.sin(x) + x + np.random.randn(50))
        plt.plot(x, np.sin(x) + 2 * x + np.random.randn(50))
        plt.plot(x, np.sin(x) + 3 * x + np.random.randn(50))
        plt.plot(x, np.sin(x) + 4 * x + np.random.randn(50))
        plt.plot(x, np.sin(x) + 5 * x + np.random.randn(50))
        plt.plot(x, np.sin(x) + 6 * x + np.random.randn(50))
        plt.plot(x, np.sin(x) + 7 * x + np.random.randn(50))
        plt.plot(x, np.sin(x) + 8 * x + np.random.randn(50))
        # Number of accent colors in the color scheme
        plt.title('8 Random Lines - Line')
        plt.xlabel('x label', fontsize=14)
        plt.ylabel('y label', fontsize=14)

    plt.show()


.. _sphx_glr_download_gallery_style_sheets_plot_solarizedlight2.py:

.. only:: html

  .. container:: sphx-glr-footer sphx-glr-footer-example

    .. container:: sphx-glr-download sphx-glr-download-jupyter

      :download:`Download Jupyter notebook: plot_solarizedlight2.ipynb <plot_solarizedlight2.ipynb>`

    .. container:: sphx-glr-download sphx-glr-download-python

      :download:`Download Python source code: plot_solarizedlight2.py <plot_solarizedlight2.py>`

    .. container:: sphx-glr-download sphx-glr-download-zip

      :download:`Download zipped: plot_solarizedlight2.zip <plot_solarizedlight2.zip>`


.. only:: html

 .. rst-class:: sphx-glr-signature

    `Gallery generated by Sphinx-Gallery <https://sphinx-gallery.github.io>`_
