Adds a fourth "shading" dimension to various three dimensional plots of table data.
SHADEWITH(srcwin, targwin)
srcwin |
- |
Any Window that contains a table. The shading data. |
targwin |
- |
Optional. The target Window. Defaults to the current Window. |
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(400);bone;sethatch(0)
W2: deriv(w1);sethatch(0)
shadewith(W2, W1);pon

W1 generates the PEAKS surface rendered using the BONE colormap. Its normal derivative is computed in W2 and applied as the shading for the surface.
See CLEARSHADING to remove shading from a surface or image.
The following built-in colormaps are available:
Red, orange, yellow colormap |
|
Blue tinted gray scale colormap |
|
Blue, green, yellow colormap |
|
Shades of blue |
|
Shades of copper colormap |
|
Repeating red, orange, yellow, green, blue, violet colormap. |
|
Blue, green, yellow colormap |
|
Black & white colormap |
|
Black, red, yellow, white colormap |
|
Red, yellow, green, cyan, blue, magenta, red colormap |
|
Magenta, red, yellow colormap |
|
Magenta, red, yellow colormap |
|
Blue, green, yellow, orange colormap |
|
Black, red, yellow, white light colormap |
|
Magenta, red, yellow colormap |
|
Repeating red, orange, yellow, green, blue, violet colormap. |
|
Visible color spectrum colormap |
|
Magenta, pink, yellow colormap |
|
Green to yellow colormap |
|
Red, blue, green, yellow colormap |
|
Blue, green, yellow colormap |
|
Blue to green colormap |