Contents Previous Next Subchapters

Specifying Contour Levels
Syntax contour(matrixlevels)
See Also mesh, surface , and contour(matrix, levels, x, y)

Description
Displays the contour plot specified by matrix and levels in the current viewport , where levels contains the values for each contour line and is an integer, real, or double-precision column vector. The line corresponding to the i-th element of levels is drawn using the i-th color in the current color sequence as returned by gcolor and the length of levels must be less than or equal to the number of colors.

Example
If you enter
     ginit
     x      = seq(8)
     y      = x'
     matrix = x * y
     levels = {10, 20, 30}
     contour(matrix, levels)
O-Matrix will generate the following plot: