Compare bandsΒΆ

This module is useful to compare bands from different materials on the same band structure plot. The bands are plotted for the same \(k\)-path in order to have a meaningful comparison but they do not need to have the same number of \(k\)-points in each interval. This is acheived by setting show=False in pyprocar.bandsplot for the first plot so that the figure is not cleared when show() is called. Any number of different modes of plots can be plot on the same figure with this function. The savefig parameter can be used to save the figure if required.

Usage:

fig, ax = pyprocar.bandsplot(mode='parametric',elimit=[-5,5],code='elk',orbitals=[4,5,6,7,8], show=False)
pyprocar.bandsplot('PROCAR1',kpointsfile='KPOINTS1',outcar='OUTCAR1',mode='plain',elimit=[-5,5],code='vasp',color='k',ax=ax)

The above command plots the figure displayed below. The black bands are plain bands of \(SrVO_3\) calculated from VASP and the jet colormap is d orbital projected bands of the same material calculated from Elk.

_images/ElkvsVASP.png