C-PLOT

Scientific Graphics and Data Analysis

mk

make a command file

SYNOPSIS

mk file_name

DESCRIPTION

Command files can be created with ordinary text editors or with mk file. The mk command changes the prompt from:

PLOT->

to:

making->

Most commands entered when making a command file are executed normally except for do file. The words "do file" are inserted into the file being made, but that command file is not executed.

Typing ^D or em will terminate the making of a command file.

When modifying or creating command files using an editor, the control characters used by C-PLOT, ^D or ^N, can be inserted using the printing characters ^ and D or N. These characters must appear at the beginning of a line, however.

Issues to pay attention to when writing command files:

  • Commands that toggle states (eb, vt, etc.) should be used to select a specific state by giving an argument of 0 or 1.
  • The ra and ro commands require a different number of input lines depending on the prior input.
  • When the commands wi, pn or pk are used without arguments to specify the window size or pen position, the user will not be able to set those quantities from the plotter.

The modify-data command gd 7 will not accept input from command files. Subprocesses such as subshells (invoked with u) or functions also will not take input from command files. You can, however, use single-line commands, such as u sleep 10 or fn calc.4 y = sqrt(y) within command files. Fit functions (type 5) have an independent command file capability.

EXAMPLE

mk file_name

SEE ALSO

do em gd fn u