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.

plot ebands scatter3d
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)

Total running time of the script: ( 0 minutes 0.598 seconds)

Gallery generated by Sphinx-Gallery