求教关于gnuplot的问题,烦请大家看下

OOo,TeX,KO,ABI,GIMP,Picasa,ProE,QCAD,Inkscape,Kicad,Eagle
回复
xraywu
帖子: 1
注册时间: 2010-06-26 16:09

求教关于gnuplot的问题,烦请大家看下

#1

帖子 xraywu » 2010-06-26 16:19

我在使用一个生物学软件TMHMM2.0的时候,软件会自动生成一个gnuplot的脚本如下:

set arrow from 1,1.11 to 76,1.11 nohead lt 4 lw 10
set arrow from 77,1.09 to 99,1.09 nohead lt 1 lw 40
set arrow from 100,1.07 to 111,1.07 nohead lt 3 lw 10
set arrow from 112,1.09 to 134,1.09 nohead lt 1 lw 40
set arrow from 135,1.11 to 148,1.11 nohead lt 4 lw 10
set arrow from 149,1.09 to 171,1.09 nohead lt 1 lw 40
set arrow from 172,1.07 to 191,1.07 nohead lt 3 lw 10
set arrow from 192,1.09 to 214,1.09 nohead lt 1 lw 40
set arrow from 215,1.11 to 233,1.11 nohead lt 4 lw 10
set arrow from 234,1.09 to 256,1.09 nohead lt 1 lw 40
set arrow from 257,1.07 to 324,1.07 nohead lt 3 lw 10
set arrow from 325,1.09 to 347,1.09 nohead lt 1 lw 40
set arrow from 348,1.11 to 356,1.11 nohead lt 4 lw 10
set arrow from 357,1.09 to 379,1.09 nohead lt 1 lw 40
set arrow from 380,1.07 to 471,1.07 nohead lt 3 lw 10
set key below
set title "TMHMM posterior probabilities for 5H2A_CRIGR"
set yrange [0:1.2]
set size 2., 1.4
#set xlabel "position"
set ylabel "probability"
set xrange [1:471]
# Make the ps plot
set term postscript eps color solid "Helvetica" 30
set output "./TMHMM_1851/5H2A_CRIGR.eps"
plot "./TMHMM_1851/5H2A_CRIGR.plp" using 1:4 title "transmembrane" with impulses lt 1 lw 2, \
"" using 1:3 title "inside" with line lt 3 lw 2, \
"" using 1:5 title "outside" with line lt 4 lw 2
exit

但是,在gnuplot里load该脚本时,会出现报错信息如下:

gnuplot> load 'E:\Download\gp440win32\gnuplot\binary\1.gnuplot'

gnuplot> set output "./TMHMM_1851/5H2A_CRIGR.eps"
^
cannot open file; output not changed
"E:\Download\gp440win32\gnuplot\binary\1.gnuplot", line 25:
gnuplot>

请问大家这是什么原因造成的,如何解决?十分感谢!
thorne
帖子: 660
注册时间: 2008-10-08 22:01

Re: 求教关于gnuplot的问题,烦请大家看下

#2

帖子 thorne » 2010-06-27 21:00

你是在windwos下吧
windows下的路径是用 \ 而不是 /
改过来就好了吧

代码: 全选

其实我是个Debian GNU/Linux用户
Octave script :http://forum.ubuntu.org.cn/viewtopic.php?f=35&t=254511
Octave中文:http://forum.ubuntu.org.cn/viewtopic.php?f=35&t=318969
回复