How to plot position and velocity?
Particularly, I've solved the mass-spring model using RK4.
Now I have lists of position and velocity values. But how am I to plot the "simulation"?
Is it enough to plot only $(t,x)$? I.e. ignore the velocity?
So the values I got were very small in magnitude, but I know they're correct. So at first I tried plotting $(t,10*x)$ and I see the motion, it just "goes right in $x$", rather than stays in place.
i suggest plotting the results as points $(x(t),v(t))$ where $x(t)$ is the position at time $t$ and $v(t)$ is the velocity at time $t$. The result should be ... elegant. See also phase spaces, mass-spring system.