finished length scale calib plus plotting macro