function president_heights_bar ( )

%*****************************************************************************80
%
%% PRESIDENT_HEIGHTS_BAR uses MATLAB to make a bar plot of Presidential heights.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    28 April 2018
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'PRESIDENT_HEIGHTS_BAR\n' );
  fprintf ( 1, '  MATLAB version\n' );
  fprintf ( 1, '  Create a bar plot 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 );
%
%  Draw a histogram.
%
  bar ( height );

  grid ( 'on' )
  title ( 'US President Heights' )
  xlabel ( '<-- Index -->' )
  ylabel ( 'Height' )
%
%  Save a copy of the plot as a PNG file.
%
  filename = 'president_heights_bar.png';
  print ( '-dpng', filename );
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'PRESIDENT_HEIGHTS_BAR:\n' );
  fprintf ( 1, '  Normal end of execution.\n' );

  return
end
