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

LEGEND UNITS

Name:
    LEGEND ... UNITS
Type:
    Plot Control Command
Purpose:
    Specifies whether legend coordinates are given in Dataplot screen units (0 to 100) or in units of the current plot.
Description:
    The legends are the text which the analyst can position anywhere (via the LEGEND ... COORDINATES command) on a plot. The legends appear on all subsequent plots until blanked out (via a LEGEND command with no arguments) or until overridden with new legends. 100 such legends can be specified.

    The legend units hold for all subsequent plots until defaulted (via the LEGEND ... UNIT command with no arguments) or until overridden with new legend units.

Syntax:
    LEGEND <id> UNIT <units>
    where <id> is an integer number or parameter in the range 1 to 100 that specifies the legend identifier;
    and <units> is either SCREEN (for screen units) or DATA (for units of the most recent plot).
Examples:
    LEGEND 1 UNITS DATA
    LEGEND 2 UNITS SCREEN
    LEGEND 1 UNITS
    LEGEND UNITS
Note:
    A LEGEND ... UNITS command with no units reverts the units to default. Thus LEGEND 1 UNITS with no units reverts the units of legend 1 to default. A LEGEND ... UNITS command with no refers to all 100 legends. Thus LEGEND UNITS DATA specifies that all 100 legend units will be in the units of the most recent plot. LEGEND UNITS with no and no units reverts all 100 legends to the default units.
Default:
    All legend coordinates are specified in Dataplot screen units.
Synonyms:
    None
Related Commands: Applications:
    Presentation Graphics
Implementation Date:
    2000/1
Program:
    . 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
    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
    .
    CHARACTER X1 X2 Y1 Y2
    LINE BLANK ALL
    LEGEND 1 MAX LEAD VALUE = 607
    LEGEND 2 MAX POT VALUE = 339
    LEGEND UNITS DATA
    LEGEND 1 COORDINATES 7.2 605
    LEGEND 2 COORDINATES 16.2 339
    .
    TITLE DEMONSTRATE LEGEND UNITS COMMAND
    LET X = SEQUENCE 1 1 17
    PLOT POT X ID2 AND
    PLOT LEAD X ID2

    plot generated by sample program

Privacy Policy/Security Notice
Disclaimer | FOIA

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

Date created: 06/05/2001
Last updated: 11/03/2015

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