lineToY

Adds a line segment that goes to \(y\)-coordinate posY.