function word_plot_test ( )

%*****************************************************************************80
%
%% word_plot_test() tests word_plot().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    08 December 2021
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'word_plot_test():\n' );
  fprintf ( 1, '  word_plot() plots a polyabolo from its boundary word.\n' );

  [ w, p ] = heart_word ( );
%
%  Draw the grid.
%
  [ imin, imax, jmin, jmax ] = word_range ( w, p );
  imax = imax + 1;
  jmax = jmax + 1;

  clf ( );

  hold ( 'on' );
  r = 0.85;
  color_back = 'cyan';
  color_tri =  'yellow';
  number = false;
  grid_plot ( imin, imax, jmin, jmax, r, color_back, color_tri, number );
%
%  Draw the polyabolo on top of the grid.
%
  color = 'cyan';
  number = true;
  word_plot ( w, p, color, number );

  axis ( 'equal' );
  axis ( 'off' );
  label = s_escape_tex ( 'word_plot: heart' );
  title ( label )
  hold ( 'off' );

  filename = 'word_plot_heart.png';
  print ( '-dpng', filename );
  fprintf ( 1, '  Graphics saved as "%s"\n', filename );
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'word_plot_test():\n' );
  fprintf ( 1, '  Normal end of execution.\n' );

  return
end

