SETPALETTE

Purpose:

Sets an ordered list of colors to use in shading.

Syntax:

SETPALETTE(color1, color2, ..., colorN)

color

-

A list of integers representing the color values.

Example:

W1: plot3d(spline2(rand(10), 4))

setshading

setpalette(yellow, lgreen, lblue, lpurple, lred, white)

 

sets a palette of six colors for use by plots which employ shading. In a surface plot, for example, points falling within the first sixth of the range of the data are colored YELLOW, those in the next sixth are LGREEN, and so on.

Remarks:

The range of colors available is machine dependent. The color names shown in the example are actually pre-defined macros representing some of the colors available on any color machine.

 

Each Window can have its own palette of colors. See the discussion on color in the User Manual and the palette.mac file for a list of default colors for your machine.

 

See SETPMAP to set the palette colors of a DENSITY plot. Because SETPMAP sets a colormap, it is usually preferred over SETPALETTE.

 

See MAPPALETTE to create a color palette using a series of colors.

See Also:

DEFCOLOR

GETPALETTE

MAPPALETTE

SETCOLORMAP

SETPMAP

SETSHADING

SHADEWITH