DADiSP Worksheet Functions > Function Categories > Colors > GETCRANGE
Gets color shading range.
GETCRANGE(valflag)
(loval, hival, set) = GETCRANGE()
valflag |
- |
Optional. A real, which value to return. If not specified, returns 1 if color range set else 0.
|
||||
loval |
- |
A real. Lowest shade value. |
||||
hival |
- |
A real. Highest shade value. |
||||
set |
- |
A real. Returns 1 if color range set else 0. |
A real as determined by valflag.
(loval, hival, set) = getcrange() returns color range and setting flag.
(x, y) = fxyvals(-1, 1, 0.1, -1, 1, 0.1)
W1: cos(x*y);setplotstyle(0);setplottype(4)
setcrange(0.5, 2);
W2: W1;rainbow
(lo, hi) = getcrange()
lo == 0.5
hi == 2.0
W2 contains a shaded 3D surfaces. The color range is scaled to Z values from 0.5 to 2.0. The surface in W2 shows the portion of the color map that corresponds to the Z values of W2. GETCRANGE returns the color range specified by SETCRANGE.
See SETCRANGE to specify a constrained color range.