plotting p1,2 to get them passed to geppetto