function sine_test ( )

%*****************************************************************************80
%
%% sine_test() tests gpl_curve() on SINE.GPL.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    11 May 2014
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'SINE_TEST:\n' );
  fprintf ( 1, '  Read a GPL file that describes a single 1D, 2D or 3D\n' );
  fprintf ( 1, '  curve, and display it.\n' );

  filename = 'sine.gpl';
%
%  I should be able to determine M and N from the file...
%
  m = gpl_dimension ( filename );
  n = 101;

  x = gpl_curve ( filename, m, n );

  plot ( x(1,:), x(2,:), 'r-', 'Linewidth', 3 );
  xlabel ( '<---X--->', 'Fontsize', 16 );
  ylabel ( '<---Y(Z)--->', 'Fontsize', 16 );
  title ( filename, 'Fontsize', 24 )
  grid on

  png_filename = 'sine.png';
  print ( '-dpng', png_filename );
  fprintf ( 1, '\n' );
  fprintf ( 1, '  Saving PNG snapshot as "%s"\n', png_filename );

  return
end
