.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "gallery/dos.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_dos.py: ================= Density of states ================= .. GENERATED FROM PYTHON SOURCE LINES 7-21 .. image-sg:: /gallery/images/sphx_glr_dos_001.png :alt: dos :srcset: /gallery/images/sphx_glr_dos_001.png :class: sphx-glr-single-img .. code-block:: Python from fplore import FPLORun import matplotlib.pyplot as plt run = FPLORun("../example_data/graphene_slab") dos_data = run["+dos.total.l001"].data[0] plt.plot(dos_data["e"], dos_data["dos"]) plt.axvline(0, alpha=0.2, color='k', lw=2) plt.xlabel(r"$(E - E_\mathrm{F})/\mathrm{eV}$") plt.ylabel(r"Density of States") plt.show() .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 0.403 seconds) .. _sphx_glr_download_gallery_dos.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: dos.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: dos.py ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_