Hi, thank you you the nice code. When plotting over a range of atoms, the code sums up the weight of a particular orbital on this range of atoms. I did not find the averaging in code over the total no of atoms considered for the plot. I think, the weight per atom makes more sense.