function vertex_plot_test ( )

%*****************************************************************************80
%
%% vertex_plot_test() tests vertex_plot().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    19 June 2024
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'vertex_plot_test():\n' );
  fprintf ( 1, '  vertex_plot() plots an object from its vertex list.\n' );

  [ w, p ] = boundary_gort ( );
  name = '  Gort boundary word';
  boundary_print ( w, p, name );

  v = boundary_to_vertex ( w, p );
  name = '  Gort vertex list';

  fprintf ( 1, '\n' );
  fprintf ( 1, '%s\n', name );
  fprintf ( 1, '\n' );

  vn = size ( v, 1 );

  for i = 1 : vn
    fprintf ( 1, '  %2d:', i );
    for j = 1 : 2
      fprintf ( 1, ' %d', v(i,j) );
    end
    fprintf ( 1, '\n' );
  end
%
%  Determine the extent of the parallelogram grid.
%
  imin = min ( v(:,1) );
  imax = max ( v(:,1) );
  jmin = min ( v(:,2) );
  jmax = max ( v(:,2) );
%
%  Ensure inclusion of origin.
%
  imin = min ( imin, 0 );
  imax = max ( imax, 0 );
  jmin = min ( jmin, 0 );
  jmax = max ( jmax, 0 );
%
%  Make the plot.
%
  clf ( );

  r = 0.85;
  color_back = 'cyan';
  color_tri =  'yellow';
  number = false;
  grid_plot ( imin, imax, jmin, jmax, r, color_back, color_tri, number );

  color = 'red';
  number = true;
  vertex_plot ( v, color, number );

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

  return
end

