measure distance to scale plot