0
votes

I have a variable number of files with a single row and 2 columns. I already plot the data in one window using

plot for [i=1:7] './data'.i.'.txt' using 1:2 with points

giving a point for each data point. But i'd like to have all points (from the different files) connected in the graph. How can i accomplish this?

1

1 Answers

1
votes

You can give shell commands from within gnuplot to aggregate the data files into one, for example:

plot '< cat data*.txt' using 1:2 with lines