function ring_data_plot ( m, p, id )

%*****************************************************************************80
%
%% RING_DATA_PLOT plots the ring data.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    11 September 2018
%
%  Author:
%
%    John Burkardt
%
%  Parameters:
%
%    Input, integer M, the total number of points.
%
%    Input, real P(2,M), the coordinates of the points.
%
%    Input, integer ID(M), the index of the ring to which each point belongs.
%
  mycolor = rand ( m, 3 );

  clf
  hold on
  for i = 1 : m
    plot ( p(i,1), p(i,2), '.', 'markersize', 20, 'markeredgecolor', mycolor(id(i),1:3) );
  end
  hold off
  axis ( 'equal' )
  title ( 'RING\_DATA: 3 rings' )
  grid on

  filename = 'ring_data_test.png';
  print ( '-dpng', filename );

  fprintf ( 1, '\n' );
  fprintf ( 1, '  Graphics data saved in "%s"\n', filename );

  return
end
