# set terminal pngcairo background "#ffffff" enhanced font "arial,10" fontscale 1.0 size 600, 400 # set output 'piecewise.1.png' unset border set key inside center top vertical Left reverse enhanced autotitles nobox set style data lines set xzeroaxis linetype 0 linewidth 1.000 set yzeroaxis linetype 0 linewidth 1.000 set xtics axis out scale 1,8 mirror norotate offset character 0, 0, 0 autojustify set xtics add (1.00000 1, 6.28319 1) set ytics axis in scale 1,0.5 mirror norotate offset character 0, 0, 0 autojustify set title "Piecewise function sampling" set title offset character 0, 0, 0 font ",15" norotate set xrange [ -2.00000 : 10.0000 ] noreverse nowriteback y = 0 plot y=0, [*:1] x, [1:2.*pi] cos(x), [2.*pi:10] (x-8)**2