Plotting graphs for Physics exercise.