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

 

SHADEWITH

Purpose:

Adds a fourth "shading" dimension to various three dimensional plots of table data.

Syntax:

SHADEWITH(srcwin, targwin)

srcwin

-

Any Window that contains a table. The shading data.

targwin

-

Optional. The target Window. Defaults to the current Window.

Example:

shadewidth(W2)

 

If the current Window contains a rectangular table of data shown as a meshed waterfall plot, and W2 contains the column-wise derivative of that data, the data in W2, representing the rate-of-change of W1, will be mapped onto the surface of W1 using the shading scheme currently in effect.

 

W1: spline2(rand(10),8);setplottype(4);sethatch(0);hot

W2: deriv(w1)

 

Now set the current Window to W1 and use shadewith(W2);pon

The surface in W1 is shaded with its derivative, producing the effect of a light source illuminating the surface from the left.

 

W1: peaks(50);copper;sethatch(0)

W2: deriv(w1)

shadewith(W2, W1);pon

 

image\shadew.gif

See Also:

CLEARSHADING

SETPALETTE

SETSHADING