Is it possible to put some data into gnuplot right on it’s prompt?
Like this:
gnuplot> plot [ 1 2 4 8 ] with lines
Creating a .dat file, saving it, then running gnuplot, plotting, removing file… Sometimes for simple graph that seems too long. Can this be done from gnuplot’s prompt?
I believe this will work for you, it should work from a control script, and may work interactively as well:
This and many other excellent tips I found at this page: http://t16web.lanl.gov/Kawano/gnuplot/datafile2-e.html