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 LABEL COLOR

Name:
    ...TIC MARK LABEL COLOR
Type:
    Plot Control Command
Purpose:
    Specifies the color of the labels associated with the major 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 label 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 LABEL 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 for the tic label.
Syntax 2:
    <prefix>TIC MARK LABEL 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 LABEL COLOR GREEN
    TIC MARK LABEL COLOR
    X2TIC MARK LABEL COLOR GREEN
    Y2TIC MARK LABEL COLOR GREEN
    TIC MARK LABEL RGB COLOR 220 109 88
    TIC MARK LABEL RGB COLOR 175 238 238
Note:
    It is rare to assign different colors to tic mark labels on the 4 different sides. Whatever color is chosen for tic labels on one side is invariably chosen for all sides. The most common form (by far) for this command is the general one (with no prefix, as in TIC MARK LABEL COLOR GREEN) which defines the color uniformly for tic mark labels on all 4 frame sides.
Note:
    A ...TIC MARK LABEL COLOR command with no arguments reverts the setting to default; thus X1TIC MARK LABEL COLOR with no arguments reverts the bottom horizontal tic label color to black. A ...TIC MARK LABEL COLOR command with no prefix refers to all 4 sides; thus TIC MARK LABEL COLOR GREEN sets tic mark labels to green for all 4 frame lines. TIC MARK LABEL COLOR with no prefix and no arguments reverts the tic label color to default on all 4 sides.
Default:
    All tic mark labels are black.
Synonyms:
    TIC LABEL COLOR is a synonym for TIC MARK LABEL COLOR, as in TIC LABEL COLOR GREEN and X2TIC LABEL COLOR YELLOW.
Related Commands: Applications:
    Presentation Graphics
Implementation Date:
    Pre-1987
    2020/11: Support for RGB colors.
Program 1:
     
    LEGEND 1 PRESENTATION GRAPHICS
    LEGEND 2 3-D BAR HISTOGRAM
    LET Y = DATA 392 341 307 203 115 59 38 32 29 28
    LET N = NUMBER Y
    LET X = SEQUENCE 1 1 N
    .
    LINES BLANK ALL
    BAR ON ALL
    BAR WIDTH .5 ALL
    BAR DIMENSION 3 ALL
    BAR FILL ONTS ALL
    .
    XLIMITS 1 10
    XTIC OFFSET 1 1
    MAJOR XTIC MARK NUMBER 10
    MINOR XTIC MARK NUMBER 0
    X1TIC MARK LABEL FORMAT ALPHA
    X1TIC MARK LABEL CONTENT Apollo Sun HP DEC SYM SGI IBM DG TI Xerox
    X1TIC MARK LABEL CASE ASIS
    X1TIC MARK LABEL COLOR RED
    Y1TIC MARK LABEL COLOR BLUE
    YLIMITS 0 500
    .
    TITLE DEMONSTRATE TIC MARK LABEL COLOR
    PLOT Y X X
        
    plot generated by sample program
Program 2:
     
    LEGEND 1 PRESENTATION GRAPHICS
    LEGEND 2 3-D BAR HISTOGRAM
    LET Y = DATA 392 341 307 203 115 59 38 32 29 28
    LET N = NUMBER Y
    LET X = SEQUENCE 1 1 N
    .
    LINES BLANK ALL
    BAR ON ALL
    BAR WIDTH .5 ALL
    BAR DIMENSION 3 ALL
    BAR FILL ONTS ALL
    .
    XLIMITS 1 10
    XTIC OFFSET 1 1
    MAJOR XTIC MARK NUMBER 10
    MINOR XTIC MARK NUMBER 0
    X1TIC MARK LABEL FORMAT ALPHA
    X1TIC MARK LABEL CONTENT Apollo Sun HP DEC SYM SGI IBM DG TI Xerox
    X1TIC MARK LABEL CASE ASIS
    X1TIC MARK LABEL COLOR RED
    X1TIC MARK LABEL RGB COLOR 220 109 88
    Y1TIC MARK LABEL RGB COLOR 175 238 238
    YLIMITS 0 500
    .
    TITLE DEMONSTRATE TIC MARK LABEL COLOR
    PLOT Y X X
        
    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.