- Colors can be defined by name (or by the corresponding index).
Dataplot adopted it's named colors from the X11 project.
Currently, 162 named colors and 100 levels of grayscale are
supported. Grayscale can be specified with either G0, G1, ...,
G100 (or -1, -2, ..., -100). Many older devices support only a
limited number of colors. For these devices, unsupported colors
will be mapped to one of the available colors. To specify a
named color, see Syntax 1.
- Most modern graphics devices support full RGB (RedBlueGreen)
color. You can alternatively specify RGB colors by entering
three integer values to represent the Red, Green and Blue
components, respectively. These values should be in the range
0 to 255.
When setting the margin 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
MARGIN COLOR <color>
where <color> specifies the desired margin color.
MARGIN RGB COLOR <ired> <igreen> <iblue>
where <ired> specifies the red component of the margin
<igreen> specifies the green component of the margin
and <iblue> specifies the blue
component of the margin color.
The components should be integer values in the range 0 - 255. To turn
off the RGB color, set the components to -1 (any negative value will
work and if any of the three components is negative the RGB color will
be turned off).
MARGIN COLOR GREEN
MARGIN COLOR YELLOW
MARGIN RGB COLOR 90 167 102
When you enter the BACKGROUND COLOR command, this will also set the
MARGIN COLOR to the same color. If you want the MARGIN COLOR to be
different than the BACKGROUND COLOR, then enter the MARGIN COLOR
after the BACKGROUND COLOR command.
The MARGIN COLOR command with no arguments reverts the margin color
2021/03: Support for RGB margin color
background color cyan
background rgb color 110 205 65
margin color yellow
margin rgb color 90 167 102
line thickness 0.5
line color yellow
title case asis
title offset 2
title Sample Plot
label case asis
plot x**2 for x = 1 1 9
NIST is an agency of the U.S.
Date created: 03/30/2021
Last updated: 03/30/2021
Please email comments on this WWW page to