Brillouin zoneΒΆ

This example shows how to display the Brillouin zone with pymatgen and matplotlib.

from abipy.abilab import abiopen
import as abidata

# Open the WKF file.
wfk_file = abiopen(abidata.ref_file(""))

# Extract the crystalline structure.
structure = wfk_file.structure

To visualize the BZ with matplotlib, use:

plot bz


<Figure size 640x480 with 1 Axes>

Remember to close the wfk file with:


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

Gallery generated by Sphinx-Gallery