plot
Linear plots.
plot(x)
plot(x,plotspec)
plot(x,y)
plot(x,y, plotspec)
plot(x1,y1, plotspec1, x2, y2, plotspec2,...)
Inputs
x A matrix.
y A matrix.
{x1, y1, x2, y2,..} Matrices.
plotspec Plot style specification string.
{plotspec1, plotspec2,..} Plot style specification strings.


Description
plot(x) draws the plot of the input, with linear scaling of the coordinates along both the axis. If the input is a vector, its elements are plotted against the vector [1:n] where n is the size of the input. If x is a matrix, the vectors x[:,i], i>1 are plotted against the first column x[:,1] of the input.

plot(x, y) displays a plot of the columns in y vs. the columns in x . The numbers of rows is in y must be identical to the number of rows in x or, if x is a vector, to the number of elements in it.

If the first input is a vector, the plots of every column in y vs. x are displayed.

If the two inputs have identical number of columns, the function displays the area plot of every column in y vs. the corresponding column in x .

If the number of columns, n , in x is not identical to p , the number of columns in y , the area plots of y[:,i] vs. x[:,mod(i,n)+1] for 1<=i<=p are displayed.

The parameter plotspec may be used to control the style and the color of each plot. It consists of characters that define (a) the line style or marker type for the plot, and (b) the color of the plot.

The line style is specified by using one of the strings:

   :      (dotted line)  
   --      (dashed line)  
   -.      (dotted-dashed line)  
   -      (solid line)  
The marker style is specified by using one the following characters:

   .      (point)  
   o      (circle)  
   x      (cross)  
   +      (plus)  
   *      (star)  
   d      (diamond)  
   v      (equilateral triangle with a vertex at the bottom)  
   ^      (equilateral triangle with a vertex at the top)  
   <      (equilateral triangle with a vertex at the left)  
   >      (equilateral triangle with a vertex at the right)  
   h      (hexagram),  
   p      pentagram.  
The marker character may be followed by the letter f to draw a filled marker. The color of the line and marker is specified by one of the following letters:

   b      (blue)  
   g      (green)  
   r      (red)  
   c      (bnlue)  
   m      (magenta)  
   y      (yellow)  
   k      (black)  
   w      (white).  
The call plot(x1,y1, plotspec1, x2, y2, plotspec2,...) is similar to plot(x, y, plotspec) in that the function displays a plot plot for each of the triples {x1, y1, plotspec1} , {x2, y2, plotspec2} in the same manner as the call with three arguments.
Example
>>x=[0:.02:1]*pi
>>plot(x,sin(3x),'b',x,sin(x.*x),'b:d')
>>title("Plot")
>>xlabel("X-Axis")
>>ylabel("Y-Axis")