Plotting using a CSV file

user494461 picture user494461 · Feb 14, 2013 · Viewed 133k times · Source

I have a csv file which has 5 entries on every row. Every entry is whether a network packet is triggered or not. The last entry in every row is the size of packet. Every row = time elapsed in ms.

e.g. row

1 , 0 , 1 , 2 , 117

How do I plot a graph for e.g. where x axis is the row number and y is the value for e.g. 1st entry in every row?

Answer

Thor picture Thor · Feb 14, 2013

This should get you started:

set datafile separator ","
plot 'infile' using 0:1