gnuplot histogram: How to put values on top of bars

后端 未结 3 2023
情话喂你
情话喂你 2020-12-18 04:53

I have the following data:

1   3215
2   321
...
31_60   59
60+   32

I would like to generate histogram using gnuplot and put the value of b

3条回答
  •  -上瘾入骨i
    2020-12-18 05:47

    using 0 works well with xtic().

    plot 'file.dat' using 2:xtic(1) with histogram, '' using 0:2:2 with labels
    

提交回复
热议问题