added plotting function for gpc diffusion demo