state vector distance plotting