---
name: "plmeshc"
section: "3plplot"
platform: "linux"
package: "plplot-doc"
version: "5.15.0+dfsg2-15"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/plmeshc"
---

# plmeshc(3plplot)

Magnitude colored plot surface mesh with contour

## NAME

**plmeshc** - Magnitude colored plot surface mesh with contour

## SYNOPSIS

**plmeshc**(*x*, *y*, *z*, *nx*, *ny*, *opt*, *clevel*, *nlevel*)

## DESCRIPTION

A more powerful form of **[plmesh(3plplot)](/plmesh/3plplot.md): the surface mesh can be colored accordingly to the current z value being plotted, a contour plot can be drawn at the base XY plane, and a curtain can be drawn between the plotted function border and the base XY plane.**

**Redacted form: plmeshc(x, y, z, opt, clevel)**

**This function is used in example 11.**

## ARGUMENTS

- *x* **(PLFLT\_VECTOR(3plplot), input)**

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

- *y* **(PLFLT\_VECTOR(3plplot), input)**

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

- *z* **(PLFLT\_MATRIX(3plplot), input)**

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

- *nx* **(PLINT(3plplot), input)**

  **Number of** *x* **values at which function is evaluated.**

- *ny* **(PLINT(3plplot), input)**

  **Number of** *y* **values at which function is evaluated.**

- *opt* **(PLINT(3plplot), input)**

  **Determines the way in which the surface is represented. To specify more than one option just add the options, e.g. DRAW\_LINEXY + MAG\_COLOR** *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.** *opt***=MAG\_COLOR : Each line in the mesh is colored according to the z value being plotted. The color is used from the current cmap1.** *opt***=BASE\_CONT : A contour plot is drawn at the base XY plane using parameters** *nlevel* **and** *clevel***.** *opt***=DRAW\_SIDES : draws a curtain between the base XY plane and the borders of the plotted function.**

- *clevel* **(PLFLT\_VECTOR(3plplot), input)**

  **A vector containing the contour levels.**

- *nlevel* **(PLINT(3plplot), input)**

  **Number of elements in the clevel vector.**

## AUTHORS

**Many developers (who are credited at http://plplot.org/credits.php)** **have contributed to PLplot over its long history.**

## SEE ALSO

**PLplot documentation at http://plplot.org/documentation.php.**
