Phase diagrams and membranes