function random_scatter ( )

%*****************************************************************************80
%
%% RANDOM_SCATTER draws a scatter plot of random X Y data.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    19 July 2018
%
%  Author:
%
%    John Burkardt
%
  timestamp ( );
  fprintf ( 1, '\n' );
  fprintf ( 1, 'RANDOM_SCATTER:\n' );
  fprintf ( 1, '  MATLAB/Octave version %s:\n', version ( ) );
  fprintf ( 1, '  Make a scatterplot of random (X,Y) data.\n' );

  xy = load ( 'random_data.txt' );
%
%  Plot the data.
%
  plot ( xy(:,1), xy(:,2), 'b.', 'MarkerSize', 25 );
  grid on
  axis ( [ 0.0, 1.0, 0.0, 1.0 ] )
  axis equal
  axis square
  xlabel ( '<--- X --->' );
  ylabel ( '<--- Y --->' );
  title ( 'Scatter Plot of Random XY values' );

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

  return
end

