1.52.55 output
set output <filename>
The setting output 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.