energy plotting & clean up.