# set terminal pngcairo background "#ffffff" enhanced font "arial,10" fontscale 1.0 size 600, 400 # set output 'stringvar.6.png' set key title "file(i) = sprintf(\"%1d.dat\",i); N=2; M=3" set key inside left top vertical Left reverse enhanced autotitles nobox set key noinvert samplen 4 spacing 1 width 25 height 0 set title "String-valued functions to generate datafile names" file(i) = sprintf("%1d.dat",i) beg = 2 end = 4 foo = " 1 2 3 4 5 6" ERRNO = 0 haystack = "Sat Nov 17 13:04:59 PST 2012" needle = ":" S = 14 N = 2 M = 3 GPFUN_file = "file(i) = sprintf(\"%1d.dat\",i)" plot 5*sin(x)/x, file(N), file(M)