Contents Previous Next Subchapters

Specifying X and Y Values In Mesh And Surface Plots
Syntax    mesh(zcolor optionxy)
surface(
zcolor optionxy)
See Also gxyzaxis , mesh(z, color option) and mesh(z, color option, x, y, style)

Description
Displays the mesh or surface plot specified by z , color option , x, and y, in the current viewport . The integer, real, or double-precision column vector x has the same number of rows as z and 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.

Example
If you enter
     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