graph pstat with visulization

Hi lost,
Please merge to your code.