This section describes functions from file plotmtv.ct.
[] = annotate(primitive...)
annotate("primitive"[,options]) adds MTV annotations to the previous
graph. The plot command(s) and the annotate command(s) must appear
inside hold(on) ... hold(off) in order to work correctly.
Error codes:
1: Could not open temporary MTV file
2: First argument not a string
3: Syntax error in graph options
[] = contour(z...)
contour(z[,options]) plots the matrix z as a filled contour plot.
Error codes:
1: Could not open temporary MTV file
2: First argument is not a numeric 2D array
3: Syntax error in graph options
4: Write error in MTV file - file system full?
[X,Y] = grid(x,y)
[X,Y] = grid(x,y) produces matrices X,Y that are formed from vectors x,y
such that X[i,j] = x[i] for all j, and Y[i,j] = y[j] for all j.
Error codes:
-1: Input argument is not vector
-2: Input argument is not real vector
[] = hold(flag)
hold(on) and hold(off) set the graphics hold mode on and off.
When hold is on, all plotting commands will be accumulated and
performed only until hold(off).
Error codes:
1: Argument not an integer
[] = mesh(z...)
mesh(z[,options]) plots the matrix z as a 3D mesh.
Error codes:
1: Could not open temporary MTV file
2: First argument is not a numeric 2D array
3: Syntax error in graph options
4: Write error in MTV file - file system full?
[] = pcolor(z...)
pcolor(z[,options]) plots the matrix z as a pseudocolor density plot.
Error codes:
1: Could not open temporary MTV file
2: First argument is not a numeric 2D array
3: Syntax error in graph options
4: Write error in MTV file - file system full?
[] = plot(...)
plot(x1,y1,[options1], x2,y2,[options2],...) is the basic 2D plot function.
Each vector yi is plotted versus the corresponding xi. All curves yi are
displayed in the same figure. The option sequences must consist of keyword-
value pairs. Example:
x = 0:0.1:4*pi;
plot(x,sin(x), "linewidth",3,"linecolor",2);
The abscissa x may be missing, in which case the default of 1:length(y)
is used. The ordinates y may be matrices; then each row produces one
curve.
Error codes:
1: Could not open temporary MTV file
2: Nonnumeric or complex data argument
3: Syntax error in graph options
4: The abscissa ("x") must be a vector
5: The ordinate ("y") must be a vector or a matrix
6: x and y dimensions disagree
[] = vplot(x,y,vx,vy...)
vplot(x,y,vx,vy[,options]) produces a 2D vector plot of the vector
field (vx,vy). All arguments x,y,vx and vy must be 2D integer or
real arrays and of the same size. Each 2D vector will be positioned
at (x[i,j],y[i,j]) and its direction will be (vx[i,j],vy[i,j]) where
(i,j) run over rows and columns of the matrices.
Error codes:
1: Could not open temporary MTV file
2: One of first four args is not a numeric array
3: One of first four args has rank not equal to 2
4: Dimensions of first four args disagree
5: Syntax error in graph options
Next Chapter, Previous Chapter
Table of contents of this chapter, General table of contents
Top of the document, Beginning of this Chapter