automatic scaling based on horizontal white line marker