function nile_plot ( )

%*****************************************************************************80
%
%% nile_plot makes a line plot of yearly flood levels for the Nile.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    08 May 2018
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'nile_plot:\n' );
  fprintf ( 1, '  MATLAB version\n' );
  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', 'Fontsize', 16 )
  ylabel ( '<-- Height of Nile at Maximum Flood -->', 'Fontsize', 16 )
  title ( 'Yearly Nile Flood Height', 'Fontsize', 16 )

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

  return
end

