function temperature_scatter3d ( )

%*****************************************************************************80
%
%% TEMPERATURE_SCATTER3D makes a 3D scatter plot.
%
%  Discussion:
%
%    Plot the longitude, latitude, and January temperature for various
%    cities in US.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    19 July 2018
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'TEMPERATURE_SCATTER3D\n' );
  fprintf ( 1, '  Octave version\n' );
  fprintf ( 1, '  Create a 3D scatter plot of logintude,\n' );
  fprintf ( 1, '  latitude, and January temperature.\n' );
%
%  Load the data.
%
  tll = load ( 'temperature_data.txt' );

  scatter3 ( tll(:,2), tll(:,3), tll(:,1), 'r', 'filled' );

  grid ( 'on' )
  title ( 'January Temperatures in US Cities' )
  xlabel ( '<-- Longitude -->' )
  ylabel ( '<-- Latitude -->' )
  zlabel ( '<-- Temperature -->' )

  view ( 3 )

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

  return
end
