Sets an ordered list of colors to use in shading.
SETPALETTE(color1, color2, ..., colorN)
A list of integers representing the color values.
W1: plot3d(spline2(rand(10), 4))
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.
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.