.. only:: html .. note:: :class: sphx-glr-download-link-note Click :ref:`here ` to download the full example code .. rst-class:: sphx-glr-example-title .. _sphx_glr_auto_examples_introduction_demo_example.py: ======================== Sphinx gallery example ======================== .. image:: /auto_examples/introduction/images/sphx_glr_demo_example_001.png :class: sphx-glr-single-img .. code-block:: default # Some commentary import numpy as np from matplotlib import pyplot as plt x = np.arange(100) y = x**2 fig, ax = plt.subplots() ax.plot(x, y) plt.show() .. rst-class:: sphx-glr-timing **Total running time of the script:** ( 0 minutes 0.089 seconds) .. _sphx_glr_download_auto_examples_introduction_demo_example.py: .. only :: html .. container:: sphx-glr-footer :class: sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: demo_example.py ` .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: demo_example.ipynb ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_