`plmesh`: Plot surface mesh
Prev | Chapter 17. The Common API for PLplot | Next

#### `plmesh`: Plot surface mesh

`plmesh (` | x ,
| y ,
| z ,
| nx ,
| ny ,
| opt `)`;

Plots a surface mesh within the environment set up by `plw3d`. The surface is defined by the matrix ``z`[`nx`][`ny`]` , the point ``z`[i][j]` being the value of the function at `(`x`[i], `y`[j])`. Note that the points in vectors ``x`` and ``y`` do not need to be equally spaced, but must be stored in ascending order. The parameter ``opt`` controls the way in which the surface is displayed. For further details see the section called “Three-dimensional Plots”.

`x` (``PLFLT_VECTOR``, input)

  A vector containing the x coordinates at which the function is evaluated.

`y` (``PLFLT_VECTOR``, input)

  A vector containing the y coordinates at which the function is evaluated.

`z` (``PLFLT_MATRIX``, input)

  A matrix containing function values to plot. Should have dimensions of `nx` by `ny`.

`nx` (``PLINT``, input)

  Number of ``x`` values at which function has been evaluated.

`ny` (``PLINT``, input)

  Number of ``y`` values at which function has been evaluated.

`opt` (``PLINT``, input)

  Determines the way in which the surface is represented:

  - ``opt`=DRAW_LINEX` : Lines are drawn showing ``z`` as a function of ``x`` for each value of ``y`[j]` .

  - ``opt`=DRAW_LINEY` : Lines are drawn showing ``z`` as a function of ``y`` for each value of ``x`[i]` .

  - ``opt`=DRAW_LINEXY` : Network of lines is drawn connecting points at which function is defined.

Redacted form: `plmesh(x, y, z, opt)`

This function is used in example 11.

Prev | Up | Next
`plmeridians`: Plot latitude and longitude lines | Home | `plmeshc`: Magnitude colored plot surface mesh with contour