•
|
Fill Color() for solid areas
|
•
|
Level Color() for categorical data
|
•
|
Pen Color() for lines and points
|
•
|
Back Color() for the background of text (similar to the box around the erased text in 图 12.19)
|
•
|
Background Color() for the graph’s background color
|
•
|
Font Color() for added text
|
Fill colors overwrite pen colors for drawn shapes. You do not get both, as in some drawing packages. To get both a fill and a pen line, draw two shapes, one with fill and one without. You can select a color with a single numeric argument, a color name in quotation marks, or an RGB value. The standard colors are specified with numbers 0–15 (both 0 and 15 are black) or by their names (Standard JMP Colors).
Text Color( 0 );
New Window( "Colors",
k = 0;
l = 15;
thiscolor = Color To RGB( k );
thisfill = 1;
thisfill = 0;
jj = -2;
i = 0;
Larger numbers cycle through shading variations of the same color sequence. A script demonstrating this appears under “Colors and Markers” on page 417 in the “Data Tables” chapter. Values outside the range 0–84 are not accepted.
RGB Color() and Color to RGB() convert color values between JMP color numbers and the red-green-blue system. The following example finds the RGB values for JMP color 3 (red):
Likewise, HLS Color() and Color to HLS() convert color values between JMP color numbers and the hue-lightness-saturation system.
win = New Window( "Color Wheel",
Finally, Heat Color() returns the JMP color that corresponds to a value in any color theme that is supported by Cell Plot, Treemap, and so on. The syntax is:
The theme message is optional, and the default value is "Blue to Gray to Red". You can specify any color theme, including custom color themes. You can also create and use an anonymous color theme as shown in the following examples: