I have a data file with 100 rows and about 400 columns. I am trying to plot each set of 2 columns (an x and y position for a single point) by iterating through the columns as done from Selecting a single row from a data file in gnuplot:
table_file="/tmp/gnuplot_tab.dat"
set table table_file
line_number = 1
data_file = "data.dat"
plot for [i=2:*:2] "<(sed -n '".line_number."p' ".data_file.")" u i:i+1
unset table
plot table_file
This works just fine for line_number = 1 but for, say, line_number = 79 it doesn't plot all the columns and says
Ending * iteration at 0
Why is this happening and how can I fix it? The end goal is to iterate through line_number from 1 to 100 to plot the points as a function of time, but right now it's not even plotting all of certain lines.
I would appreciate it if you could explain your solution as well so I get a better understanding of gnuplot. Thank you!
EDIT: It's actually not working for the first line either! I realize only half the points are being plotted when I have line_number=1 . So then the problem is, why is this not plotting all of the points at all!

sedfilter is returning a data stream that cannot be plotted, and the iteration stops as soon as it encounters a plot with no valid points in it.plot for...line an extrawith table. This should simplify what is written to table_file. You should also look at that file to see what it contains.