function voronoi_plot_test ( )

%*****************************************************************************80
%
%% voronoi_plot_test tests voronoi_plot.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    15 February 2019
%
%  Author:
%
%    John Burkardt
%
  addpath ( '../voronoi_plot' )

  timestamp ( );
  fprintf ( 1, '\n' );
  fprintf ( 1, 'voronoi_plot_test:\n' );
  fprintf ( 1, '  MATLAB version\n' );
  fprintf ( 1, '  Test voronoi_plot.\n' );

  xy = load ( 'diamond_02_00009.txt' );
  xy = xy';
  m = 200;
  n = 200;

  p = 0.25;
  filename = 'diamond_01_00009_l0.25.png';
  voronoi_plot ( xy, m, n, p, filename );

  p = 0.50;
  filename = 'diamond_01_00009_l0.5.png';
  voronoi_plot ( xy, m, n, p, filename );

  p = 1.0;
  filename = 'diamond_01_00009_l1.png';
  voronoi_plot ( xy, m, n, p, filename );

  p = 2.0;
  filename = 'diamond_01_00009_l2.png';
  voronoi_plot ( xy, m, n, p, filename );

  p = 3.0;
  filename = 'diamond_01_00009_l3.png';
  voronoi_plot ( xy, m, n, p, filename );

  p = Inf;
  filename = 'diamond_01_00009_linf.png';
  voronoi_plot ( xy, m, n, p, filename );

  xy = load ( 'uniform_02_00010.txt' );
  xy = xy';
  m = 200;
  n = 200;

  p = 1.0;
  filename = 'uniform_02_00010_l1.png';
  voronoi_plot ( xy, m, n, p, filename );

  p = 2.0;
  filename = 'uniform_02_00010_l2.png';
  voronoi_plot ( xy, m, n, p, filename );

  p = 3.0;
  filename = 'diamond_01_00009_l3.png';
  voronoi_plot ( xy, m, n, p, filename );

  p = 4.0;
  filename = 'uniform_02_00010_l4.png';
  voronoi_plot ( xy, m, n, p, filename );

  p = Inf;
  filename = 'uniform_02_00010_linf.png';
  voronoi_plot ( xy, m, n, p, filename );
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'voronoi_plot_test:\n' );
  fprintf ( 1, '  Normal end of execution.\n' );
  fprintf ( 1, '\n' );
  timestamp ( );

  rmpath ( '../voronoi_plot' )

  return
end
