我有此数据:
01/03/2020,100
02/03/2020,150
03/03/2020,125
04/03/2020,150
05/03/2020,175
06/03/2020,200
07/03/2020,220
08/03/2020,150
09/03/2020,175
10/03/2020,125
11/03/2020,150
12/03/2020,200
13/03/2020,210
14/03/2020,230
使用excel,我可以像这样在excel上创建带有预测线的图形:
我能够使用gnuplot创建图:
使用此gnuplot脚本:
set terminal png truecolor size 1950, 650 background rgb "#eff1f0"
set output "/xxx/xxx/xxx/xxx.png"
set size ratio 0.2
set bmargin at screen 0.2
unset key
set datafile separator ","
set xlabel font ",10"
plot "/xxx/xxx/xxx/xxx.txt" using 2:xtic(1) with linespoints linewidth 2 pointtype 7 pointsize 1.5
但是我不知道如何使用Gnuplot绘制预测线...
你能告诉我怎么做吗?
假设您正在寻找线性拟合并扩展此线性函数,则可以尝试以下操作。