我的文件内容如下:
user_number diff id
1 3 1
1 4 1
2 7 1
359 8 1
857 9 1
这是我使用的命令和产生的错误:
gnuplot> plot "avg_max_min.csv" using 1:2 with boxes
^
Error: warning: Skipping data file with no valid points
^
x range is invalid
知道错误从何而来吗?
最佳答案
要使其正常工作,您应该将数据文件更改为
#user_number diff id 1 3 1 1 4 1 2 7 1 359 8 1 857 9 1
Gnuplot 会将 # 开头的行视为注释,并且不会使用 at 进行绘图。
关于gnuplot - 如何使用 Gnuplot 绘制线图?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7113148/