Content Prev Next Down

Contour Plots
Syntax scontour(matrix)
scontour(matrixfilledlabels)
scontour(matrixfilledlabelslevels)
scontour(matrixfilledlabelslevelsxy)
See Also ssurface , splot

Description
Displays a contour plot of matrix, where matrix is an integer, real, or double-precision matrix with at least two rows and two columns.

If present, filled must be a logical scalar which indicates if the contour is to be filled, (The default value equals true). The argument labels must be a logical scalar which indicates if the contour should include labels, (The default value equals false).

If present, levels contains the values for each contour line and is an integer, real, or double-precision column vector. The row dimension of levels defines the number of colors that SigmaPlot will use for the contour.

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.

Examples

Examples Using One Argument
If SigmaPlot is not running and at the O-Matrix prompt you enter
     clear
     x = {[1,2,3], [2,4,7], [3,7,14]}
     scontour(x)
SigmaPlot will create the following contour plot


Examples Using Three Arguments
If you continue the example above by entering
     scontour(x, true, true)
SigmaPlot will create a new section with a new worksheet and graph page that looks like:


If you continue the example by entering
     scontour(x, false, true)
SigmaPlot will create the following plot


Examples Using Four Arguments
If you continue the example above by entering
     levels = = {2, 6, 18}
     scontour(x, true, false, levels)
SigmaPlot will create a new section with a new worksheet and graph page and your notebook will look like:


Examples Using Six Arguments
If you continue the example above by entering the following at the O-Matrix prompt
     X = {2, 2.5, 3}
     Y = {4, 5, 6, 7, 8}
     scontour(x, true, false, levels, X, Y)
SigmaPlot will create the following contour plot