我指的是这绘制条形图的示例。我喜欢在每个红条顶部显示的确切值。
就像那些用绿色圈起来的数值,
我的 gnuplot 代码是,
set size 1, 1
set term png size 600, 400
set title "sk plot"
set output "figure.png"
set boxwidth 0.75
set style fill solid
set title "Population of Australian cities (millions), as of June 2012"
plot "population.dat" using 2:xtic(1) with boxes
Population.dat 包含,
Adelaide 1.277174
Brisbane 2.189878
Canberra 0.374658
Darwin 0.131678
Hobart 0.216959
Melbourne 4.246345
Sydney 4.667283