function president_heights_histogram ( )

%*****************************************************************************80
%
%% president_heights_histogram() makes a histogram of Presidential heights.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    25 April 2018
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'president_heights_histogram():\n' );
  fprintf ( 1, '  MATLAB/Octave version %s:\n', version ( ) );
  fprintf ( 1, '  Create a histogram of the height in inches of US presidents.\n' );
%
%  Load the data.
%  The data is in a "comma separated value" file.
%  We need to skip the first line, because it contains non-numeric data (labels).
%  We need to skip the first column, because it contains non-numeric data (names).
%
  height = csvread ( 'president_heights_data.csv', 1, 1 );

  [ m, n ] = size ( height );
  fprintf ( 1, '\n' );
  fprintf ( 1, '  %d x %d data records read from file.\n', m, n );
%
%  Draw a histogram.
%
  histogram ( height );

  grid ( 'on' )
  title ( 'US President Heights', 'Fontsize', 16 )
  xlabel ( '<-- Height (inches) -->', 'Fontsize', 16 )
  ylabel ( 'Frequency', 'Fontsize', 16 )
%
%  Save a copy of the plot as a PNG file.
%
  filename = 'president_heights_histogram.png';
  print ( '-dpng', filename );
  fprintf ( 1, '\n' );
  fprintf ( 1, '  Graphics saved as "%s"\n', filename );
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'president_heights_histogram():\n' );
  fprintf ( 1, '  Normal end of execution.\n' );

  return
end
