function gl_grids_minmax_display ( q_min, q_max )

%*****************************************************************************80
%
%% gl_grids_minmax_display() displays grids generated by gl_grids_minmax().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    06 November 2006
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer Q_MIN, Q_MAX: the range of Q values.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'gl_grids_minmax_display():\n' );
  fprintf ( 1, '  Display the 2D Gauss-Legendre grids\n' );
  fprintf ( 1, '  generated by GL_GRIDS_MINMAX.\n' );

  dim_num = 2;
%
%  Compute data.
%
  [ grid_num, point_num ] = gl_grids_minmax_size ( dim_num, q_min, q_max );
    
  [ grid_order, grid_point ] = gl_grids_minmax ( dim_num, q_min, q_max, ...
    grid_num, point_num );

  clf ( );
%
%  We have to name the axes in order to control the grid.
%
  axes_handle = axes;
%
%  Plot the points.
%
  handle = scatter ( grid_point(1,:), grid_point(2,:), 'filled' );
%
%  Force the plotting region to be square, not rectangular.
%
  axis ( 'square' );
%
%  Request grid lines.
%
  grid ( 'on' );
%
%  Specify the location of the grid lines, and suppress labeling.
%
  set ( axes_handle, 'xtick', [ -1, -.75, -.5, -.25, 0, .25, .50, .75, 1] );
  set ( axes_handle, 'xticklabel', [] );
  set ( axes_handle, 'ytick', [ -1, -.75, -.5, -.25, 0, .25, .50, .75, 1] );
  set ( axes_handle, 'yticklabel', [] );
%
%  Make the plotting region slightly bigger than the data.
%
  axis ( [ -1.1, 1.1, -1.1, 1.1 ] );
%
%  Title
%
  s = sprintf ( '%d <= Q <= %d', q_min, q_max );
  title ( s );

  filename = sprintf ( 'gl_grids_minmax_%dto%d.png', q_min, q_max );
  print ( '-dpng', filename );
  fprintf ( 1, '  Graphics saved as "%s"\n', filename );
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'GL_GRIDS_MINMAX_DISPLAY:\n' );
  fprintf ( 1, '  Normal end of execution.\n' );

  return
end
