Gnuplot、yerrorbar、文本作为x轴
我有以下数据:Gnuplot、yerrorbar、文本作为x轴,gnuplot,Gnuplot,我有以下数据: t4.8k 1.84 1.86 1.83 t5.8k 1.82 1.84 1.8 t7.10k 1.79 1.8 1.77 t8.8k 1.8 1.84 1.76 我需要使用耶罗棒在GNU绘图中绘图。 Column1—数据集名称。这是xaxis量表。 第2列-Y-均值 第3列-Y-Max 第4列-Y-Min 以下是我使用的绘图代码: plot "chameleonConfidence.dat" using xt
t4.8k 1.84 1.86 1.83
t5.8k 1.82 1.84 1.8
t7.10k 1.79 1.8 1.77
t8.8k 1.8 1.84 1.76
我需要使用耶罗棒在GNU绘图中绘图。Column1—数据集名称。这是xaxis量表。 第2列-Y-均值 第3列-Y-Max 第4列-Y-Min 以下是我使用的绘图代码:
plot "chameleonConfidence.dat" using xtic(1):2:4:3 title "Ratio of Time Taken" with yerrorbars
但这给了我以下的错误
警告:空x范围[4.94066e-324:4.94066e-324],调整为[4.94066e-324:4.94066e-324]
“chameleonConfidence.gplot”,第15行:x_最小值不应等于x_最大值
有人能帮我吗?这对我很有用
set xrange [-1:4]
TITLE="Ratio of Time Taken"
plot "chameleonConfidence.dat" using ($0):2:4:3:xticlabels(1) with yerrorbars title TITLE
xtic
函数不会替换文件中的x值——它是一个automagic额外字段,您可以添加到using规范中,以在轴上添加xticLabel。基本上,您只需要将行号($0
)作为x值,然后就可以设置好(将xtic(1)
移动到使用规范的末尾)