function automobile_scatter ( )

%*****************************************************************************80
%
%% automobile_scatter reads the automobile dataset and makes a scatterplot.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    22 April 2011
%
%  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.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'automobile_scatter\n' );
  fprintf ( 1, '  MATLAB version\n' );
  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', 'Fontsize', 16 );
  ylabel ( 'Curb weight in pounds', 'Fontsize', 16 );
  title ( '1985 car price versus weight.', 'Fontsize', 16 );
%
%  Save the plot as a PNG file.
%
  filename = 'automobile_scatter.png';
  print ( '-dpng', filename );
  fprintf ( 1, '\n' );
  fprintf ( 1, '  Graphics saved as "%s"\n', filename );
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'automobile_scatter:\n' );
  fprintf ( 1, '  Normal end of execution.\n' );

  return
end

