将错误栏设置为转换后的值
Make error bar to a converted value
我正在尝试为已转换的值制作错误栏。我在 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:(*0.161) w l lc rgb 'green' title "Run 1", \
'' every ::2372::2459 using 4:17:((*0.161)*0.0025) w errorbar lc rgb 'green' notitle, \
'2015 08 30 0000 Pelletizer Feed (Wide).dat' every ::2498::2565 using 4:(*0.161) w l lc rgb 'blue' title "Run 2", \
'' every ::2498::2565 using 4:17:((*0.161)*0.0025) w errorbar lc rgb 'blue' notitle, \
35.42 title "SP" with lines linestyle 2
使用线条和误差线绘图时,您使用的是不同的 y 值。你有 using 4:(*0.161)
的线条,但 using 4:17:((*0.161)*0.0025)
的错误栏,所以错误栏不在你的范围内。尝试:
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:(*0.161) w l lt 1 title "Run 1", \
'' every ::2372::2459 using 4:(*0.161):((*0.161)*0.0025) w errorbar lt 1 notitle
我正在尝试为已转换的值制作错误栏。我在 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:(*0.161) w l lc rgb 'green' title "Run 1", \
'' every ::2372::2459 using 4:17:((*0.161)*0.0025) w errorbar lc rgb 'green' notitle, \
'2015 08 30 0000 Pelletizer Feed (Wide).dat' every ::2498::2565 using 4:(*0.161) w l lc rgb 'blue' title "Run 2", \
'' every ::2498::2565 using 4:17:((*0.161)*0.0025) w errorbar lc rgb 'blue' notitle, \
35.42 title "SP" with lines linestyle 2
使用线条和误差线绘图时,您使用的是不同的 y 值。你有 using 4:(*0.161)
的线条,但 using 4:17:((*0.161)*0.0025)
的错误栏,所以错误栏不在你的范围内。尝试:
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:(*0.161) w l lt 1 title "Run 1", \
'' every ::2372::2459 using 4:(*0.161):((*0.161)*0.0025) w errorbar lt 1 notitle