Gnuplot脚本集终端为我提供ascii字符

Gnuplot脚本集终端为我提供ascii字符,gnuplot,Gnuplot,我试图在xubuntu中运行gnuplot脚本,该脚本在过去几个月一直有效,但从今天开始,它给了我ascii字符,而不是所需的带有plot的png文件。我跟踪问题,似乎是在设置终端命令。 有什么想法吗 #!/usr/bin/gnuplot reset set terminal png size 1024,768 set xlabel "Time" set ylabel "Position" set title "Title1" set key reverse Left outsi

我试图在xubuntu中运行gnuplot脚本,该脚本在过去几个月一直有效,但从今天开始,它给了我ascii字符,而不是所需的带有plot的png文件。我跟踪问题,似乎是在设置终端命令。 有什么想法吗

#!/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" #

终于找到了解决办法,


只工作了gif文件,所以我
sudo-apt-get-purge-gnuplot*
并重新安装
sudo-apt-get-install-libgd2-noxpm-dev
,然后重新安装
sudo-apt-get-install-gnuplot-x11
,一切正常

你能提供剧本吗?它也可能是在AskUbuntu或Unix&Linux StackExchange上询问的工作