function corvette_scatter ( )

%*****************************************************************************80
%
%% CORVETTE_SCATTER makes a scatter plot of Corvette resale prices.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    19 July 2018
%
%  Author:
%
%    John Burkardt
%
  timestamp ( );
  fprintf ( 1, '\n' );
  fprintf ( 1, 'CORVETTE_SCATTER:\n' );
  fprintf ( 1, '  MATLAB/Octave version %s:\n', version ( ) );
  fprintf ( 1, '  Read a data file of resale prices for Corvettes.\n' );
  fprintf ( 1, '  Display the data as a scatter plot.\n' );
%
%  Load the data.
%
  data = load ( 'corvette_data.txt' );
%
%  Split the data, for clarity.
%
  year = data(:,1);
  price = data(:,2);
%
%  Draw the scatter graph
%
  scatter ( year, price, 'filled' );
%
%  Add grid lines.
%
  grid on
%
%  Add text.
%
  title ( 'Corvette resale prices by model year', 'fontsize', 24 )
  xlabel ( 'Model Year', 'fontsize', 16 )
  ylabel ( 'Price', 'fontsize', 16 )

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

  return
end

