|
SEGMENT COLORName:
Segments are most typically used in legend boxes to identify curves. Dataplot provides two methods for specifying colors.
When setting the segment RGB color, Dataplot first checks if the device supports RGB colors. If not, the named color will be used. If the device does support RGB color, Dataplot will check if an RGB color has been specified. If yes, then that RGB color is used. If not, the named color will be used. To see the list of supported named colors (with the associated index number), see https://www.itl.nist.gov/div898/software/dataplot/refman1/ch11/homepage.htm
where <id> is an integer number or parameter in the range 1 to 100 that specifies the segment identifier; and <color> is a character string or index number that specifies the desired color.
where <id> is an integer number or parameter in the range 1 to 100 that specifies the segment identifier; <red> is a number or parameter that specifies the red component; <green> is a number or parameter that specifies the green component; and <blue> is a number or parameter that specifies the blue component. To turn off the RGB color, set the values to -1 (any negative value will work). Values greater than 255 will be set to 255.
SEGMENT 2 COLOR BLUE
2020/11: Support for RGB colors
. POLLUTION SOURCE ANALYSIS, LLOYD CURRIE, DATE--1990
. SUBSET OF CURRIE.DAT REFERENCE FILE
.
SERIAL READ LEAD
164 426 59 98 312 263 607 497 213 54 160 262 547 325 419 94 70
END OF DATA
SERIAL READ POT
106 175 61 79 94 121 424 328 107 218 140 179 246 231 245 339 99
END OF DATA
LET N = SIZE LEAD; LET X = SEQUENCE 1 1 N
.
LINE COLOR RED BLUE
LINE THICKNESS 0.3 ALL
SEGMENT 1 COORDINATES 17 87 22 87
SEGMENT 2 COORDINATES 17 83 22 83
SEGMENT 1 COLOR RED
SEGMENT 2 COLOR BLUE
SEGMENT THICKNESS 0.3
LEGEND 1 COORDINATES 23 86
LEGEND 1 POTASSIUM
LEGEND 2 COORDINATES 23 82
LEGEND 2 LEAD
TITLE DEMONSTRATE SEGMENT COLOR
PLOT POT LEAD VS X
. POLLUTION SOURCE ANALYSIS, LLOYD CURRIE, DATE--1990
. SUBSET OF CURRIE.DAT REFERENCE FILE
.
SERIAL READ LEAD
164 426 59 98 312 263 607 497 213 54 160 262 547 325 419 94 70
END OF DATA
SERIAL READ POT
106 175 61 79 94 121 424 328 107 218 140 179 246 231 245 339 99
END OF DATA
LET N = SIZE LEAD; LET X = SEQUENCE 1 1 N
.
LINE COLOR RED BLUE
LINE RGB COLOR 220 109 88 175 238 238
LINE THICKNESS 0.3 ALL
SEGMENT 1 COORDINATES 17 87 22 87
SEGMENT 2 COORDINATES 17 83 22 83
SEGMENT 1 COLOR RED
SEGMENT 2 COLOR BLUE
SEGMENT 1 RGB COLOR 220 109 88
SEGMENT 2 RGB COLOR 175 238 238
SEGMENT THICKNESS 0.3
LEGEND 1 COORDINATES 23 86
LEGEND 1 POTASSIUM
LEGEND 2 COORDINATES 23 82
LEGEND 2 LEAD
TITLE DEMONSTRATE SEGMENT RGB COLOR
PLOT POT LEAD VS X
|
Privacy
Policy/Security Notice
NIST is an agency of the U.S.
Commerce Department.
Date created: 05/13/2021 | ||||||||||||||||||||||