![]() |
CAPTURE HTMLName:
As of the 2013/12 version of Dataplot, most of the Analysis commands support HTML formatted output. The following are the Analysis commands that do not yet support HTML formatted output (these commands use the <PRE> ... </PRE> syntax, that is, an "asis" format).
DDS ORTHOGONAL DISTANCE FIT PRE-FIT RECIPE SEASONAL LOWESS SIMCOV SMOOTH In addition, WRITE HTML can be used to generate 1-way tables in HTML format. This is described in more detail in a Note below. The CAPTURE HTML option can be used in conjunction with the WEB command. For example,
READ RIPKEN.DAT Y X1 X2 ECHO ON CAPTURE HTML C:\TABLE.HTM TABULATE MEAN Y X1 CROSS TABULATE MEAN Y X1 X2 END OF CAPTURE WEB file://C:\TABLE.HTM In addition, if DEVICE 2 is set to PNG, JPEG, SVG, or Postscript, Dataplot will incorporate the graphics into the web page using the IMG tag (the SVG device uses the EMBED tag). This is demonstrated in the sample program below. Note that for Postscript, Dataplot uses the Ghostscript command to convert the output to JPEG. A couple of points to note on this:
The SET POSTSCRIPT CONVERT command can be used to automatically convert the Postscript output to one of several formats (JPEG, PDF, TIFF, PBM, PGM, PPM, PNM). If the output is set to PDF (Portable Document Format), the CAPTURE HTML command will incorporate the PDF (rather than the Postscript) file into the web page. For PDF files, Dataplot builds a link to the PDF file. The advantage of using PDF files is that they are typically of higher quality than the corresponding JPEG files. The disadvantage is that you have to link to the file rather than having it directly in the page.
where <file name> is the name of a file where alphanumeric output is written. If the file name does not contain a period, place a period (no spaces) at the end of the file name.
... DATAPLOT COMMANDS .... END OF CAPTURE
PRINT <ON/OFF> The PRINT command controls most of the output generated by the Analysis category commands. Output from most other commands is controlled by the FEEDBACK command. The purpose of this distinction is to allow you to generate the output from commands such as FIT while suppressing most of the other output. When generating HTML format output, a common choice is
FEEDBACK OFF
where <var-list> is a list of variables to print in an HTML table format. Note that this command is typically entered after a CAPTURE HTML command. The following commands can be used to control the appearance of the HTML table:
The SET WRITE DECIMALS command can be used to specify how many digits after the decimal point will be printed (this will apply to all of the columns, currently there is no way to specify a different value for different columns). By default, the column headers will simply be the variable names. However, if you have entered a VARIABLE LABEL command for a given variable, the label specified for that variable will be used instead of the variable name.
SET HTML FOOTER FILE <file-name> Enter HELP HTML HEADER FILE or HELP HTML FOOTER FILE for details.
If you want to modify the appearance of the HTML output, our recommendation is to either edit the file using an ASCII editor or use one of the HTML editors (we have no particular recommendations on the advantages/disadvantages of the various editors).
skip 25 read gear.dat y x . line blank solid character x blank feedback off . capture html tabulate.htm . summary y tabulate mean y x tabulate sd y x . set ipl1na meanplot.jpg device 2 gd jpeg title mean plot y1label diameter x1label batch mean plot y x device 2 close end of capture . . file name below needs to be modified web file:///home/heckert/dataplot/solaris/tabulate.htm
|
Privacy
Policy/Security Notice
NIST is an agency of the U.S.
Commerce Department.
Date created: 01/31/2004 |