function lynx_plot ( )

%*****************************************************************************80
%
%% LYNX_PLOT creates a line plot of lynx data.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    19 July 2018
%
%  Author:
%
%    John Burkardt
%
  timestamp ( );
  fprintf ( 1, '\n' );
  fprintf ( 1, 'LYNX_PLOT:\n' );
  fprintf ( 1, '  MATLAB/Octave version %s:\n', version ( ) );
  fprintf ( 1, '  Make a curve by connecting a series of data points.\n' );
  fprintf ( 1, '  Mark the data points.\n' );

  xy = load ( 'lynx_data.txt' );
%
%  Plot the data.
%
  plot ( xy(:,1), xy(:,2), 'LineWidth', 2, 'Color', 'g' );
  hold ( 'on' );
  plot ( xy(:,1), xy(:,2), 'ko' );
  grid ( 'on' );
  xlabel ( '<--- Year --->' );
  ylabel ( '<--- Lynx Harvest --->' );
  title ( 'Lynx Population Records' );
  hold ( 'off' );

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

  return
end
