analysis_num_deriv: correctly choose x and y coordinates for plot of all derivative trajectories