function earth_population ( )

%*****************************************************************************80
%
%% earth_population() plots the population of the Earth over time.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    06 March 2024
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'earth_population():\n' );
  fprintf ( 1, '  MATLAB/Octave version %s\n', version ( ) );
  fprintf ( 1, '  Plot population of the Earth over time.\n' );

  data = csvread ( 'earth_population.csv', 1 ) ;

  plot ( data(:,1), data(:,2), 'linewidth', 3 )
  grid on
  xlabel ( '<-- Year -->', 'Fontsize', 16 )
  ylabel ( '<-- Population -->', 'Fontsize', 16 )
  title ( 'Population of the Earth Over Time', 'Fontsize', 16 )
%
%  Save graphics in a file.
%
  filename= 'earth_population.png';
  print ( '-dpng', filename );
  fprintf ( 1, '\n' );
  fprintf ( 1, '  Graphics saved as "%s"\n', filename );
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'earth_population():\n' );
  fprintf ( 1, '  Normal end of execution.\n' );

  return
end

