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 2 Vol 1

TIC COORDINATES

Name:
    ...TIC COORDINATES
Type:
    Let Subcommand
Purpose:
    Extract the current coordinates of the plot tic coordinates in either screen or data units.
Description:
    There may be occasions where you would like to add some text to tic mark labels after generating a plot. This command can be used to extract the coordinate values of the tic marks from the most recent plot.
Syntax:
    LET <y> = <prefix>TIC <SCREEN/DATA> COORDINATES
    where
                the prefix X refers to lower horizontal axis;
                the prefix X1 refers to the lower horizontal axis;
                the prefix X2 refers to the upper horizontal axis;
                the prefix Y refers to the left vertical axis;
                the prefix Y1 refers to the left vertical axis;
                the prefix Y2 refers to the right vertical axis;
    and where <y> is a response variable where the coordinates will be saved.

    SCREEN returns the coordinates in 0 to 100 screen units and DATA returns the coordinates in data units of the most recent plot.

    Note that this command has no input arguments.

Examples:
    LET YCOOR = YTIC SCREEN COORDINATES
    LET YCOOR = YTIC DATA COORDINATES
    LET YCOOR = Y1TIC SCREEN COORDINATES
    LET XCOOR = XTIC SCREEN COORDINATES
Note:
    If no coordinates are currently defined (e.g., no plot has been generated yet), the response variable will be returned with zero elements.
Default:
    None
Synonyms:
    None
Related Commands:
    XFRAME = Return the frame limits for the x-axis.
    YFRAME = Return the frame limits for the x-axis.
Applications:
    Plotting
Implementation Date:
    2018/10
Program:
     
    plot x**2 for x = 1 1 9
    .
    let youts = ytic screen coordinates
    let youtd = ytic data   coordinates
    let xouts = xtic screen coordinates
    let xoutd = xtic data   coordinates
    .
    set write decimals 3
    print youts youtd xouts xoutd
        
    The following output is returned
    ------------------------------------------------------------
              YOUTS          YOUTD          XOUTS          XOUTD
    ------------------------------------------------------------
             20.000          0.000         15.000          1.000
             27.778         10.000         23.750          2.000
             35.556         20.000         32.500          3.000
             43.333         30.000         41.250          4.000
             51.111         40.000         50.000          5.000
             58.889         50.000         58.750          6.000
             66.667         60.000         67.500          7.000
             74.444         70.000         76.250          8.000
             82.222         80.000         85.000          9.000
             90.000         90.000          0.000          0.000
        

Privacy Policy/Security Notice
Disclaimer | FOIA

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

Date created: 10/10/2018
Last updated: 10/10/2018

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