|
Contents | Previous | Next | Subchapters |
| Syntax |
mesh(z)z) |
| See Also | contour , gplot , and mesh(z, color option) |
The syntax for mesh and surface uses the
default settings for line
color
,
x, y
axis values and plotting
style
.
The default line color for the plot is black.
The default x-axis and y-axis values corresponding
to z(i,j) are i and j respectively.
The default plotting style is solid lines and the line width is
determined by the previous call to the gstyle
function.
z(x, y) = x y / 10
clear
x = -5. : 1. : 5.
y = x'
z = x * y / 10.
#
gtitle("mesh")
gxtitle("x")
gytitle("y")
gztitle("z")
mesh(z)
#
gaddwin
gtitle("surface")
gxtitle("x")
gytitle("y")
gztitle("z")
surface(z)