SED navigation bar go to SED home page go to Dataplot home page go to NIST home page SED Home Page SED Staff SED Projects SED Products and Publications Search SED Pages
Dataplot Vol 1 Vol 2

TIC MARK COLOR

Name:
    ...TIC MARK COLOR
Type:
    Plot Control Command
Purpose:
    Specifies the color of the tic marks on subsequent plots.
Description:
    Dataplot provides two methods for specifying colors.

    1. 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.

    2. 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 tic mark 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

Syntax 1:
    <prefix>TIC MARK COLOR <color>
    where
      no prefix refers to all 4 sides;
      the prefix X refers to both horizontal sides;
      the prefix Y refers to both vertical sides;
      the prefix X1 refers to the lower horizontal side;
      the prefix X2 refers to the upper horizontal side;
      the prefix Y1 refers to the left vertical side;
      the prefix Y2 refers to the right vertical side;
    and <color> is a character string that specifies the desired color.
Syntax 2:
    <prefix>TIC MARK RGB COLOR <red> <green> <blue>
    where
      no prefix refers to all 4 sides;
      the prefix X refers to both horizontal sides;
      the prefix Y refers to both vertical sides;
      the prefix X1 refers to the lower horizontal side;
      the prefix X2 refers to the upper horizontal side;
      the prefix Y1 refers to the left vertical side;
      the prefix Y2 refers to the right vertical side;
                <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.

Examples:
    TIC MARK COLOR GREEN
    TIC MARK COLOR BLUE
    TIC MARK COLOR
    X2TIC MARK COLOR GREEN
    Y2TIC MARK COLOR GREEN
    TIC MARK RGB COLOR 175 238 238
Note:
    It is rare to assign different colors to tic marks on the 4 different sides. Whatever color is chosen for one side is invariably chosen for all sides. The most common form (by far) for this command is the first one (with no prefix) which defines the color uniformly for tic marks on all 4 frame sides.
Note:
    A ...TIC MARK COLOR command with no arguments reverts the setting to default; thus X1TIC MARK COLOR with no arguments reverts the bottom horizontal tics color to black. A ...TIC MARK COLOR command with no prefix refers to all 4 sides; thus TIC MARK COLOR GREEN sets tic mark color to green for all 4 frame lines. TIC MARK COLOR with no prefix and no arguments reverts the tic color settings on all 4 sides to default.
Default:
    All tic marks are black.
Synonyms:
    TICS COLOR is a synonym for TIC MARK COLOR, as in TICS COLOR GREEN and X2TICS COLOR YELLOW.
Related Commands: Applications:
    Presentation Graphics
Implementation Date:
    Pre-1987
    2020/11: Support for RGB colors.
Program 1:
     
    . POLLUTION SOURCE ANALYSIS, LLOYD CURRIE, DATE--1990
    . SUBSET OF CURRIE.DAT REFERENCE FILE
    .
    LET ID2 = DATA 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 2 2
    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
    .
    TIC MARK THICKNESS 0.5
    X1LABEL LEAD
    Y1LABEL POTASSIUM
    LINE BLANK ALL
    CHARACTER CIRCLE
    CHARACTER FILL ON
    .
    TIC MARK COLOR RED
    TITLE DEMONSTRATE TIC MARK COLOR
    PLOT POT LEAD
        
    plot generated by sample program
Program 2:
     
    . POLLUTION SOURCE ANALYSIS, LLOYD CURRIE, DATE--1990
    . SUBSET OF CURRIE.DAT REFERENCE FILE
    .
    LET ID2 = DATA 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 2 2
    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
    .
    TIC MARK THICKNESS 0.5
    X1LABEL LEAD
    Y1LABEL POTASSIUM
    LINE BLANK ALL
    CHARACTER CIRCLE
    CHARACTER FILL ON
    .
    TIC MARK COLOR RED
    TIC MARK RGB COLOR 220 109 88
    TITLE DEMONSTRATE TIC MARK RGB COLOR
    PLOT POT LEAD
        
    plot generated by sample program

Privacy Policy/Security Notice
Disclaimer | FOIA

NIST is an agency of the U.S. Commerce Department.

Date created: 05/13/2021
Last updated: 05/13/2021

Please email comments on this WWW page to alan.heckert.gov.