gnuplot最重要的当然是作图拉.:) 譬如experimental data存在”calibration.dat”里:
the1st, 4th, 2nd,5th columns分别是dL , L, dL的实验误差, L的实验误差. 把L作为x, dL作为y来plot, 并且带上两者的实验误差, 用命令: plot “calibration.dat” usi 4:1:5:2 w xyerr title “L v.s dL” , 其中”usi 4:1:5:2″代表用第四,一,二,五列的数据. (默认x,y,xerr,yerr) “w xyerr”表示用xyerror bar, “title …”用来作legend.
若打算一次作多种图比如在上面的例子里再作gaussian函数图像, 就用,\来分隔 :
plot “calibration.dat” usi 4:1:5:2 w xyerr title “L vs dL” ,\
300*exp(-0.01*(x-200)**2) title “gaussian distribution”
当然, 可以把所需要作的流程, 如set term, plot “file”之类写在一个文件里面,如plot.那么直接在linux下输入gnuplot plot就行了. !!

