嗨,我是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有人能帮我吗?
发布于 2016-09-07 03:31:13
这里有一个稍微修改过的数据文件和gnuplot脚本的版本,它将给您提供一个绘图,尽管我不太确定它是否正是您要寻找的。
数据文件:
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更改:
https://stackoverflow.com/questions/39353289
复制相似问题