# set terminal svg size 600,400 dynamic enhanced font 'arial,10' mousing name "spline_2" butt dashlength 1.0 # set output 'spline.2.svg' set grid nopolar set grid xtics nomxtics ytics nomytics noztics nomztics nortics nomrtics \ nox2tics nomx2tics noy2tics nomy2tics nocbtics nomcbtics set grid layerdefault lt 0 linecolor 0 linewidth 0.500, lt 0 linecolor 0 linewidth 0.500 set key fixed right top vertical Right noreverse enhanced autotitle box lt black linewidth 1.000 dashtype solid set style data lines set title "The cubic Hermite basis functions" set xrange [ 0.00000 : 1.00000 ] noreverse nowriteback set x2range [ * : * ] noreverse writeback set yrange [ -0.200000 : 1.40000 ] noreverse nowriteback 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 m0(x) = 1 m1(x) = x m2(x) = x**2 m3(x) = x**3 h00(x) = x**2 * ( 2 * x - 3) + 1 h01(x) = -x**2 * (2 * x - 3) h10(x) = x * (x - 1)**2 h11(x) = x**2 * (x - 1) NO_ANIMATION = 1 plot h00(x), h01(x), h10(x), h11(x)