prototype of phase diagram