使用CSV文件绘制 [英] Plotting using a CSV file
本文介绍了使用CSV文件绘制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个csv文件,每行有5个条目。每个条目都是网络数据包是否被触发。每一行中的最后一个条目是包的大小。每行=以毫秒为单位的时间。
例如。行
1,0,1,2,117
如何绘制图形其中x轴是行号,y是例如。
b b b b pre>
设置数据文件分隔符,
plot'infile'使用0:1
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?
解决方案
This should get you started:
set datafile separator ","
plot 'infile' using 0:1
这篇关于使用CSV文件绘制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文