function total_degree_test ( )

%*****************************************************************************80
%
%% TOTAL_DEGREE_TEST plots total degree index sets.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    09 September 2017
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'TOTAL_DEGREE_TEST:\n' );
  fprintf ( 1, '  Plot total degree index sets.\n' );
  fprintf ( 1, '\n' );

  m = 12;
  title_string = 'Total Degree <= 1';
  cube_display ( m, @(x,y,z)x+y+z<=0, @(x,y,z)x+y+z<=1, title_string );
  print ( '-dpng', 'td1.png' );
  fprintf ( 1, '  Created "td1.png".\n' );

  m = 12;
  title_string = 'Total Degree <= 2';
  cube_display ( m, @(x,y,z)x+y+z<=1, @(x,y,z)x+y+z<=2, title_string );
  print ( '-dpng', 'td2.png' );
  fprintf ( 1, '  Created "td2.png".\n' );

  m = 12;
  title_string = 'Total Degree <= 3';
  cube_display ( m, @(x,y,z)x+y+z<=2, @(x,y,z)x+y+z<=3, title_string );
  print ( '-dpng', 'td3.png' );
  fprintf ( 1, '  Created "td3.png".\n' );

  m = 12;
  title_string = 'Total Degree <= 4';
  cube_display ( m, @(x,y,z)x+y+z<=3, @(x,y,z)x+y+z<=4, title_string );
  print ( '-dpng', 'td4.png' );
  fprintf ( 1, '  Created "td4.png".\n' );

  m = 12;
  title_string = 'Total Degree <= 5';
  cube_display ( m, @(x,y,z)x+y+z<=4, @(x,y,z)x+y+z<=5, title_string );
  print ( '-dpng', 'td5.png' );
  fprintf ( 1, '  Created "td5.png".\n' );

  m = 12;
  title_string = 'Total Degree <= 6';
  cube_display ( m, @(x,y,z)x+y+z<=5, @(x,y,z)x+y+z<=6, title_string );
  print ( '-dpng', 'td6.png' );
  fprintf ( 1, '  Created "td6.png".\n' );

  m = 12;
  title_string = 'Total Degree <= 7';
  cube_display ( m, @(x,y,z)x+y+z<=6, @(x,y,z)x+y+z<=7, title_string );
  print ( '-dpng', 'td7.png' );
  fprintf ( 1, '  Created "td7.png".\n' );

  m = 12;
  title_string = 'Total Degree <= 8';
  cube_display ( m, @(x,y,z)x+y+z<=7, @(x,y,z)x+y+z<=8, title_string );
  print ( '-dpng', 'td8.png' );
  fprintf ( 1, '  Created "td8.png".\n' );

  m = 12;
  title_string = 'Total Degree <= 9';
  cube_display ( m, @(x,y,z)x+y+z<=8, @(x,y,z)x+y+z<=9, title_string );
  print ( '-dpng', 'td9.png' );
  fprintf ( 1, '  Created "td9.png".\n' );

  return
end
