Files
sibsutis/1Y-2H/dsa/lab2/data/graph.gp
T
2026-02-24 12:12:12 +07:00

25 lines
808 B
Gnuplot
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#####################################################
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 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