fix buf plot traj curve