#!/usr/local/bin/gnuplot -persist # set terminal canvas rounded size 600,400 enhanced fsize 10 lw 1.6 fontscale 1 name "piecewise_1" jsdir "." # set output 'piecewise.1.js' unset border set key fixed center top vertical Left reverse enhanced autotitle nobox set style data lines set xzeroaxis set yzeroaxis set xtics axis out scale 1,8 mirror norotate autojustify set xtics add (1.00000 1, 6.28319 1) set ytics axis in scale 1,0.5 mirror norotate autojustify set title "Piecewise function sampling" set title font ",15" textcolor lt -1 norotate set xrange [ -2.00000 : 10.0000 ] noreverse nowriteback set x2range [ * : * ] noreverse writeback set yrange [ * : * ] noreverse writeback set y2range [ * : * ] noreverse writeback set zrange [ * : * ] noreverse writeback set cbrange [ * : * ] noreverse writeback set rrange [ * : * ] noreverse writeback set colorbox vertical origin screen 0.9, 0.2 size screen 0.05, 0.6 front noinvert bdefault plot sample [*:1] x, [1:2.*pi] cos(x), [2.*pi:10] (x-8)**2