一、gunplot
gnuplot> test
这样当前 terminal 会输出一个测试图:
二、lua + gunplot
GNU Plot commands must be passed in a table.
1. 将绘图所需的数据及控制信息放入table中。
plotTab={}
table.insert(plotTab, {trname, Xtensor, Ytensor, ls})
(1) 标题title
trname = string.format("%s %d",typestr, id)
(2) Xtensor
(3) Ytensor
(4) 连线风格linestyle:ls = string.format("with lines lw %d linetype %d linecolor %