Gnuplot:如何删除误差条图的图例中的线条?

Gnuplot: how to remove the lines in the legends of a error bar plot?

Gnuplot 4.6.5

我想删除 yerrorbars 图的图例中的线。

这里是测试代码:

set term wxt;
set key bottom;
plot '-' title 'data 1' with yerrorbars pt 7;
#a1 Avg-r Std-r
0.0 0.005554 0.0008
0.1 0.01527 0.0097
0.2 0.363396 0.1345
0.3 0.754732 0.0584
0.4 0.887269 0.0136
0.5 0.944382 0.0089
0.6 0.971147 0.0058
0.7 0.984564 0.0040
0.8 0.99171 0.00296
0.9 0.995385 0.0021
1.0 0.997495 0.00165
e

它给出:

我要:

非常感谢您的帮助!

我还想要主图中的横条,但想去掉图例中的横条。

除了评论中给出的解决方法之外,还有一种解决方法是绘制两次,第一次是使用较小的点大小和误差线,没有标题,然后在它上面具有所需的点大小并且没有错误栏:

plot "data" u 1:2:3 with yerrorbars pt 7 lc 1 ps 0.5 not, \
"data" u 1:2 pt 7 lc 1 ps 1 title "data1"