How can I save the plotted image plotted by gnuplot, in the format of GIF or JPEG? I plotted a picture then do something as follows:



gnuplot> set terminal jpeg
Terminal type set to 'jpeg'
Options are 'nocrop font /usr/share/fonts/truetype/ttf-liberation/LiberationSans-Regular.ttf 12 '



then I want to save it as finplot.jpeg, but it comes out:



gnuplot> set output finplot.jpeg
undefined variable: finplot

What's the problem? Please help.