function logistic_plot_test ( )

%*****************************************************************************80
%
%% logistic_plot_test() tests logistic_cdf().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    04 April 2016
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'logistic_plot_test():\n' );
  fprintf ( 1, '  Plot the PDF, CDF, and inverse CDF of logistic distribution;\n' );

  a = 0.0;
  b = 1.0;

  fprintf ( 1, '\n' );
  fprintf ( 1, '  PDF parameter A =             %14g\n', a );
  fprintf ( 1, '  PDF parameter B =             %14g\n', b );

  x = linspace ( a - 8.0, a + 8.0, 101 );
  pdf = logistic_pdf ( x, a, b );
  cdf = logistic_cdf ( x, a, b );

  clf ( );
  plot ( x, pdf, 'r-', 'linewidth', 3 );
  grid ( 'on' );
  xlabel ( '<-- X -->' )
  ylabel ( '<-- PDF(X) -->' );
  title ( 'PDF of Logistic distribution' );
  filename = 'logistic_pdf.png';
  print ( '-dpng', filename );
  fprintf ( 1, '  Graphics saved as "%s"\n', filename );

  clf ( );
  plot ( x, cdf, 'b-', 'linewidth', 3 );
  grid ( 'on' );
  xlabel ( '<-- X -->' )
  ylabel ( '<-- CDF(X) -->' );
  title ( 'CDF of Logistic distribution' );
  filename = 'logistic_cdf.png';
  print ( '-dpng', filename );
  fprintf ( 1, '  Graphics saved as "%s"\n', filename );

  clf ( );
  plot ( cdf, x, 'g-', 'linewidth', 3 );
  grid ( 'on' );
  xlabel ( '<-- CDF -->' )
  ylabel ( '<-- X(CDF) -->' );
  title ( 'Inverse CDF of Logistic distribution' );
  filename = 'logistic_icdf.png';
  print ( '-dpng', filename );
  fprintf ( 1, '  Graphics saved as "%s"\n', filename );

  return
end
