| Calling Sequence | ColorPalette(n)
ColorPalette(n,map) | ||||||||||||
| Parameters |
| ||||||||||||
| Return Type | list([nonnegative, nonnegative, nonnegative]) | ||||||||||||
| Synopsis | This function computes n different colors according to a colormap and returns their RGB values between [0,1]. The possible colormaps are described below and completely specify the appearance of the colors: | ||||||||||||
The map parameter can be one of the following colormaps: | |||||||||||||
| |||||||||||||
jet jet ranges from blue to red, and passes through the colors cyan, yellow, and orange. It is a variation of the hsv colormap. | |||||||||||||
hsv hsv varies the hue component of the hue-saturation-value color model. The colors begin with red, pass through yellow, green, cyan, blue, magenta, and return to red. The colormap is particularly appropriate for displaying periodic functions. | |||||||||||||
heat heat varies the color from a saturated blue through white into a saturated red. This map is useful for heatmaps, where negative and positive values are possible. | |||||||||||||
stoplight stoplight gives colors from red through yellow to green. | |||||||||||||
lines lines gives a list of distinct colors. | |||||||||||||
| Examples | > colors := ColorPalette(10); colors := [[0, 0, 1], [0, 0.4444, 1], [0, 0.8889, 1], [0, 1, 0.6667], [0, 1, 0.2 222], [0.2222, 1, 0], [0.6667, 1, 0], [1, 0.8889, 0], [1, 0.4444, 0], [1, 0, 0]] | ||||||||||||
| See also | BrightenColor, DrawDistribution, DrawDotplot, DrawGraph, DrawHistogram, DrawPlot, DrawPointDistribution, DrawStackedBar, DrawTree, GetColorMap, Plot2Gif, PlotArguments, Set, SmoothData, StartOverlayPlot, StopOverlayPlot, ViewPlot | ||||||||||||