gnuplot使用``using``来生成标签

时间:2016-03-14 08:37:19

标签: layout plot gnuplot percentage errorbar

我有表格中的数据

x y ymin ymax percentage

我正在密谋

plot "file.dat" using 1:2:3:4 with yerrorbars [...]

现在我如何将百分比四舍五入为整数并将它们作为标签放在误差线上方?

1 个答案:

答案 0 :(得分:1)

这应该可以解决问题:

plot "file.dat" using 1:2:3:4 with yerrorbars, '' u 1:2:(sprintf("%d",$5)) w labels

输入help labels了解更多信息