fixed plot_residual_pt_ps to plot properly on frequency scale