plotting + phases + p part of the pid