You can use the syntax for inline data – filename '-'
.
The following example produces a simple plot in a GIF
image (bash
script):
gnuplot << EOF
set terminal gif
set output 'plot1.gif'
plot '-' using 1:2
1 10
2 20
3 32
4 40
5 50
e
EOF