Seaborn boxplotΒΆ

This example shows how to use seaborn to draw a box plot showing the distributions of eigenvalues with respect to the band index.

from abipy.abilab import abiopen
import as abidata

# Open the file with energies computed with a homogeneous sampling
# of the BZ and extract the band structure.
with abiopen(abidata.ref_file("")) as gsr:
    ebands = gsr.ebands
import matplotlib.pyplot as plt
# Use `swarm=True` to show the datapoints on top of the boxes
plot ebands boxplot

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

Gallery generated by Sphinx-Gallery