function us_population ( )

%*****************************************************************************80
%
%% us_population() plots the population of the US over time.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    12 June 2019
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'us_population():\n' );
  fprintf ( 1, '  MATLAB/Octave version %s\n', version ( ) );
  fprintf ( 1, '  Plot population of the US over time.\n' );

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

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

  return
end

