graph program reads one or more datasets from files named on
the command line or from standard input, and prepares a plot. The
output format or display type is specified with the `-T' option.
graph reads ASCII data from the files specified on
the command line. The data are pairs of numbers, interpreted as the
x and y coordinates of data points. If no file names
are specified, or the file name `-' is specified, the standard
input is read. The output file is written to standard output, unless
the `-T X' option is specified. In that case the graph is
displayed in a window on an X Window System display, and there is no
There are many command-line options for adjusting the visual appearance of the plot. The relative order of file names and command-line options is important. Only the options that precede a file name on the command line take effect for that file.
The following sections list the possible options. Each option that takes an argument is followed, in parentheses, by the type and default value of the argument. There are five sorts of option.
graph, i.e., relevant only if no display type or output format is specified with the `-T' option. (See section Raw
The behavior of
graph is also affected by a number of environment
variables, so there is a section discussing them as well.
Go to the first, previous, next, last section, table of contents.