function plotarrows(x)
dx = diff(x);
x = x(1:5:end-1,:);
dx = dx(1:5:end,:);
quiver(x(:,1),x(:,2),dx(:,1),dx(:,2),0,'b')
