function gaussian_plot
% By Neil E. Cotter, 14 Mar 2006.
% File gaussian_lot.m
%
% Plots 2-D standard gaussian density function.
% Calls gaussian_plot_data().


% Call function to generate pts on surface of planet.
[x,y,z] = gaussian_plot_data(31);

% Make lit surface map of gaussian density function as Figure 1.
%  Standard colors.
% subplot(1,2,1)
figure(1)
surfl(x,y,z)  % See Mastering Matlab 6 p. 394
% mesh(x,y,z)
title('Standard 2-D gaussian probability density function','FontSize',14)
% shading interp  % See Mastering Matlab 6 p. 391
% colormap('cool')  % See Mastering Matlab 6 p. 423
% Change azimuth to 37.5 degrees, elevation 60 degrees.
view(-37.5,60)  % See Mastering Matlab 6 p. 399
% axis([-1, 1, -1, 1, 0, 1])
% xlabel('x','FontSize','14')
% ylabel('y','FontSize','14')
% zlabel('f(x,y)','FontSize','14')
% xlim([-5,5],'FontSize','14')

% Make contour map of planet as Figure 2.  Default colors.
figure(2)
% contour(x,y,z,11)
% subplot(1,2,2)
clabel(contour(x,y,z,11),[0.25,0.5,.75,1.0]/(2*pi))  % See Mastering Matlab 6 p. 401
axis square
title('Standard 2-D gaussian probability density function: Topographic Map','FontSize',14)

return

