I want to create a gnuplot with three plots in it. The data should be inline (as I want to only
It should look like this:
How about using the system() command
set terminal png
set output "test.png"
# read shell input
# the echo prints the variable, which is then piped to gnuplot
fname = system("read filename; echo $filename")
plot for[col=2:4] fname using 1:col title columnheader(col) with lines
You can call it now with
echo "data.txt" | gnuplot script.gp