next up previous contents index
Next: Termoption Up: Set-show Previous: Table   Contents   Index


Terminal

gnuplot supports many different graphics devices. Use set terminal to tell gnuplot what kind of output to generate. Use set output to redirect that output to a file or device.

Syntax:

     set terminal {<terminal-type> | push | pop}
     show terminal

If 5#5terminal-type6#6 is omitted, gnuplot will list the available terminal types. 5#5terminal-type6#6 may be abbreviated.

If both set terminal and set output are used together, it is safest to give set terminal first, because some terminals set a flag which is needed in some operating systems.

Several terminals have many additional options. For example, see png (p. [*]), or postscript (p. [*]). The options used by a previous invocation set term 5#5term6#6 5#5options6#6 of a given 5#5term6#6 are remembered, thus subsequent set term 5#5term6#6 does not reset them. This helps in printing, for instance, when switching among different terminals -- previous options don't have to be repeated.

The command set term push remembers the current terminal including its settings while set term pop restores it. This is equivalent to save term and load term, but without accessing the filesystem. Therefore they can be used to achieve platform independent restoring of the terminal after printing, for instance. After gnuplot's startup, the default terminal or that from startup file is pushed automatically. Therefore portable scripts can rely that set term pop restores the default terminal on a given platform unless another terminal has been pushed explicitly.

For a complete list of available terminal types, see terminal (p. [*]).


next up previous contents index
Next: Termoption Up: Set-show Previous: Table   Contents   Index
Ethan Merritt 2007-03-03