function nile_plot ( )

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

  data = load ( 'nile_data.txt' );
  height = data(:,2);

  plot ( height, 'linewidth', 2 );
  grid on
  xlabel ( 'Year' )
  ylabel ( '<-- Height of Nile at Maximum Flood -->' )
  title ( 'Yearly Nile Flood Height' )

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

  return
end

