|
GRID COLORName:
Dataplot provides two methods for specifying colors.
When setting the grid 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 <color> specifies the desired color; and <prefix> is one of the following:
the prefix X refers to vertical grids the prefix Y refers to horizontal grids.
where <red> is an integer number or parameter that specifies the red component; <green> is an integer number or parameter that specifies the green component; <blue> is an integer number or parameter that specifies the blue component; and <prefix> is one of the following:
the prefix X refers to vertical grids the prefix Y refers to horizontal grids. 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.
GRID COLOR RED GRID COLOR XGRID COLOR CYAN YGRID COLOR MAGENTA GRID RGB COLOR 220 109 88 YGRID RGB COLOR 175 238 238
2020/11: Support for RGB colors
LET LEAD = DATA ...
164 426 59 98 312 263 607 497 213 54 160 262 547 325 419 94 70
LET POT = DATA ...
106 175 61 79 94 121 424 328 107 218 140 179 246 231 245 339 99
TITLE DEMONSTRATE GRID COLOR COMMAND
GRID ON
GRID THICKNESS 0.3
GRID PATTERN DASH
XGRID COLOR RED
YGRID COLOR BLUE
X1LABEL LEAD
Y1LABEL POTASSIUM
CHARACTER CIRCLE
CHARACTER SIZE 1.5
LINE BLANK ALL
PLOT POT VS LEAD
LET LEAD = DATA ...
164 426 59 98 312 263 607 497 213 54 160 262 547 325 419 94 70
LET POT = DATA ...
106 175 61 79 94 121 424 328 107 218 140 179 246 231 245 339 99
TITLE DEMONSTRATE GRID RGB COLOR COMMAND
GRID ON
GRID THICKNESS 0.3
GRID PATTERN DASH
XGRID COLOR RED
YGRID COLOR BLUE
XGRID RGB COLOR 220 109 88
YGRID RGB COLOR 175 238 238
X1LABEL LEAD
Y1LABEL POTASSIUM
CHARACTER CIRCLE
CHARACTER SIZE 1.5
LINE BLANK ALL
PLOT POT VS LEAD
|
Privacy
Policy/Security Notice
NIST is an agency of the U.S.
Commerce Department.
Date created: 05/13/2021 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||