DADiSP Worksheet Functions > Function Categories > 3D and 4D Graphics > CONTOURSET

 

CONTOURSET

Purpose:

Specifies how a contour plot is to be displayed.

Syntax:

CONTOURSET(levels, incolor, labeling, interval)

levels

-

Optional. An Integer. The number of contour levels to draw. Defaults to 10.

incolor

-

Optional. An integer, the color flag:

0:

Black & White (default)

1:

Color

labeling

-

Optional. 4 or 8 real numbers representing end points of labeling axes. Label points are interpreted as a list of (x, y) pairs, either as x1, y1, x2, y2; or x1,y1, x2, y2, x3, y3, x4, y4. If four label points are entered, labels are drawn on an axis from (x1, y1) to (x2, y2). If eight label points are entered, labels are drawn on two axes: one axis from (x1, y1) to (x2, y2), and the second axis from (x3, y3) to (x4, y4). Defaults to no labels.

interval

-

Optional. An integer. Specifies the labeling interval. Defaults to 1, label each crossing.

Example:

W1: contour(spline2(rand(10), 5));cool

contourset(10, 1, 0.0, 0.0, 9.0, 9.0)

 

shows the contour plot as a 10-level contour, with labels drawn wherever the contour lines cross an imaginary line with endpoints of (0, 0) and (9, 9) (i.e., a diagonal that spans from the lower left to the upper right of the plot). The background of the plot is filled according to the magnitude of the data, with colors as defined by the COOL shading scheme.

 

W2: contour(spline2(rand(10), 5));cool

contourset(10, 1, 0.0, 0.0, 9.0, 9.0, 2)

 

same as above, except every other diagonal crossing is labeled.

 

See Also:

CONTOUR