function polyiamond_grid_plot_test ( )

%*****************************************************************************80
%
%% polyiamond_grid_plot_test tests polyiamond_grid_plot().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    24 August 2020
%
%  Author:
%
%    John Burkardt
%
  timestamp ( );
  fprintf ( 1, '\n' );
  fprintf ( 1, 'polyiamond_grid_plot_test\n' );
  fprintf ( 1, '  MATLAB/Octave version %s\n', version ( ) );
  fprintf ( 1, '  polyiamond_grid_plot plots a grid for polyiamonds.\n' );

  clf ( );

  imin = 1;
  jmin = 1;
  imax = 6;
  jmax = 4;
  r = 0.85;
  color_back = [ 0.9, 0.9, 0.9 ];
  color_tri = [ 1.0, 0.0, 0.0 ];
  number = true;
  polyiamond_grid_plot ( imin, jmin, imax, jmax, r, color_back, ...
    color_tri, number );
%
%  Show that you can add things to the plot.
%
  hold ( 'on' );
  i = 2;
  j = 3;
  k = 1;
  r = 0.70;
  color = 'y';
  label = '*';
  triangle_ijk_fill ( i, j, k, r, color, label );
  hold ( 'off' );

  title ( 'example polyiamond grid' );
  filename = 'polyiamond_grid_plot_test.png';
  print ( '-dpng', filename );
  fprintf ( 1, '  Graphics saved as "%s"\n', filename );
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'polyiamond_grid_plot_test\n' );
  fprintf ( 1, '  Normal end of execution.\n' );
  timestamp ( );

  return
end
