Trying to plot three phases of transition