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

TAB EXPAND

Name:
    TAB EXPAND (SET)
Type:
    Set Subcommand
Purpose:
    Specify how tab characters are handled on Dataplot command lines.
Description:
    By default, when Dataplot parses a command line it converts all non-printing characters, including tabs, to a single space character.

    This command allows you to specify how tabs are to be handled. You can specify that the tab character be left as is or that it be replaced by one to 20 space characters.

    This command is most likely to be useful when processing tabs contained within strings.

Syntax:
    SET TAB EXPAND <ival>
    where <ival> is a number or parameter in the range 0 to 20.

    If <ival> is 0, then the tab character is left as is. If <ival> is a positive integer, then the tab character is replaced with <ival> spaces. If <ival> is greater than 20, it will be set to 20. Common choices for <ival> would be 3 or 5.

Examples:
    SET TAB EXPAND 0
    SET TAB EXPAND 5
Default:
    Tabs are replaced with a single space character.
Synonyms:
    SET EXPAND TAB
Related Commands:
    LET STRING = Define a string.
    READ STRING = Read a string.
    STRING EXPAND WHITESPACE = Replace non-printing characters in a string with a space character.
    TEXT = Write a text string immediately.
    TITLE = Specify the title for a plot.
    LEGEND = Specify text to be generated on subsequent plots.
    LABEL = Specify an x- or y-axis label for a plot.
Applications:
    Annotating Plots
Implementation Date:
    2019/02
Program:
     
    . Note that "^I" denotes a tab character
    set tab expand 3
    let string s = xxxx^Iyyyy^Izzzz
    print s
        
    The following output is generated
     
     FUNCTIONS--
    
         S       --xxxx   yyyy   zzzz
        

Privacy Policy/Security Notice
Disclaimer | FOIA

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

Date created: 03/15/2019
Last updated: 03/15/2019

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