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

  1. %PATCH    Create patch low-level objects.
  2. %     PATCH(X,Y,C) adds the "patch" or filled 2-D polygon defined by 
  3. %    vectors X and Y to the current axes. C specifies the color 
  4. %    index into the colormap. If it is a scalar, it simply specifies
  5. %    the color of the polygon ("flat" coloring). If it is a vector the
  6. %    same length as X and Y, it specifies the color of each vertex and
  7. %    bilinear interpolation is used to determine the interior color of
  8. %    the polygon ("interpolated" coloring).
  9. %
  10. %    If C is a string, the polygon is filled with 'color'.  
  11. %    'color' can be 'r','g','b','c','m','y', 'w', or 'k'.
  12. %
  13. %    If X, Y, and C are matrices the same size, one patch per column
  14. %    is added. In this case, C is a row vector for "flat" polygon
  15. %    colors, and C is a matrix for "interpolated" polygon colors.
  16. %
  17. %    PATCH sets its FaceColor property to 'flat', 'interp', or a
  18. %    colorspec depending upon the value of the C matrix.
  19. %
  20. %    PATCH(X,Y,Z,C) creates patches in 3-D coordinates.
  21. %
  22. %    PATCH returns a column vector of handles to PATCH objects, one
  23. %    handle per patch. PATCHes are children of AXES objects.
  24. %
  25. %    The X,Y,C triple (X,Y,Z,C quad for 3-D) can be followed by 
  26. %    parameter/value pairs to specify additional properties of the
  27. %    patches. The X,Y,Z triple (X,Y,Z quad for 3-D) can be omitted
  28. %       entirely, and all properties specified using parameter/value
  29. %        pairs.
  30. %
  31. %       Execute GET(H), where H is a patch handle, to see a list of patch
  32. %       object properties and their current values. Execute SET(H) to see
  33. %       a list of patch object properties and legal property values.
  34. %
  35. %     See also LINE, TEXT, FILL, FILL3.
  36.  
  37. %    Copyright (c) 1984-93 by The MathWorks, Inc.
  38. %    Built-in function.
  39.