Move asy spectrum code to cut1d.asy.