在gnuplot中使用不同的errorbar样式打印

在gnuplot中使用不同的errorbar样式打印,gnuplot,Gnuplot,我想用两个误差条(统计学和统计学+系统学)绘制实验数据,可以这样做: unset key set xrange [0.5:5.5] $data << EOD 1 1 0.1 0.2 2 2 0.1 0.3 3 3 0.1 0.4 4 4 0.1 0.5 5 5 0.1 0.6 EOD plot "$data" u 1:2:3 lc 1 ps 1 with yerrorbars, \ "" u 1:2:4 lc 1 ps -1 with yerrorbars 但是,第一个p

我想用两个误差条(统计学和统计学+系统学)绘制实验数据,可以这样做:

unset key
set xrange [0.5:5.5]
$data << EOD
1 1 0.1 0.2
2 2 0.1 0.3
3 3 0.1 0.4
4 4 0.1 0.5
5 5 0.1 0.6
EOD
plot "$data" u 1:2:3 lc 1 ps 1 with yerrorbars, \
     "" u 1:2:4 lc 1 ps -1 with yerrorbars
但是,第一个plot命令如何有可见的水平线(
set errorbars large
),第二个plot命令如何没有水平线(
set errorbars small
),但都在同一个plot中

结果应该如下所示:

对于没有水平线的绘图,使用带有向量的
而不是带有耶罗棒的

unset key
set xrange [0.5:5.5]
$data << EOD
1 1 0.1 0.2
2 2 0.1 0.3
3 3 0.1 0.4
4 4 0.1 0.5
5 5 0.1 0.6
EOD
plot "$data" u 1:2:3 lc 1 ps 1 with yerrorbars, \
     "" u 1:($2-$4):(0):(2*$4) with vectors nohead lc 1
unset键
设置xrange[0.5:5.5]

$data您可以进行多点打印并覆盖两个打印(使用不同的设置)。。。
unset key
set xrange [0.5:5.5]
$data << EOD
1 1 0.1 0.2
2 2 0.1 0.3
3 3 0.1 0.4
4 4 0.1 0.5
5 5 0.1 0.6
EOD
plot "$data" u 1:2:3 lc 1 ps 1 with yerrorbars, \
     "" u 1:($2-$4):(0):(2*$4) with vectors nohead lc 1