plot the trajectory testing