8.27.42 output

set output '<filename>'

The output setting controls the name of the file that is produced for non-interactive terminals (postscript, eps, jpeg, gif and png). For example:

set output 'myplot.eps'

causes the output to be written to the file myplot.eps.