function polyiamond_region_plot ( iv, jv, color )

%*****************************************************************************80
%
%% polyiamond_region_plot plots a region from its parallelogram vertices.
%
%  Discussion:
%
%    The user should call "clf()" before this function.
%    More plotting commands may be issued if preceded by the "hold on"
%    command.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    06 September 2020
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer IV(NV), JV(NV): the vertices, in counterclockwise order.
%
%    color COLOR: the color to use.
%
  hold ( 'on' );
%
%  Determine the extent of the parallelogram grid.
%
  imin = min ( iv );
  imax = max ( iv );
  jmin = min ( jv );
  jmax = max ( jv );
%
%  Consider each triangle in the parallelogram grid.
%  If it is in the region, color it in.
%
  r = 1.0;
  number = 0;
  for j = jmin + 1 : jmax + 1
    for i = imin + 1 : imax + 1
      for k = 0 : 1
        if ( triangle_ijk_in_region ( i, j, k, iv, jv ) )
          number = number + 1;
          label = sprintf ( '%d', number );
          triangle_ijk_fill ( i, j, k, r, color, label );
        end
      end
    end
  end

  hold ( 'off' );

  axis ( 'equal' );
  axis ( 'off' );

  return
end
