参考:
安装
sudo apt-get install gnuplotsudo apt-get install gnuplot-x11
如果没有第二句,会出现Terminal type set to 'unknown'
命令
plot "data.txt" # 以data.txt的第一列为x轴,第二列为y轴set xlabel "[x_name]" # 设置x轴的单位set ylabel "[y_name]" # 设置y轴的单位plot "data.txt" with lines # 生成折线图plot "data1.txt" with lines, "data2.txt" with lines # 生成两条折线的图
plot "vSDN_C" with lines linetype 3 linecolor 2 linewidth 1 pointtype 7title "vSDN C", "vSDN_C-in-parallel-experiment" with lines linetype 0 linecolor 1 linewidth 2 pointtype 7 title "vSDN C in parallel experiment"
2017/3/7