Contents Previous Next Subchapters Current Chapters-> contour contour2 contour4 contour5 contour6 mesh mesh2 mesh4 mesh5 grotate Parent Chapters-> Omatrix6 graphics fun2var contour4 Search Tools-> contents reference index search

Specifying X And Y Values In A Contour Plot
 Syntax `contour(`matrix`, `levels`, `x`, `y`)` 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: ``` ```