#bin/bash URLW=http://golem.fjfi.cvut.cz/wiki/Education/Training/DataToTrain/SinusData/SinusXwithOffset.data URLWO=http://golem.fjfi.cvut.cz/wiki/Education/Training/DataToTrain/SinusData/SinusX.data SETUP="set yrange [-1:5];set xlabel 'Time [ms]';set ylabel 'y [a.u.]';dt=0.1;x=0;" BASEW=$SETUP"plot '< wget -q -O - $URLW' u 1:2 w l lw 3 title '$\sin(x)$','< wget -q -O - $URLW' u 1:(x=x+\$2*dt) w l lw 3 title '$\int \sin (x)$'" BASEWO=$SETUP"plot '< wget -q -O - $URLWO' u 1:2 w l lw 3 title '$\sin(x)$','< wget -q -O - $URLWO' u 1:(x=x+\$2*dt) w l lw 3 title '$\int \sin (x)$'" echo $BASEW|gnuplot --persist echo "set terminal epslatex size 15cm,12cm color colortext standalone;set output 'figW.tex';"$BASEW|gnuplot pdflatex figW.tex echo $BASEWO|gnuplot --persist echo "set terminal epslatex size 15cm,12cm color colortext standalone;set output 'figWO.tex';"$BASEWO|gnuplot pdflatex figWO.tex