set terminal pdf set key outside set xlabel 'Parametr n' set ylabel 'Průměrný počet kroků na operaci' set xtics rotate by -270 set terminal pdf size 8,3.5 # this is a comment # set offsets so there is some white space around our graphs and the plotted line does not hide behind the graph edge set offsets graph 0, 0, 0.02, 0.02 set output 'figs/graph1_standard.pdf' set title 'Standardní implementace' show title plot 'results/data_1_n.txt' using 1:2 with lines title "sekvenční" lt rgb "#FF0000" lw 2, \ 'results/data_1_r.txt' using 1:2 with lines title "náhodný" lt rgb "#00FF00" lw 2, \ 'results/data_1_e.txt' using 1:2 with lines title "extrémní" lt rgb "#0000FF" lw 2 set output 'figs/graph1_naive.pdf' set title 'Naivní implementace' show title plot 'results/data_1_n.txt' using 1:3 with lines title "sekvenční" lt rgb "#FF0000" lw 2, \ 'results/data_1_r.txt' using 1:3 with lines title "náhodný" lt rgb "#00FF00" lw 2, \ 'results/data_1_e.txt' using 1:3 with lines title "extrémní" lt rgb "#0000FF" lw 2 set output 'figs/graph1_both.pdf' set title 'Standardní a naivní implementace' show title plot 'results/data_1_n.txt' using 1:2 with lines title "sekvenční, standardní" lt rgb "#FF0000" lw 2, \ 'results/data_1_r.txt' using 1:2 with lines title "náhodný, standardní" lt rgb "#00FF00" lw 2, \ 'results/data_1_e.txt' using 1:2 with lines title "extrémní, standardní" lt rgb "#0000FF" lw 2, \ 'results/data_1_n.txt' using 1:3 with lines title "sekvenční, naivní" lt rgb "#00FFFF" lw 2, \ 'results/data_1_r.txt' using 1:3 with lines title "náhodný, naivní" lt rgb "#FF00FF" lw 2, \ 'results/data_1_e.txt' using 1:3 with lines title "extrémní, naivní" lt rgb "#FFBB00" lw 2 set output 'figs/graph1_both_without_enaive.pdf' set title 'Standardní a naivní implementace' show title plot 'results/data_1_n.txt' using 1:2 with lines title "sekvenční, standardní" lt rgb "#FF0000" lw 2, \ 'results/data_1_r.txt' using 1:2 with lines title "náhodný, standardní" lt rgb "#00FF00" lw 2, \ 'results/data_1_e.txt' using 1:2 with lines title "extrémní, standardní" lt rgb "#0000FF" lw 2, \ 'results/data_1_n.txt' using 1:3 with lines title "sekvenční, naivní" lt rgb "#00FFFF" lw 2, \ 'results/data_1_r.txt' using 1:3 with lines title "náhodný, naivní" lt rgb "#FF00FF" lw 2 set logscale y 2 set ylabel "Průměrný počet kroků na operaci \n (logaritmická škála)" set output 'figs/graph1_both_log.pdf' set title 'Standardní a naivní implementace -- logaritmická škála na ose y' show title plot 'results/data_1_n.txt' using 1:2 with lines title "sekvenční, standardní" lt rgb "#FF0000" lw 2, \ 'results/data_1_r.txt' using 1:2 with lines title "náhodný, standardní" lt rgb "#00FF00" lw 2, \ 'results/data_1_e.txt' using 1:2 with lines title "extremní, standardní" lt rgb "#0000FF" lw 2, \ 'results/data_1_n.txt' using 1:3 with lines title "sekvenční, naivní" lt rgb "#00FFFF" lw 2, \ 'results/data_1_r.txt' using 1:3 with lines title "náhodný, naivní" lt rgb "#FF00FF" lw 2, \ 'results/data_1_e.txt' using 1:3 with lines title "extremní, naivní" lt rgb "#FFBB00" lw 2 set output 'figs/graph1_naive_log.pdf' set title 'Naivní implementace -- logaritmická škála na ose y' show title plot 'results/data_1_n.txt' using 1:3 with lines title "sekvenční, naivní" lt rgb "#FF0000" lw 2, \ 'results/data_1_r.txt' using 1:3 with lines title "náhodný, naivní" lt rgb "#00FF00" lw 2, \ 'results/data_1_e.txt' using 1:3 with lines title "extremní, naivní" lt rgb "#0000FF" lw 2 f(x) = 0.3*x**(1/2.0) g(x) = 0.5*(x) h(x) = 0.25*(x) set output 'figs/graph1_naive_extreme.pdf' set title 'Naivní implementace -- odhady -- logaritmická škála na ose y' show title plot 'results/data_1_e.txt' using 1:3 with lines title "extremní, naivní" lt rgb "#0000FF" lw 2, \ g(x) with lines title "0.5*n" lc rgb "#000099EE" lw 2, \ h(x) with lines title "0.25*n" lc rgb "#0000CCEE" lw 2, \ 'results/data_1_r.txt' using 1:3 with lines title "náhodný, naivní" lt rgb "#00FF00" lw 2, \ f(x) with lines title "0.3*sqrt(n)" lc rgb "#999999AA" lw 2