|
Contents | Previous | Next | Subchapters |
| Syntax |
map = tpplot(Y) |
map = tpplot(X, Y) | |
map = tpplot(X, Y, pattern) | |
map = tpplot(X, Y, pattern, thickness) | |
| See Also | tpput , tpget , tpopen , tpsymbols , tpcolors , tpxyzaxes , tpframe , tpmapcopy |
If X is present, it must be is an integer, real, or double-precision matrix
and have same number of rows as Y. If X is a column vector,
each column of Y is plotted against the vector X.
Otherwise X also must have the same number of columns as
Y and each column, Y(i) is plotted against X(i).
If present, the argument pattern must be a character row vector equal to
"SOLID", "DASHED", "DASHDOT", "DOTTED",
"LONGDASH", or "DASHDOTDOT". The Tecplot line pattern
for the current plot is set to this pattern.
If present, the argument thickness must a real-valued scalar
with a value between 0.0 and 1.0. The Tecplot line thickness for the
current plot is set to this value.
If the current frame does not contain a data set, or if the current data set
does not contain at least 2 variables, a new frame is created with variables
X, and Y. If the current frame does contain a data set
with at least 2 variables, the plot is created by adding a new zone and
transferring the X data to the first variable in the zone and the Y data
to the second variable. The first map is copied to the end of the maps, activated,
and assigned the zone that received the X and Y data from O-Matrix.
The returned value map is an integer scalar specifying
the number of the map used for the current plot.
Examples
tpopen
x = 0. : 0.1 : 2 * pi
y = [sin(x), cos(x)]
tpplot(y)
Tecplot will create the following plot
If you continue the example above by enter
tpplot(y*3)
tpplot(y*5)
Tecplot will create two new maps in the current frame which are copies
of the first map, and will update the plot to include four additional curves.
The tpplot function can also specify the X values to be used
for the given Y. If you enter the commands
tpframe("My X Values")
tpplot(x/2, y)
Tecplot will create a new frame title, "My X Values", that looks like
If you continue the example by entering,
tpframe("Multiple X Values")
tpplot( [x, x/2], y)
Tecplot will create a new frame named "Multiple X Values", where the first
column of y is plotted vs. x and the second column of y
is plotted vs. x/2
tpopen
x = seq(100) / 10.0
y = besselj(2, x)
tpplot(x, y, "DASHDOT", 0.5)
Tecplot will create the following plot of the J2 Bessel function