#!/usr/bin/gnuplot -persist set parametric f(x) = cos(x*2.*pi) fDeriv(x) = -sin(x*2.*pi) g(x) = 0.1*cos(8.*x*2.*pi) periods=3 set title GPFUN_g.' on '.GPFUN_f set samples periods*100 plot [0:periods][-0.5:3.5][-2:2] \ t, f(t) with points, \ t + cos(atan(fDeriv(t)) + pi/2.)*g(t), f(t) + sin(atan(fDeriv(t)) + pi/2.)*g(t) with points set samples 100