嗨,我是gnuplot的新人 我试图显示像这样的条形图: 显示此数据:
#Float ADDs Float Muls Int ADDs Int MULs
14336 20480 19450 2084
8960 14336 12902 3071
使用我修改的脚本:
set boxwidth 0.9 absolute
set style fill solid 1.00 border lt -1
set key inside right top vertical Right noreverse noenhanced autotitle nobox
set style histogram clustered gap 5 title textcolor lt -1
set datafile missing '-'
set style data histograms
set xtics border in scale 0,0 nomirror rotate by -45
set xtics norangelimit
set xtics ()
set title "Number of operation : Radix-2 VS Radix-4"
set yrange [ 0.00000 : 200000. ] noreverse nowriteback
x = 0.0
i = 22
plot 'dataop.dat' using "Float ADDs":xtic(1) ti col, '%lf,%lf,%lf' u "Float Muls" ti col, '%lf,%lf,%lf' u Int ADDs ti col, '%lf,%lf,%lf' u "Int MULs" ti col
有人可以帮助我吗?
答案 0 :(得分:1)
这里是一个稍微修改过的数据文件和gnuplot脚本的版本,它会给你一个情节,虽然我不太确定它是不是你正在寻找的。 p >
数据文件:
Float_ADDs "Float Muls" IADDs IMULs
14336 20480 19450 2084
8960 14336 12902 3071
的变化:
脚本:
set boxwidth 0.9 absolute
set style fill solid 1.00 border lt -1
set key inside right top vertical Right noreverse noenhanced autotitle nobox
set style histogram clustered gap 5 title textcolor lt -1
set datafile missing '-'
set style data histograms
set xtics border in scale 0,0 nomirror rotate by -45
set xtics norangelimit
set xtics
set title "Number of operation : Radix-2 VS Radix-4"
set yrange [ 0.00000 : 200000. ] noreverse nowriteback
plot 'dataop.dat' using "Float_ADDs":xtic(1) ti col,'' u "Float Muls" ti col, '' u "IADDs" ti col, '' u "IMULs" ti col
的变化: