[plot] bug - variable distance value doesn't get updated in window
when a plot has a variable for the distance value and that value is changed, the scalar doesn't refresh the view. close and open the scalar window, and it will be shown correctly. See the patch attached.
Also another bug there, route loses pointers?