X-ray diffraction is used to study the sorption of CO and NO in two phthalocyanine nanoporous crystals (PNCs) with 4,4' bipyridine or 4,4' bipyrimidine trans coordinated to open Co2+ sites, demonstrating how the trans coordinated ligands influence the gas sorption properties and structures of the PNCs.