function album_bar ( )

%*****************************************************************************80
%
%% album_bar makes a bar graph of music album sales over 11 years.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    06 April 2018
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'album_bar:\n' );
  fprintf ( 1, '  MATLAB version\n' );
  fprintf ( 1, '  Read a data file of yearly music album sales.\n' );
  fprintf ( 1, '  Display the data as a bar plot.\n' );
%
%  Load the data.
%
  data = load ( 'album_data.txt' );
%
%  Split the data, for clarity.
%
  year = data(:,1);
  sales = data(:,2);
%
%  Make each bar use 80% of its space.
%
  width = 0.80;
%
%  Draw the bar graph.
%
  bar ( year, sales, width, 'r' );
%
%  Add grid lines.
%
  grid on
%
%  Add text.
%
  title ( 'Music album sales, all formats', 'fontsize', 24 )
  xlabel ( 'Year', 'fontsize', 16 )
  ylabel ( 'Millions', 'fontsize', 16 )
%
%  Save a copy of the plot as a PNG file.
%
  filename = 'album_bar.png';
  print ( '-dpng', filename );
  fprintf ( 1, '\n' );
  fprintf ( 1, '  Graphics saved as "%s"\n', filename );
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'album_bar:\n' );
  fprintf ( 1, '  Normal end of execution.\n' );

  return
end

