#####################################################
set terminal pngcairo size 900,600 font "Arial,12"
set output 'result_dual.png'
set encoding utf8

set grid xtics ytics ls 1 lc rgb "#bbbbbb" lw 1 dt 2
set title "Radix, Heap и Bubble (Log scale)"
set xlabel "Количество элементов в массиве, тыс" offset 0,-1
set ylabel "Время выполнения, с"
set xtics rotate by 90 right

set logscale y 10
set format y "%.3f"
set key top left box opaque
set yrange [0.001:*]   # минимальное >0 для логарифма
set ytics 4

set xrange [50:1000]
set xtics 50

plot 'table-.dat' using ($1/1000):2 with lp pt 9 ps 1 lw 2 lc rgb "red" title "Radix", \
     'table-.dat' using ($1/1000):3 with lp pt 7 ps 1 lw 2 lc rgb "blue" title "Heap", \
     'table-.dat' using ($1/1000):4 with lp pt 5 ps 1 lw 2 lc rgb "#00CC00" title "Bubble"

unset multiplot
