plot start and end points and draw line between them