Evolution of the pseudogap from Fermi arcs to the nodal liquid