draw a phase diagram