|
Contents | Previous | Next | Subchapters |
| Syntax |
mesh(z, color option, x, y)z, color option, x, y) |
| See Also | gxyzaxis , mesh(z, color option) and mesh(z, color option, x, y, style) |
x(i) is the x-axis value corresponding to the
i-th row of z.
The integer, real, or double-precision row vector y
has the same number of columns as z and
y(j) is the y-axis value corresponding to the
j-th column of z.
ginit
x = -5. : 1. : 5.
y = x'
z = x * y / 10.
glevel({-1.2, -.6, .6, 1.2})
gcolor({"red", "green", "black", "lime", "blue"})
gxtitle("x")
gytitle("y")
gztitle("z")
mesh(z, "levels", x, y)
O-Matrix will generate the following plot