The state equation
An equilibrium state is consistent when pressure times volume equals the amount in moles times the molar gas constant times absolute temperature. Once the units and three quantities are fixed, the fourth is determined. For a controlled comparison, leave n and T unchanged to study P versus V, or leave n and V unchanged to study P versus T.