Ubuntu 14.04安装gnuplot 解决Terminal type set to 'unknown'问题 简易命令教程

参考:

照猫画虎学gnuplot之折线图

gnuplot 入门教程 1

gnuplot安装,及error:terminal type set to 'unknown'的解决

安装

sudo apt-get install gnuplot

sudo 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"

http://blog.sciencenet.cn/blog-373392-497973.html

2017/3/7

posted @ 2017-03-07 15:30  Wasdns  阅读(831)  评论(0编辑  收藏  举报