set verbose off function string tplot(scalar m) return sprintf("stud(x,%d) title \"t(%d)\"", m, m) end function matrix dfs = {2, 4, 16} plot literal set xrange [-4.5:4.5] literal set yrange [0:0.45] literal Binv(p,q) = exp(lgamma(p+q)-lgamma(p)-lgamma(q)) literal stud(x,m) = Binv(0.5*m,0.5)/sqrt(m)*(1.0+(x*x)/m)**(-0.5*(m+1.0)) printf "plot %s, %s, %s", tplot(dfs[1]), tplot(dfs[2]), tplot(dfs[3]) end plot --output=display