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

  1. %PLOT    Plot vectors or matrices. 
  2. %    PLOT(X,Y) plots vector X versus vector Y. If X or Y is a matrix,
  3. %    then the vector is plotted versus the rows or columns of the matrix,
  4. %    whichever line up. 
  5. %
  6. %    PLOT(Y) plots the columns of Y versus their index.
  7. %    If Y is complex, PLOT(Y) is equivalent to PLOT(real(Y),imag(Y)).
  8. %    In all other uses of PLOT, the imaginary part is ignored.
  9. %
  10. %    Various line types, plot symbols and colors may be obtained with
  11. %    PLOT(X,Y,S) where S is a 1, 2 or 3 character string made from
  12. %    the following characters:
  13. %
  14. %           y     yellow        .     point
  15. %           m     magenta       o     circle
  16. %           c     cyan          x     x-mark
  17. %           r     red           +     plus
  18. %           g     green         -     solid
  19. %           b     blue          *     star
  20. %           w     white         :     dotted
  21. %           k     black         -.    dashdot
  22. %                                --    dashed
  23. %                             
  24. %    For example, PLOT(X,Y,'c+') plots a cyan plus at each data point.
  25. %
  26. %    PLOT(X1,Y1,S1,X2,Y2,S2,X3,Y3,S3,...) combines the plots defined by
  27. %    the (X,Y,S) triples, where the X's and Y's are vectors or matrices 
  28. %    and the S's are strings.  
  29. %
  30. %    For example, PLOT(X,Y,'y-',X,Y,'go') plots the data twice, with a
  31. %    solid yellow line interpolating green circles at the data points.
  32. %
  33. %    The PLOT command, if no color is specified, makes automatic use of
  34. %    the colors in the above table.  The default is yellow for one line, 
  35. %    and for multiple lines, to cycle through the first six colors
  36. %    in the table.
  37. %
  38. %    PLOT returns a column vector of handles to LINE objects, one
  39. %    handle per line. 
  40. %
  41. %    The X,Y pairs, or X,Y,S triples, can be followed by 
  42. %    parameter/value pairs to specify additional properties 
  43. %    of the lines.
  44. %                                    
  45. %    See also SEMILOGX, SEMILOGY, LOGLOG, GRID, CLF, CLC, TITLE,
  46. %    XLABEL, YLABEL, AXIS, AXES, HOLD, and SUBPLOT.
  47.  
  48. %    If the NextPlot axes property is "replace" (HOLD is off), PLOT resets 
  49. %    all axes properties, except Position, to their default values,
  50. %    deletes all axes children (line, patch, text, surface, and
  51. %    image objects), and sets the View property to [0 90].
  52.  
  53. %    Copyright (c) 1984-93 by The MathWorks, Inc.
  54. %    Built-in function.
  55.  
  56.