function cc_grid_display ( order_1d )

%*****************************************************************************80
%
%% cc_grid_display() displays a 2D Clenshaw-Curtis grid.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    02 November 2006
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer ORDER_1D(2), the grid orders in the X and Y directions.
%
  dim_num = 2;
   
  figure ( 1 );
  
  clf ( );

  order_nd = prod ( order_1d(1:2) );
    
  points = cc_grid ( dim_num, order_1d, order_nd );
%
%  We have to name the axes in order to control the grid.
%
  axes_handle = axes;
%
%  Plot the points.
%
  handle = scatter ( points(1,:), points(2,:), 'b', '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 ( '%dx%d Clenshaw-Curtis Grid', order_1d(1), order_1d(2) );
  title ( s );

  return
end
