Pressure–volume diagram
The cycle
Moving right means the gas expands. Moving up means pressure increases. The thin black curves are constant-temperature paths: TH is the hot isotherm and TC is the cold isotherm. The enclosed area is the net work produced in one complete cycle.