gnuplot(十)、画柱状图
程序员文章站
2022-03-29 21:20:12
...
一、柱状图
1、数据文件 data
NO A B
1 2.5 38.1
2 5.1 58.4
3 10.2 81.3
4 25.4 101.6
2、绘图程序
set style data histogram
set style histogram clustered gap 1
set style fill solid 0.4 border
plot "data" using 2, '' using 3
#plot "data" using 2:xticlabels(1) title columnheader(2), '' using 3:xticlabels(1) title columnheader(3)