function boundary_plot_test ( )

%*****************************************************************************80
%
%% boundary_plot_test() tests boundary_plot().
%
%  Discussion:
%
%    5           x x x x-x x
%                 /|  / /
%    4         x-x x x x x
%             /    |/ /
%    3       x-x x x x x
%              |    /
%    2     x x x x x x
%             /    |
%    1   x-x-x x x x
%       /         /
%    0 x-x-x-x-x-x
%
%      0 1 2 3 4 5
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    03 November 2020
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'boundary_plot_test():\n' );
  fprintf ( 1, '  boundary_plot() plots a polyiamond from its boundary word.\n' );

  [ w, p ] = boundary_gort ( );
%
%  Draw the parallelogram grid.
%
  [ imin, imax, jmin, jmax ] = boundary_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 polyiamond.
%
  color = 'blue';
  number = true;
  boundary_plot ( w, p, color, number );

  axis ( 'equal' );
  axis ( 'off' );
  title ( 'Boundary plot test: gort' )
  hold ( 'off' );

  filename = 'boundary_plot_test.png';
  print ( '-dpng', filename );
  fprintf ( 1, '  Graphics saved as "%s"\n', filename );

  return
end

