reset # export do png souboru misto na obrazovku #set term wxt 0 set terminal pngcairo size 640,480 enhanced font 'Verdana,10' set output 'plot.png' set border linewidth 1.5 # nastaveni stylu car - modra rgb0060AD a cervena rgbDD181F, atd. set style line 1 linecolor rgb '#0060ad' linetype 1 linewidth 2 set style line 2 linecolor rgb '#dd181f' linetype 1 linewidth 2 pointtype 7 #set style line 3 linecolor # atd atd set key at 50,112 set xlabel 'Popisek x-ove osy (jednotky)' set ylabel 'Popisek y-ove osy (jednotky)' set tics scale 0.75 # fitovana zavislost f(x) = m * x + c # nafitovani fit f(x) 'data.txt' using 1:2 via m,c set xrange [0:12] set yrange [-1:60] #set key left top font "Helvetica, 12" # nakresleni plot 'data.txt' using 1:($2*1):($3*1) title 'měřená data' with yerrorbars ls 2, f(x) title "linearni zavislost" with lines ls 1