function geyser_bar ( )

%*****************************************************************************80
%
%% geyser_bar() makes a bar plot of geyser data.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    28 April 2011
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'geyser_bar():\n' );
  fprintf ( 1, '  MATLAB/Octave version %s:\n', version ( ) );
  fprintf ( 1, '  Read binned data of waiting times between eruptions\n' );
  fprintf ( 1, '  of the Old Faithful geyser.\n' );
  fprintf ( 1, '  Create a corresponding bar plot.\n' );

  filename = 'geyser_bar_data.txt';
  xy = load ( filename );
%
%  Set the relative width of the bar.
%
  bar_width = 0.80;
%
%  Draw a bar graph.
%
  bar ( xy(:,1), xy(:,2), bar_width, 'r' );

  grid ( 'on' );
  title ( 'Time between eruptions of Old Faithful', 'Fontsize', 16 );
  xlabel ( 'Minutes', 'Fontsize', 16 );
  ylabel ( 'Frequency', 'Fontsize', 16 );
%
%  Save a copy of the plot as a PNG file.
%
  filename = 'geyser_bar.png';
  print ( '-dpng', filename );
  fprintf ( 1, '\n' );
  fprintf ( 1, '  Graphics saved as "%s"\n', filename );
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'geyser_bar():\n' );
  fprintf ( 1, '  Normal end of execution.\n' );

  return
end
