function pgm_project_display_test ( )

%*****************************************************************************80
%
%% pgm_project_display_test() tests pgm_project_display().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    25 December 2018
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'pgm_project_display_test():\n' );
  fprintf ( 1, '  Pack multiple PGM files into a single array.\n' );
  fprintf ( 1, '  Generate a set of principal component vectors.\n' );
  fprintf ( 1, '  Given one of those PGM files, reconstruct the image\n' );
  fprintf ( 1, '  as a sum of the average plus projections onto vectors.\n' );
  fprintf ( 1, '  Display the projections in a single plot.' );

  filelist = 's01_list.txt';
  n = 9;
  pgm_filename = 's0103.pgm';
  png_filename = 'pgm_project_display_test.png';
  pgm_project_display ( filelist, n, pgm_filename, png_filename );
  pause ( 10 );

  return
end
