Method meshc
| Improve this Doc View Sourcemeshc(Double[], Double[], Double[,], MeshContour, Double[])
plmeshc: Magnitude colored plot surface mesh with contour
Declaration
public void meshc(Double[] x, Double[] y, Double[, ] z, MeshContour opt, Double[] clevel)
Parameters
Type | Name | Description |
---|---|---|
Double[] | x | A vector containing the x coordinates at which the function is evaluated. |
Double[] | y | A vector containing the y coordinates at which the function is evaluated. |
Double[,] | z | A matrix containing function values to plot. Should have dimensions of nx by ny. |
MeshContour | opt | 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. |
Double[] | clevel | A vector containing the contour levels. |
Remarks
A more powerful form of plmesh: 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.