Updating error bars when distance changes.