Exit
The commands
exit
and
quit
and the END-OF-FILE character will exit
gnuplot
. Each of these commands will clear the output device (as does the
clear
command) before exiting.