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

DEVICE 2 SPLIT

Name:
    DEVICE 2 SPLIT
Type:
    Set Subcommand
Purpose:
    Specify whether device 2 output will generate each plot into a separate file.
Description:
    You can use the DEVICE 2 command to generate all subsequent plots (until a DEVICE 2 CLOSE is given) to an external file. By default, all plots are generated in the file "dppl1f.dat".

    In some cases, it may be desirable to put each plot in a separate file. For example, this may be useful when you need to import the graphs into a web page or a word processor.

    The SET DEVICE 2 SPLIT command can be used to specify that each plot will be generated to a separate file. A counter is added to the base file name before the extension (i.e., the period in the file name). For the default name, the files will be called

      dppl1f_1.dat
      dppl1f_2.dat
      ....

    You can use the SET IPL1NA command to specify the base file name. This is demonstrated in the Program example below.

Syntax:
    SET DEVICE 2 SPLIT <ON/OFF>

    If you specify OFF (the default), all plots will be generated to a single file. If you specify ON, a counter value will be added to the plot file name so that each plot will be saved in a different file.

Examples:
    SET DEVICE 2 SPLIT ON
    SET DEVICE 2 SPLIT OFF
Default:
    OFF
Synonyms:
    None
Related Commands: Applications:
    Graphics Output
Implementation Date:
    2015/12
Program:
    . Step 0:   Define output devices
    .
    .           This program will create the plots
    .
    .              device2_1.ps
    .              device2_2.ps
    .              device2_3.ps
    .              device2_4.ps
    .
    set device 2 split on
    set ipl1na device2.ps
    device 2 postscript
    .
    . Step 1:   Plot control features
    .
    label case asis
    title case asis
    title automatic
    y1label Y Axis
    x1label X Axis
    character X
    line blank
    .
    . Step 2:   Generate several plots
    .
    plot x    for x = 1 1 9
    plot x**2 for x = 1 1 9
    plot x**3 for x = 1 1 9
    plot x**4 for x = 1 1 9
    .
    device 2 close
        

Privacy Policy/Security Notice
Disclaimer | FOIA

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

Date created: 02/29/2016
Last updated: 02/29/2016

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