set term svg size 800,600 dynamic enhanced set termoption dashed set style line 1 lt 1 lc rgb "black" lw 1 set style line 2 lt 2 lc rgb "black" lw 1 set style line 3 lt 3 lc rgb "black" lw 1 set style line 4 lt 4 lc rgb "black" lw 1 set style line 5 lt 5 lc rgb "black" lw 1 set style line 6 lt 1 lc rgb "black" lw 2 ismin(x,y) = (x>y)?y:x ismax(x,y) = (x>y)?x:y set xlabel 'Relative Erosive Wind Energy' set ylabel 'Surface update time interval (seconds)' tn(enge) = 3600./ismax(1,int(4*(0.5+4.6*enge))) #set log x #set log y set xrange [0:1] set yrange [0:] set nokey # using decimal in numbers to ensure real division, not integer divistion plot tn(x) ls 1 with lines notitle #pause -1