# -*- Gnuplot -*- set term cairolatex pdf input \ blacktext notransparent nocrop \ size 15cm,10cm \ noheader set size ratio 0.66 set lmargin at screen 0.1 set rmargin at screen 0.9 set bmargin at screen 0.1 set tmargin at screen 0.9 # set term x11 set xlabel "Длина" set ylabel "Время (с)" set y2label "Кол-во итерации" set format y '10^{%T}' set format y2 '10^{%T}' set y2tics set ytics nomirror set logscale y set logscale y2 set autoscale plot '$datafile' using 1:2 with linespoints lw 5 pt 7 title "Время (с)", \ '$datafile' using 1:3 with linespoints lw 5 pt 6 title "Кол-во итерации" axes x1y2 exit # script.plt ends here