function p00_plot ( prob )

%*****************************************************************************80
%
%% p00_plot() plots the data for any of the tests.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    04 February 2012
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer PROB, the problem index.
%
  prob_num = p00_prob_num;

  if ( prob < 1 | prob_num < prob )
    fprintf ( 1, '\n' );
    fprintf ( 1, 'P00_plot - Fatal error!\n' );
    fprintf ( 1, '  Values of PROB must be between 1 and %d.\n', prob_num );
    error ( 'P00_plot - Fatal error!' );
  end

  [ a, b ] = p00_lim ( prob );

  x = linspace ( a, b, 501 );

  y = p00_fun ( prob, x );

  t = p00_title ( prob );

  plot ( x, y, 'Linewidth', 2 );
  grid
  xlabel ( '<---X--->' )
  ylabel ( '<---Y--->' )
  title ( t );

  return
end
