function automobile_scatter ( )

%*****************************************************************************80
%
%% AUTOMOBILE_SCATTER reads the automobile dataset and makes a scatterplot.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    19 July 2018
%
%  Author:
%
%    John Burkardt
%
%  Reference:
%
%    A Frank, A Asuncion,
%    UCI Machine Learning Repository,
%    http://archive.ics.uci.edu/ml,
%    School of Information and Computer Science,
%    University of California, Irvine, California.
%
  timestamp ( );
  fprintf ( 1, '\n' );
  fprintf ( 1, 'AUTOMOBILE_SCATTER\n' );
  fprintf ( 1, '  MATLAB/Octave version %s:\n', version ( ) );
  fprintf ( 1, '  Read a data file of automobile prices and weights.\n' );
  fprintf ( 1, '  Make a scatter plot of pairs of data.\n' );
%
%  Read the data from the file.
%
  filename = 'automobile_data.txt';
  data = load ( filename );
%
%  Create a scatter plot.
%
  figure ( 1 )
  clf ( );

  plot ( data(:,1), data(:,2), 'm.', 'MarkerSize', 20 )
  grid ( 'on' );
  xlabel ( 'Price in 1985 Dollars' );
  ylabel ( 'Curb weight in pounds' );
  title ( 'Scatter plot of price versus weight.' );

  pause ( 5 );
%
%  Save the plot as a PNG file.
%
  filename = 'automobile_scatter.png';
  print ( '-dpng', filename );
  fprintf ( 1, '\n' );
  fprintf ( 1, '  Graphic data saved in "%s"\n', filename );
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'AUTOMOBILE_SCATTER:\n' );
  fprintf ( 1, '  Normal end of execution.\n' );
  timestamp ( );

  return
end

