change parameters of plot_data() to users_traj and plot_type