## 2.1.3 The complete syntax of the `set terminal` command

In addition to being used to select the graphical format in which output should be produced, the `set terminal` command takes many options for fine-tuning the behaviours of particular terminals. Its complete syntax is:

    set terminal ( X11_singleWindow | X11_multiWindow | X11_persist |
                   bmp | eps | gif | jpeg | pdf | png | postscript |
                   svg | tiff )
                 ( color | colour | monochrome )
                 ( dpi <value> )
                 ( portrait | landscape )
                 ( invert | noinvert )
                 ( transparent | solid )
                 ( antialias | noantialias )
                 ( enlarge | noenlarge )

The following table lists the effects which each of these settings has:

`X11_singleWindow` | Displays plots on the screen (in X11 windows, using ghostviewor other viewing application selected using the `set viewer` command). Each time a new plot is generated, it replaces the old one, to prevent the desktop from becoming flooded with old plots.1 [default when running interactively; see below]
`X11_multiWindow` | As above, but each new plot appears in a new window, and the old plots remain visible. As many plots as may be desired can be left on the desktop simultaneously.
`X11_persist` | As above, but plot windows remain open after Pyxplot closes.
`bmp` | Sends output to a Windows bitmap (`.bmp`) file. The filename for this file should be set using `set output`. This is a bitmap graphics terminal.
`eps` | As above, but produces Encapsulated PostScript.
`gif` | As above, but produces a gif image. This is a bitmap graphics terminal.
`jpeg` | As above, but produces a jpeg image. This is a bitmap graphics terminal.
`pdf` | As above, but produces pdf output.
`png` | As above, but produces a png image. This is a bitmap graphics terminal.
`postscript` | As above, but sends output to a PostScript file. [default when running non-interactively; see below]
`svg` | As above, but produces an svg image.2
`tiff` | As above, but produces a tiff image. This is a bitmap graphics terminal.
`color` | Allows datasets to be plotted in color. Automatically they will be displayed in a series of different colors, or alternatively colors may be specified using the `with color` plot modifier (see below). [default]
`color` | Equivalent US spelling of the above.
`monochrome` | Opposite to the above; all datasets will be plotted in black by default.
`dpi` | Sets the number of dots per inch at which rasterised graphic output should be sampled (i.e. the output image resolution)
`portrait` | Sets plots to be displayed in upright (normal) orientation. [default]
`landscape` | Opposite of the above; produces side-ways plots. Not very useful when displayed on the screen, but you fit more on a sheet of paper that way around.
`invert` | Modifier for the bitmap output terminals identified above – i.e. the `bmp`, `gif`, `jpeg`, `png` and `tiff` terminals – which produces output with inverted colors.3
`noinvert` | Modifier for the bitmap output terminals identified above; opposite to the above. [default]
`transparent` | Modifier for the `gif` and `png` terminals; produces output with a transparent background.
`solid` | Modifier for the `gif` and `png` terminals; opposite to the above. [default]
`antialias` | Modifier for the bitmap output terminals identified above; produces antialiased output, with color boundaries smoothed to disguise the effects of pixelisation [default]
`noantialias` | Modifier for the bitmap output terminals identified above; opposite to the above
`enlarge` | Enlarge or shrink contents to fit the current paper size.
`noenlarge` | Do not enlarge output; opposite to the above. [default]

Footnotes

1. The authors are aware of a bug, that this terminal can occasionally go blank when a new plot is generated. This is a known bug in ghostview, and can be worked around by selecting File Reload within the ghostview window.
2. The `svg` output terminal is experimental and may be unstable. It relies upon the use of the `svg` output device in Ghostscript, which may not be present on all systems.
3. This terminal setting is useful for producing plots to embed in talk slideshows, which often contain bright text on a dark background. It only works when producing bitmapped output, though a similar effect can be achieved in PostScript using the `set textcolor` and `set axescolor` commands (see Section 1.9).