function node_ij_plot_test ( )

%*****************************************************************************80
%
%% node_ij_plot_test() tests node_ij_plot().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    03 December 2021
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'node_ij_plot_test():\n' );
  fprintf ( 1, '  node_ij_plot() plots the (i,j) coordinates of\n' );
  fprintf ( 1, '  the nodes of an Eternity object.\n' );
%
%  HEXAGON
%  Here we can use the generic node and subnode functions.
%
  [ w, p_ij ] = hexagon_word ( );
  v_ij = word_to_vertex_ij ( w, p_ij );
  u_ij = node_ij ( w, p_ij );
  s_ij = subnode_ij ( w, p_ij );
  label = 'node ij plot: hexagon';
  filename = 'hexagon_node_ij.png';
  node_ij_plot ( v_ij, u_ij, s_ij, label, filename );
%
%  HEXAGON3
%  Here we can use the generic node and subnode functions.
%
  [ w, p_ij ] = hexagon3_word ( );
  v_ij = word_to_vertex_ij ( w, p_ij );
  u_ij = node_ij ( w, p_ij );
  s_ij = subnode_ij ( w, p_ij );
  label = 'node ij plot: hexagon3';
  filename = 'hexagon3_node_ij.png';
  node_ij_plot ( v_ij, u_ij, s_ij, label, filename );
%
%  RECTANGLE 2x2
%  Here, we have to use the specific rectangle functions for nodes and subnodes.
%
  nx = 2;
  ny = 2;
  w = rectangle_word ( nx, ny );
  p_ij = [ 0, 0 ];
  v_ij = word_to_vertex_ij ( w, p_ij );
  u_ij = rectangle_node_ij ( nx, ny );
  s_ij = rectangle_subnode_ij ( nx, ny );
  label = 'node ij plot: rectangle 2x2';
  filename = 'rectangle_2x2_node_ij.png';
  node_ij_plot ( v_ij, u_ij, s_ij, label, filename );
%
%  RECTANGLE 4x5
%  Here, we have to use the specific rectangle functions for nodes and subnodes.
%
  nx = 4;
  ny = 5;
  w = rectangle_word ( nx, ny );
  p_ij = [ 0, 0 ];
  v_ij = word_to_vertex_ij ( w, p_ij );
  u_ij = rectangle_node_ij ( nx, ny );
  s_ij = rectangle_subnode_ij ( nx, ny );
  label = 'node ij plot: rectangle 4x5';
  filename = 'rectangle_4x5_node_ij.png';
  node_ij_plot ( v_ij, u_ij, s_ij, label, filename );
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'node_ij_plot_test():\n' );
  fprintf ( 1, '  Normal end of execution.\n' );

  return
end
 
