.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "generated/gallery/demo.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_generated_gallery_demo.py: ==== Demo ==== Stuff in here is treated as rst so this works * a * b or #. x #. y #. z Sections ============ Subsections ----------------- Subsubsections ^^^^^^^^^^^^^^^^^^^^ Paragraphs '''''''''' code that is to be run goes outside these blocks .. GENERATED FROM PYTHON SOURCE LINES 31-35 .. code-block:: Python import numpy as np from matplotlib import pyplot as plt .. GENERATED FROM PYTHON SOURCE LINES 36-42 More text --------- .. note:: More text something about imports .. GENERATED FROM PYTHON SOURCE LINES 43-47 .. code-block:: Python x = np.linspace(0, 2 * np.pi, 100) y = np.sin(x) plt.plot(x, y) .. image-sg:: /generated/gallery/images/sphx_glr_demo_001.png :alt: demo :srcset: /generated/gallery/images/sphx_glr_demo_001.png :class: sphx-glr-single-img .. rst-class:: sphx-glr-script-out .. code-block:: none [] .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 0.083 seconds) .. _sphx_glr_download_generated_gallery_demo.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: demo.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: demo.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: demo.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_