function snowfall_plot ( )

%*****************************************************************************80
%
%% SNOWFALL_PLOT plots yearly snowfall data.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    19 July 2018
%
%  Author:
%
%    John Burkardt
%
  timestamp ( );
  fprintf ( 1, '\n' );
  fprintf ( 1, 'SNOWFALL_PLOT:\n' );
  fprintf ( 1, '  MATLAB/Octave version %s:\n', version ( ) );
  fprintf ( 1, '  Make a line plot of snowfall data.\n' );

  y = load ( 'snowfall_data.txt' );
  year = y(:,1);
  inches = y(:,10);

  figure ( 1 )
  plot ( year, inches, 'Linewidth', 2 );
  grid on
  xlabel ( '<-- Year -->' )
  ylabel ( '<-- Total Snow in Inches -->' )
  title ( 'Yearly Snowfall at Michigan Tech' )

  pause ( 5 )
%
%  Save graphics to a file.
%
  filename = 'snowfall_plot.png';
  print ( '-dpng', filename )
  fprintf ( 1, '\n' );
  fprintf ( 1, '  Graphics saved in "%s"\n', filename );
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'SNOWFALL_PLOT:\n' );
  fprintf ( 1, '  Normal end of execution.\n' );
  timestamp ( );

  return
end

