.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "gallery/plot_ebands_scatter3d.py" .. LINE NUMBERS ARE GIVEN BELOW. .. only:: html .. note:: :class: sphx-glr-download-link-note Click :ref:`here ` to download the full example code or to run this example in your browser via Binder .. rst-class:: sphx-glr-example-title .. _sphx_glr_gallery_plot_ebands_scatter3d.py: e-bands scatter3d ================= This example shows how to plot a particular "band" in 3D with matplotlib scatter3D. The color of the point gives the energy of the state wrt to the Fermi level. .. GENERATED FROM PYTHON SOURCE LINES 10-16 .. image:: /gallery/images/sphx_glr_plot_ebands_scatter3d_001.png :alt: plot ebands scatter3d :class: sphx-glr-single-img .. code-block:: default from abipy import abilab import abipy.data as abidata # Open the GSR file and extract the band structure. with abilab.abiopen(abidata.ref_file("ni_kpath_GSR.nc")) as ncfile: ncfile.ebands.plot_scatter3d(band=9, spin=0) .. rst-class:: sphx-glr-timing **Total running time of the script:** ( 0 minutes 0.598 seconds) .. _sphx_glr_download_gallery_plot_ebands_scatter3d.py: .. only :: html .. container:: sphx-glr-footer :class: sphx-glr-footer-example .. container:: binder-badge .. image:: images/binder_badge_logo.svg :target: https://mybinder.org/v2/gh/abinit/abipy/gh-pages?filepath=notebooks/gallery/plot_ebands_scatter3d.ipynb :alt: Launch binder :width: 150 px .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: plot_ebands_scatter3d.py ` .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: plot_ebands_scatter3d.ipynb ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_