The Plotutils Package - graph Invocation

Go to the first, previous, next, last section, table of contents.

## `graph` command-line options

The `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.

By default, `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 output file.

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.

1. Options affecting an entire plot. (See section Plot options.)
2. Options affecting the reading and drawing of individual datasets within a plot. (See section Dataset options.)
3. Options for multiplotting (drawing several sub-plots within a plot). (See section Multiplot options.)
4. Options relevant only to raw `graph`, i.e., relevant only if no display type or output format is specified with the ``-T'` option. (See section Raw `graph` options.)
5. Options requesting information (e.g., ``--help'`). (See section Informational options.)

@ifnottex 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.