trying to fix MAP phased plots
implements formalism from Perryman2011 which is more standard