Calculation and plotting of 2D Gaussian function.