use phplot for graph generation