Fixed plotting residual bug in ppgauss.