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

Specifying X and Y Values In Mesh And Surface Plots
 Syntax `   mesh(`z`, `color option`, `x`, `y```) surface(```z`, `color option`, `x`, `y`)` 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 ``` ```