function snowfall_histogram ( )

%*****************************************************************************80
%
%% snowfall_histogram plots a histogram of yearly total snowfalls.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    08 October 2019
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'snowfall_histogram:\n' );
  fprintf ( 1, '  MATLAB version\n' );
  fprintf ( 1, '  Make a histogram of yearly total snowfall data.\n' );
%
%  Read the data from a file.
%
  y = load ( 'snowfall_data.txt' );
  inches = y(:,10);

  histogram ( inches );

  grid ( 'on' );
  xlabel ( '<-- Total Yearly Snowfall in Inches -->' );
  ylabel ( '<-- Frequency -->' );
  title ( 'Yearly Snowfall in Michigan' );

  filename = 'snowfall_histogram.png';
  print ( '-dpng', filename );
  fprintf ( 1, '  Graphics saved as "%s"\n', filename );
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'snowfall_histogram:\n' );
  fprintf ( 1, '  Normal end of execution.\n' );

  return
end

