function lindberg_plot_test ( )

%*****************************************************************************80
%
%% lindberg_plot_test() plots exact solution components.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    11 May 2024
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'lindberg_plot_test():\n' );
  fprintf ( 1, '  Plot the exact solution components of the Lindberg ODE.\n' );
  fprintf ( 1, '  The first two components blow up.\n' );

  [ t0, y0, tstop ] = lindberg_parameters ( );

  n = 101;
  t = linspace ( t0, tstop, n );

  [ y, dydt ] = lindberg_exact ( t );
%
%  Limit magnitude of y1 and y2.
%
  for i = 1 : n
    for j = 1 : 4
      y(i,j) = min ( y(i,j), 1.0E+1 );
      y(i,j) = max ( y(i,j), -1.0E+1 );
    end
  end

  clf ( );
  plot ( t, y(:,1), 'r-', 'linewidth', 3 );
  grid ( 'on' );
  xlabel ( '<-- t -->' );
  ylabel ( '<-- y1(t) -->' );
  title ( 'lindberg exact y1' );
  filename = 'lindberg_exact_y1.png';
  print ( '-dpng', filename );
  fprintf ( 1, '  Graphics saved as "%s"\n', filename );

  clf ( );
  plot ( t, y(:,2), 'r-', 'linewidth', 3 );
  grid ( 'on' );
  xlabel ( '<-- t -->' );
  ylabel ( '<-- y2(t) -->' );
  title ( 'lindberg exact y2' );
  filename = 'lindberg_exact_y2.png';
  print ( '-dpng', filename );
  fprintf ( 1, '  Graphics saved as "%s"\n', filename );

  clf ( );
  plot ( t, y(:,3), 'ro', 'linewidth', 3 );
  grid ( 'on' );
  xlabel ( '<-- t -->' );
  ylabel ( '<-- y3(t) -->' );
  title ( 'lindberg exact y3' );
  filename = 'lindberg_exact_y3.png';
  print ( '-dpng', filename );
  fprintf ( 1, '  Graphics saved as "%s"\n', filename );

  clf ( );
  plot ( t, y(:,4), 'ro', 'linewidth', 3 );
  grid ( 'on' );
  xlabel ( '<-- t -->' );
  ylabel ( '<-- y4(t) -->' );
  title ( 'lindberg exact y4' );
  filename = 'lindberg_exact_y4.png';
  print ( '-dpng', filename );
  fprintf ( 1, '  Graphics saved as "%s"\n', filename );

  return
end
