Enter coprime n and w, then plot.