Method to plot dof and eigenenergies.