我正在尝试使用 gnuplot 绘制图形。 我有六个文本文件,每个文本文件包含两列。 第一列表示时间(浮点数),第二列是序列号。 我想在单个图形中为所有六个文件绘制时间与序列号的图形。 我正在使用此文件完成操作。
set terminal png
set output 'akamai.png'
set xdata time
set timefmt "%S"
set xlabel "time"
set autoscale
set ylabel "highest seq number"
set format y "%s"
set title "seq number over time"
set key reverse Left outside
set grid
set style data linespoints
plot "print_1012720" using 1:2 title "Flow 1", \
plot "print_1058167" using 1:2 title "Flow 2", \
plot "print_193548" using 1:2 title "Flow 3", \
plot "print_401125" using 1:2 title "Flow 4", \
plot "print_401275" using 1:2 title "Flow 5", \
plot "print_401276" using 1:2 title "Flow 6"
我的文件在这里:
print_1012720
print_1058167
print_193548
print_401125
print_401275
print_401276
出现如下奇怪的错误:
"plot.plt",第24行: 变量未定义:plot
我做错了什么吗?是否可以将不同文件中的输入数据绘制在同一张图上?