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 3

Name:
    DEVICE 3 (SET)
Type:
    Set Subcommand
Purpose:
    Specify whether device 3 output will be controlled automatically by Dataplot (the default) or by the user.
Description:
    Device 2 is typically used to generate plots (usually in Postscript format) to an external file (the default file name is "dppl1f.dat"). The device 2 output is under the control of the user (device 2 output is off by default).

    In addition, Dataplot uses device 3 to maintain a copy of the most recent plot only (the default file name is "dppl2f.dat") in Postscript format. Dataplot automatically handles the opening and closing of device 3. The PP command uses the device 3 output to print the most recent plot from within a Dataplot session.

    If you would like to manually control the device 3 output yourself, then you can use the SET DEVICE 3 command.

Syntax:
    SET DEVICE 3 <AUTOMATIC/USER>
    where <AUTOMATIC> specifies that Dataplot will control the device 3 output and <USER> specifies that the user will control the device 3 output.
Examples:
    SET DEVICE 3 AUTOMATIC
    SET DEVICE 3 USER
Default:
    AUTOMATIC
Synonyms:
    None
Related Commands:
    DEVICE = Open or close a graphics device.
    DEVICE 3 NAME COUNTER = Add a counter to the device 3 output file name.
    PP = Print the most recent plot.
Applications:
    Graphics Output
Implementation Date:
    2015/12
Program:
    . This code will use device 2 to generate Postscript
    . format plots and device 3 to generate SVG versions
    . of the graph.
    .
    set ipl1na plots.ps
    device 2 postscript
    .
    device 3 close
    set device 3 user
    .
    title automatic
    set ipl2na plot1.svg
    device 3 svg
    plot x for x = 1 1 9
    device 3 close
    .
    set ipl2na plot2.svg
    device 3 svg
    plot x**2 for x = 1 1 9
    device 3 close
    .
    set ipl2na plot3.svg
    device 3 svg
    plot x**3 for x = 1 1 9
    device 3 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.