home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 10 / 10.iso / l / l460 / 2.ddi / PLOTXY.DI$ / FILL.M < prev    next >
Encoding:
Text File  |  1993-03-07  |  1.7 KB  |  39 lines

  1. %FILL    Draw filled 2-D polygons.
  2. %     FILL(X,Y,C) fills the 2-D polygon defined by vectors X and Y
  3. %    with the color specified by C.  The vertices of the polygon
  4. %    are specified by pairs of components of X and Y.  If necessary,
  5. %    the polygon is closed by connecting the last vertex to the first.
  6. %
  7. %    If C is a single character string chosen from the list 'r','g','b',
  8. %    'c','m','y','w','k', or an RGB row vector triple, [r g b], the
  9. %    polygon is filled with the constant specified color.
  10. %
  11. %    If C is a vector the same length as X and Y, its elements are
  12. %    scaled by CAXIS and used as indices into the current COLORMAP to
  13. %    specify colors at the vertices; the color within the polygon is
  14. %    obtained by bilinear interpolation in the vertex colors.
  15. %
  16. %    If X and Y are matrices the same size, one polygon per column
  17. %    is drawn. In this case, C is a row vector for "flat" polygon
  18. %    colors, and C is a matrix for "interpolated" polygon colors. 
  19. %
  20. %    If either of X or Y is a matrix, and the other is a column vector
  21. %    with the same number of rows, the column vector argument is
  22. %    replicated to produce a matrix of the required size.
  23. %
  24. %      FILL(X1,Y1,C1,X2,Y2,C2,...) is another way of specifying
  25. %    multiple filled areas.
  26. %
  27. %    FILL sets the PATCH object FaceColor property to 'flat', 'interp',
  28. %    or a colorspec depending upon the value of the C matrix.
  29. %
  30. %    FILL returns a column vector of handles to PATCH objects, one handle
  31. %    per patch. The X,Y,C triples can be followed by parameter/value pairs 
  32. %    to specify additional properties of the patches. FILL does not respond 
  33. %    to the NextPlot axis property.
  34. %
  35. %     See also PATCH, FILL3, COLORMAP.
  36.  
  37. %    Copyright (c) 1984-93 by The MathWorks, Inc.
  38. %    Built-in function.
  39.