function lab03_3 ( )

%*****************************************************************************80
%
%% LAB03_3 makes a scatter plot.
%
%  Discussion:
%
%    The data includes records of the length in minutes of eruptions
%    and pauses at the Old Faithful geyser.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    10 December 2018
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, ' LAB03_3\n' );
  fprintf ( 1, '  MATLAB version\n' );
  fprintf ( 1, '  Create a scatter plot of eruption length versus\n' );
  fprintf ( 1, '  subsequent pause length at the Old Faithful geyser.\n' );
%
%  Load the data.
%  It's in CSV format.
%  Skip the first row, of labels.
%  Skip the first column, of indices.
%
  data = csvread ( 'faithful_data.csv', 1, 1 );

  scatter ( data(:,1), data(:,2), 'filled' );

  grid ( 'on' )
  title ( 'Duration of Eruption / Pause at Old Faithful' )
  xlabel ( '<-- Eruption Duration (minutes)-->' )
  ylabel ( '<-- Pause Duration (minutes) -->' )
%
%  Save a copy of the plot as a PNG file.
%
  filename = 'lab03_3.png';
  print ( '-dpng', filename );
  fprintf ( 1, '  Graphics saved as "%s"\n', filename );
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, ' LAB03_3:\n' );
  fprintf ( 1, '  Normal end of execution.\n' );

  return
end
