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

  1. function th = text(x,y,string,opt_sc)
  2. %TEXT    Add Text to the current plot.
  3. %    TEXT(X,Y,'string') adds the text in the quotes to location (X,Y)
  4. %    on the current axes, where (X,Y) is in units from the current
  5. %    plot. If X and Y are vectors, TEXT writes the text at all locations
  6. %    given. If 'string' is an array the same number of rows as the
  7. %    length of X and Y, TEXT marks each point with the corresponding row
  8. %    of the 'string' array.
  9. %
  10. %    TEXT(X,Y,Z,'string') adds text in 3-D coordinates.
  11. %
  12. %    TEXT returns a column vector of handles to TEXT objects, one
  13. %    handle per text object. TEXT objects are children of AXES objects.
  14. %
  15. %    The X,Y pair (X,Y,Z triple for 3-D) can be followed by 
  16. %    parameter/value pairs to specify additional properties of the text.
  17. %    The X,Y pair (X,Y,Z triple for 3-D) can be omitted entirely, and
  18. %    all properties specified using parameter/value pairs.
  19. %
  20. %       Execute GET(H), where H is a text handle, to see a list of text
  21. %       object properties and their current values. Execute SET(H) to see a
  22. %       list of text object properties and legal property values.
  23. %
  24. %    See also XLABEL, YLABEL, ZLABEL, TITLE, GTEXT, LINE, PATCH.
  25.  
  26. %    Archaic, but grandfathered:
  27. %    TEXT(X,Y,'string','sc') interprets the (X,Y) points in normalized
  28. %    axis coordinates, where (0,0) is the lower-left corner of the current
  29. %    axes, and (1,1) is the upper-right.
  30.  
  31. %    Copyright (c) 1984-93 by The MathWorks, Inc.
  32. %    Built-in function.
  33.