Improve wavefunction plot scripts