plotting + phases + p part of the pid 2