function sphere_polar()
%sphere_polar plots a function on a sphere
%    sphere_polar() plots the function 1-cos(theta)^2 on the sphere.
%    
%    NOTE : This requires the chebfun package.  You can download 
%    chebfun at
%
%         http://www.chebfun.org
%

close all

F = spherefun(@(lambda,theta) 1-cos(theta).^2);

% Plot the function on the sphere
plot(F);
hold on;

% Plot contour lines
contour(F,'k');

% Make the plot look cool
axis off;
set(gca,'Clipping','off');
set(gcf,'color','k');
camlight;

end


