function random_scatter ( )

%*****************************************************************************80
%
%% random_scatter draws a scatter plot of random X Y data.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    30 April 2018
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'random_scatter:\n' );
  fprintf ( 1, '  MATLAB version\n' );
  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 --->', 'Fontsize', 16 );
  ylabel ( '<--- Y --->', 'Fontsize', 16 );
  title ( 'Scatter Plot of Random XY values', 'Fontsize', 16 );
%
%  Save the plot as a PNG file.
%
  filename = 'random_scatter.png';
  print ( '-dpng', filename );
  fprintf ( 1, '\n' );
  fprintf ( 1, '  Graphics saved as "%s"\n', filename );
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'random_scatter:\n' );
  fprintf ( 1, '  Normal end of execution.\n' );

  return
end

