Plot 将错误栏设置为已转换的值

Plot 将错误栏设置为已转换的值,plot,error-handling,statistics,gnuplot,gnu,Plot,Error Handling,Statistics,Gnuplot,Gnu,我正在尝试将errorbars转换为已转换的值。我在dat文件中的值为每分钟英国加仑,现在已将其转换为m^3/min 我的问题是,当我同时转换值时,无法获得错误条。最初,我只是将转换和精度括在0.0025(0.25%)上,但没有出现错误条 set yrange [34:37.5] set xlabel "Time [min]" set ylabel "Flow [m^3/min]" plot '2015 08 30 0000 Pelletizer Feed (Wide).dat' every

我正在尝试将errorbars转换为已转换的值。我在dat文件中的值为每分钟英国加仑,现在已将其转换为m^3/min

我的问题是,当我同时转换值时,无法获得错误条。最初,我只是将转换和精度括在0.0025(0.25%)上,但没有出现错误条

set yrange [34:37.5]
set xlabel "Time [min]"
set ylabel "Flow [m^3/min]"
plot '2015 08 30 0000 Pelletizer Feed (Wide).dat'  every ::2372::2459 using 4:($17*0.161) w l lc rgb 'green' title "Run 1", \
                        ''  every ::2372::2459 using 4:17:(($17*0.161)*0.0025) w errorbar lc rgb 'green' notitle, \
    '2015 08 30 0000 Pelletizer Feed (Wide).dat'  every ::2498::2565 using 4:($17*0.161) w l lc rgb 'blue' title "Run 2", \
                                ''  every ::2498::2565 using 4:17:(($17*0.161)*0.0025) w errorbar lc rgb 'blue' notitle, \
                        35.42 title "SP" with lines linestyle 2

使用直线和错误条打印时,使用的是不同的y值。您对行使用了
4:($17*0.161)
,但对错误条使用了
4:17:($17*0.161)*0.0025)
,因此错误条超出了您的Y范围。尝试:

set yrange [34:37.5]
set xlabel "Time (min)"
set ylabel "Flow (m^3/min)"
file = '2015 08 30 0000 Pelletizer Feed (Wide).dat'
set linetype 1 lc rgb 'green'
plot file every ::2372::2459 using 4:($17*0.161) w l lt 1 title "Run 1", \
  '' every ::2372::2459 using 4:($17*0.161):(($17*0.161)*0.0025) w errorbar lt 1 notitle

使用直线和错误条打印时,使用的是不同的y值。您对行使用了
4:($17*0.161)
,但对错误条使用了
4:17:($17*0.161)*0.0025)
,因此错误条超出了您的Y范围。尝试:

set yrange [34:37.5]
set xlabel "Time (min)"
set ylabel "Flow (m^3/min)"
file = '2015 08 30 0000 Pelletizer Feed (Wide).dat'
set linetype 1 lc rgb 'green'
plot file every ::2372::2459 using 4:($17*0.161) w l lt 1 title "Run 1", \
  '' every ::2372::2459 using 4:($17*0.161):(($17*0.161)*0.0025) w errorbar lt 1 notitle