function snowfall_histogram ( )

%*****************************************************************************80
%
%% SNOWFALL_HISTOGRAM plots a histogram of yearly total snowfalls.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    30 April 2018
%
%  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' );

  y = load ( 'snowfall_data.txt' );

  [ m, n ] = size ( data );
  fprintf ( 1, '\n' );
  fprintf ( 1, '  %d data records read from file.\n' );
%
%  For simplicity, copy column 10, and call it "inches".
%
  inches = y(:,10);

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

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

  return
end

