|
Contents | Previous | Next | Subchapters |
| Syntax |
mesh(z, color option)z, color option) |
| See Also | glevel , gcolor , mesh(z) and mesh(z, color option, x, y) |
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")
surface(z, "levels")
O-Matrix will generate a surface plot with
red where z < -1.2,
green where -1.2 < z < -.6,
black where -.6 < z < .6,
lime where .6 < z < 1.2, and
blue where 1.2 < z .