Contents Previous Next Subchapters

Specifying Plane For A Contour Plot
Syntax contour(matrixlevelsxyz)
See Also mesh, surface , and contour(matrix, levels, x, y, z, option)

Description
Displays the contour plot specified by matrix , levels , x , y , and z in the current viewport . The integer, real, or double-precision scalar z specifies the z-axis value for the x-y plane in which the contour is drawn.

Example
If you enter
     ginit
     x      = seq(11) - 6
     y      = x'
     matrix = x * y
     levels = {-20, -10, -5, 0, 5, 10, 20}
     z      = .5
     contour(matrix, levels, x, y, z)
     grotate(30, 0, 50)
     gzaxis("linear", 0., 1.)
O-Matrix will generate the following plot: