load "filename"
cd 'dir'
although there are some subtle differences (see syntax (p.
) for more details).
Any command-line arguments are assumed to be names of files containing gnuplot commands, with the exception of standard X11 arguments, which are processed first. Each file is loaded with the load command, in the order specified. gnuplot exits after the last file is processed. When no load files are named, gnuplot enters into an interactive mode. The special filename "-" is used to denote standard input. See "help batch/interactive" for more details.
Many gnuplot commands have multiple options. These options must appear in the proper order, although unwanted ones may be omitted in most cases. Thus if the entire command is "command a b c", then "command a c" will probably work, but "command c a" will fail.
Commands may extend over several input lines by ending each line but the last
with a backslash (3#3). The backslash must be the last character on each
line. The effect is as if the backslash and newline were not there. That
is, no white space is implied, nor is a comment terminated. Therefore,
commenting out a continued line comments out the entire command
(see comments (p.
)). But note that if an error occurs somewhere on a multi-line
command, the parser may not be able to locate precisely where the error is
and in that case will not necessarily point to the correct line.
In this document, curly braces ({}) denote optional arguments and a vertical bar (4#4) separates mutually exclusive choices. gnuplot keywords or help topics are indicated by backquotes or boldface (where available). Angle brackets (5#56#6) are used to mark replaceable tokens. In many cases, a default value of the token will be taken for optional arguments if the token is omitted, but these cases are not always denoted with braces around the angle brackets.
For on-line help on any topic, type help followed by the name of the topic or just help or ? to get a menu of available topics.
The new gnuplot user should begin by reading about plotting (if on-line, type help plotting).
See the simple.dem demo, also available together with other demos on the web page
http://www.gnuplot.info/demo/simple.htmlhttp://www.gnuplot.info/demo/simple.html