The `clear` command erases the current screen or output device as specified
by `set output` (Note:output ). This usually generates a formfeed on
hardcopy devices. Use `set terminal` (Note:terminal ) to set the device
type.
For some terminals `clear` erases only the portion of the plotting surface
defined by `set size` (Note:size ), so for these it can be used in
conjunction with set multiplot` to create an inset.
Example:
set multiplot
plot sin(x)
set origin 0.5,0.5
set size 0.4,0.4
clear
plot cos(x)
set nomultiplot
Please see `set multiplot` (Note:multiplot ), set size, and nd `set origin`
(Note:origin ) for details of these commands.