Gnuplot barchart histogram with errorbars

后端 未结 2 428
无人共我
无人共我 2020-12-31 15:20

I want to the results of my benchmarks. I compare two virtual machines with each other and have data of the following form:

BENCHMARK VM1_TIME VM1_ERROR VM2

2条回答
  •  灰色年华
    2020-12-31 16:12

    Ok, now here's what i got with a little changed version of androverso.

    Result graph

    using this code:

    reset
    fontsize = 12
    set term postscript enhanced eps fontsize
    set output "bargraph_solid_state.eps"
    set style fill solid 1.00 border 0
    set style histogram errorbars gap 2 lw 1
    set style data histogram
    set xtics rotate by -45
    set grid ytics
    set xlabel "Benchmarks"
    set ylabel "Relative execution time vs. reference implementation"
    set yrange [0:*]
    set datafile separator ","
    plot 'bm_analysis_results.dat' using 2:3:xtic(1) ti "Rapydo" linecolor rgb "#FF0000", \
    '' using 4:5 ti "R reference implementation" lt 1 lc rgb "#00FF00"
    

    on this data

    sort, 2.5953, 0.0013, 1.0000, 0.0034
    binary search, 2.8434, 0.0132, 1.0000, 0.0037
    sqrt, 2.8675, 0.0022, 1.0000, 0.0079
    arithmetic, 1.9187, 0.0020, 1.0000, 0.0036
    

    Maybe someone will find this useful. Thanks again, androverso!

提交回复
热议问题