.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "gallery/band_plot.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_band_plot.py: ================== Standard band plot ================== .. GENERATED FROM PYTHON SOURCE LINES 7-28 .. image-sg:: /gallery/images/sphx_glr_band_plot_001.png :alt: band plot :srcset: /gallery/images/sphx_glr_band_plot_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") fig = plt.figure() points = run["+points"].data iks, labels = zip(*points) labels = [label.replace('$~G', r'$\Gamma$') for label in labels] band_data = run["+band"].data plt.axhline(0, alpha=0.2, color='k', lw=2) plt.plot(band_data['ik'], band_data['e'], color='k', lw=0.5) plt.xticks(iks, labels) plt.ylabel(r"$(E - E_\mathrm{F})/\mathrm{eV}$") plt.ylim([-20, 20]) plt.show() .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 0.433 seconds) .. _sphx_glr_download_gallery_band_plot.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: band_plot.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: band_plot.py ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_