GNUplot不打印行

GNUplot不打印行,gnuplot,Gnuplot,我用这个脚本在Gnuplot中绘制一些数据。不幸的是,我的情节没有打印线条,只有点 我做错了什么 #!/usr/bin/gnuplot reset set terminal png set output 'picture.png' set xlabel "n" set ylabel "time (s)" set yrange [0:2] set title "title" set key reverse Left outside set grid set style data linespo

我用这个脚本在Gnuplot中绘制一些数据。不幸的是,我的情节没有打印线条,只有点

我做错了什么

#!/usr/bin/gnuplot
reset
set terminal png
set output 'picture.png'
set xlabel "n"

set ylabel "time (s)"
set yrange [0:2]

set title "title"
set key reverse Left outside
set grid
set style data linespoints

plot "bla.txt" using 1:2 title "bla" with linespoints ls 1

最可能的情况是,您的数据文件在连续的数据条目之间包含空行

带有

1 2

2 4

5 6
使用打印时仅显示三个点

plot 'data.txt' using 1:2 with linespoints
而数据文件

1 2
3 4
5 6
还显示了连接线

这就是gnuplot处理数据文件的方式