Contents Previous Next Subchapters

Specifying X And Y Values In A Contour Plot
Syntax contour(matrixlevelsxy)
See Also mesh, surface , and contour(matrix, levels, x, y, z)

Description
Displays the contour plot specified by matrix , levels , x and y in the current viewport . The integer, real, or double-precision column vector x has the same number of rows as matrix and the i-th element of x specifies the x-axis value corresponding to the i-th row of matrix. The integer, real, or double-precision row vector y has the same number of columns as matrix and the j-th element of y specifies the y-axis value corresponding to the j-th column of matrix.

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