Gnuplot脚本集终端给我ascii字符

时间:2016-08-26 11:08:56

标签: gnuplot

我正在尝试在xubuntu中运行gnuplot脚本,这个脚本在过去几个月已经运行但从今天起它给了我ascii字符而不是所需的png文件。我跟踪问题,似乎是在set terminal命令。 有什么想法吗?

#!/usr/bin/gnuplot 

reset 
set terminal png size 1024,768 

set xlabel "Time" 
set ylabel "Position" 
set title "Title1" 
set key reverse Left outside 
set grid 
set style data lines 

plot "file.txt" using 1:2 title "North", \ 
     "" using 1:3 title "East", \ 
     "" using 1:4 title "Up" #

1 个答案:

答案 0 :(得分:1)

终于找到了解决方案,

仅使用gif文件,因此我sudo apt-get purge gnuplot*并重新安装sudo apt-get install libgd2-noxpm-dev然后重新安装sudo apt-get install gnuplot-x11,一切正常!!!!!