visualization of line segment