|See Also||tpaddzone , tpzone , tpframe , tpopen , tpcontour , tpxyzaxes|
"HIDDENLINE". If the value of meshStyle is
"NONE", the mesh layer is disabled, otherwise the mesh layer is enabled and the mesh style is set to the given value. If present, the argument contourStyle must equal
"PRIMARYVALUE". If the value of contourStyle is
"NONE", the contour layer is disabled, otherwise the contour layer is enabled and the contour type is set to the given value.
If present, the arguments X and Y must be integer, real or double-precision matrices with row and column dimensions equivalent to Z
If the current Tecplot frame contains a data set that contains variables X, Y, and Z, the
tpsurfacefunction creates the surface plot by transferring data to the first zone of the existing data set. If the value of tpzone has been changed to a value other than 1 and that zone exists from the use of tpaddzone or otherwise, the data for the surface plot is transferred to that zone.
Tecplot will create a surface plot of the random matrix
Z = rand(5,4)
Z, which looks like,
The plot will be re-generated with mesh lines hidden. The mesh and contour styles may be viewed and changed interactively with the Tecplot Zone Style dialog. If you continue by entering
The plot will be re-generated with the Tecplot mesh layer disabled a contouring with the contour value of PRIMARYVALUE and look like
tpsurfacefunction creates and implicit X, Y grid where the values of X are
fillrows(seq(nc)', nr)and the values of Y are
fillcols(seq(nr), nc). An alternate grid can be defined by providing X and Y values. If at the O-Matrix prompt you enter,
Tecplot will create the following surface that uses the alternative X Y grid. The data may also be inspected from the Tecplot "Data | Spreadsheet" dialog.
nr = 10
nc = 15
Z = rand(nr,nc)
X = fillrows(seq(nc)', nr) + 10
Y = fillcols(seq(nr), nc) + 20
tpsurface(Z, X, Y)
tpsurface. If at the O-Matrix prompt you enter,
Tecplot will create a new surface plot with the value of
x = -5. : 1. : 5.
y = x'
z = x * y / 10.
z. If you continue the example by entering
Tecplot will create a new zone, with number
zNum = tpaddzone(1,1)
z = (x * y/5) + 5
zNumin the current frame and generate an additional plot and now look like
Tecplot will create 4 new frames, where each frame contains the solution from one iteration of the loop. The Cascade Frames option from the Tecplot Quick Macro panel can be used to see the following solution
x = -5. : 1. : 5.
y = x'
for i = 1 to 4 begin
tpframe(["tpsurface(); iteration = ", ntoa(i)])
z = x*y / (i*2)