[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
3.24.64 terminal
‘gnuplot‘ supports many different graphics devices. Use terminal to tell ‘gnuplot‘ what kind of output to generate. Use output to redirect that output to a file or device.
Syntax:
set terminal {<terminal-type> | push | pop} show terminal |
If <terminal-type> is omitted, ‘gnuplot‘ will list the available terminal types. <terminal-type> may be abbreviated.
If both terminal and output are used together, it is safest to give 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‘, or ‘postscript‘. The options used by a previous invocation ‘set term <term> <options>‘ of a given ‘<term>‘ are remembered, thus subsequent ‘set term <term>‘ 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 more information, see the ‘complete list of terminals‘.
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |