|
CAPTUREName:
where <file name> is the name of a file where alphanumeric output is written. This is the standard form of the CAPTURE command. If the file name does not contain a period, place a period (no spaces) at the end of the file name.
This command closes the current capture file, issues an ERASE command to the open graphics devices, and then prints the contents of the capture output on the graphics devices using the TEXT command (i.e., each line of the capture command is printed using a distinct TEXT command). The capture file is then re-opened (it will start at the beginning).
where <file name> is the name of a file where alphanumeric output is written; and <HTML/LATEX/RTF> specifies that the output is to be written in either HTML, LaTex, or RTF format. This syntax writes the output in either HTML, LaTex or RTF (Rich Text Format) format. Enter HELP CAPTURE HTML, HELP CAPTURE LATEX, or HELP CAPTURE RTF for more information on this. RTF is a Microsoft format that can used to import Dataplot output into Microsoft Word. A number of other word processors have RTF format. We have successfully used Abiword and WordPad. We have had less success with several other word processors. If the file name does not contain a period, place a period (no spaces) at the end of the file name. Typically, the file will have an ".htm" or ".html" (for HTML), ".tex" (for LaTex), or ".rtf" (for RTF) extension.
... DATAPLOT COMMANDS .... END OF CAPTURE
NOTE: The capability to do this is now available. To specify that the output will be sent to both the capture file and the screen, enter the command
To restore the default that the ouput is sent only to the capture file, enter
CAPTURE RESUME where SUSPEND specifies that output will be sent to the screen rather than the CAPTURE file (note that the CAPTURE file remains open) and RESUME will send the output to the currently open CAPTURE file. You can enter as many CAPTURE SUSPEND/CAPTURE RESUME sequences as you like between a CAPTURE/END OF CAPTURE session. Note that OFF is a synonym for SUSPEND and ON is a synonym for RESUME.
This command saves the subsequent commands to a file without executing them. The intended purpose of this is to allow scripts for external programs (e.g., Python, Perl, and so on) to be created within a Dataplot macro. You can subsequently use the SYSTEM command to execute the script. This command was updated 2016/12 in the following two ways.
device 2 postscript . title automatic skip 25 read gear.dat y x . mean plot y x . move 5 95 margin 5 capture junk.dat tabulate mean y x capture flush end of capture . device 2 close system lpr dppl1f.dat The initial CAPTURE command directs text output to the file "junk.dat". When the CAPTURE FLUSH command is encountered, the capture file is closed, an ERASE command is generated for the graphics devices, the contents of the capture file are printed on the graphics devices using the TEXT command (i.e., each line of the file generates a distinct TEXT command), and then the capture file is re-opened (it will start at the beginning). Since the lines are generated with the TEXT command, the appearance of the text can be controlled with the various TEXT attribute commands. Also, it is recommended that CRLF be set to ON (the default), a MOVE command be given to set the position for the first line of the text, and a MARGIN command be entered to set the beginning x-coordinate for the line. Some output may be too long to display on one page. You can control the number of lines printed per page with the following command:
Up to 5 values may be entered. The first value is for the first page of output, the second value is for the second page of output, and so on. If more than 5 values are entered, then the page limits start over (i.e., page 6 uses the value for page 1, page 7 uses the value for page 2, and so on). The default is 25 lines for all pages. If the MULTIPLOT switch is ON, the initial page erase is suppressed. The following example shows how this feature can be used:
device 2 ps device 1 font simplex . title automatic skip 25 read gear.dat y x . multiplot 2 2 multiplot corner coordinates 0 0 100 100 multiplot scale factor 2 . mean plot y x sd plot y x . move 5 98 margin 5 plot capture junk.dat tabulate mean y x capture flush end of capture move 5 98 plot capture junk.dat tabulate sd y x capture flush end of capture . end of multiplot Note that the null PLOT command is used to move to the next plot area without actually generating a plot. This example draws a mean and standard deviation plot on the first row and then suplements that with the numeric values generated using the TABULATE command on the second row. The following two commands are also available.
SET CAPTURE BOX <ON/OFF> If SET CAPTURE NUMBER ON is entered, the output lines are numbered. This is primarily a convenience function to help determine what values to enter for the SET CAPTURE LINES command in order to generate breaks at the appropriate spots. If SET CAPTURE BOX ON is entered, a box will be drawn for each page of the output. Use the BOX 1 CORNER COORDINATES command, before the CAPTURE FLUSH, to specify the cooridinates of the box. Use the various BOX attribute commands to set the properties of the box.
This controls whether the CAPTURE FLUSH command performs the initial screen erase. The ON setting specifies the default of performing this screen erase while the OFF setting suppresses this screen erase. This command does not apply when the MULTIPLOT switch is active.
SET CAPTURE SPLIT <ON/OFF> These commands are primarily used when Dataplot is being controlled by an external program (e.g., Python). When the SET CAPTURE CUMULATIVE switch is ON, Dataplot will close the capture file at the end of an Analysis command and then re-open the capture file in append mode. This allows the external file to maintain a "cumulative" capture file without the Dataplot session manually closing and re-opening the capture file. If the SET CAPTURE SPLIT ON switch is given, then Dataplot will create a separate capture file each time an Analysis command is entered. Note that this is in addition to the specified capture file. For example, if the commands
CAPTURE CUMCAP.OUT commands are given, then the file CUMCAP.OUT will contain all the alphanumeric output. In addition, the files
CUMCAP_2.OUT ... will also be generated. The split occurs whenever an Analysis command is entered. This command makes it easier for an external program to extract a desired subset of the output. The default is for both of these switches to be OFF.
2002/07: CAPTURE FLUSH feature added 2002/08: CAPTURE HTML and CAPTURE LATEX feature added 2002/11: CAPTURE HTML support for PNG, JPEG, and SVG 2003/01: CAPTURE HTML support for Postscript and PDF 2006/01: CAPTURE SCREEN ON/OFF added 2006/01: CAPTURE SUSPEND/RESUME added 2012/04: CAPTURE SCRIPT added 2015/12: SET CAPTURE CUMULATIVE added 2015/12: SET CAPTURE SPLIT added 2016/12: CAPTURE SCRIPT corrected to work within a loop 2016/12: SET CAPTURE SCRIPT LOOP SUBSTITUTION added ECHO ON FEEDBACK ON CAPTURE FITOUT.DAT FIT Y X1 X2 END OF CAPTUREThe FIT output will be written to the file FITOUT.DAT.
|
Privacy
Policy/Security Notice
NIST is an agency of the U.S.
Commerce Department.
Date created: 01/31/2015 |