|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
"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
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
mapis an integer scalar specifying the number of the map used for the current plot.
Tecplot will create the following plot
x = 0. : 0.1 : 2 * pi
y = [sin(x), cos(x)]
If you continue the example above by enter
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.
tpplotfunction can also specify the X values to be used for the given Y. If you enter the commands
Tecplot will create a new frame title, "My X Values", that looks like
tpframe("My X Values")
If you continue the example by entering,
Tecplot will create a new frame named "Multiple X Values", where the first column of
tpframe("Multiple X Values")
tpplot( [x, x/2], y)
yis plotted vs.
xand the second column of y is plotted vs.
Tecplot will create the following plot of the J2 Bessel function
x = seq(100) / 10.0
y = besselj(2, x)
tpplot(x, y, "DASHDOT", 0.5)