Gnuplot第1行的错误数据
嗯,我得到了错误Gnuplot第1行的错误数据,plot,gnuplot,Plot,Gnuplot,嗯,我得到了错误 gnuplot> plot "plot_error.p" ^ Bad data on line 1 尝试在以下数据文件上执行绘图脚本plot\u error.p(tesc\u error.dat) 剧本是 set encoding iso_8859_1 set terminal postscript eps enhanced color solid set xrange[1:1
gnuplot> plot "plot_error.p"
^
Bad data on line 1
尝试在以下数据文件上执行绘图脚本plot\u error.p
(tesc\u error.dat
)
剧本是
set encoding iso_8859_1
set terminal postscript eps enhanced color solid
set xrange[1:14]
set yrange[0:900]
set title "1D MFPT"
set xlabel "{/Symbol G}"
set ylabel "t_{esc}"
unset key
set output "tesc_error.eps"
y(x)=1/(9*x**(2/3))*exp(x-1)
plot "tesc_error.dat" with yerrorbars, y(x) lt rgb "blue"
set key
最奇怪的是,我最近画了一个没有错误的图,但突然间它突然出现了错误。我已经检查了数据文件的第1行,其中似乎没有什么奇怪的地方。问题是您使用
plot
命令调用脚本。尝试: 相反。
plot
命令需要数据文件而不是脚本。Omg。有史以来最粗鲁的事。我今天工作太多了,我看不见。非常感谢。
set encoding iso_8859_1
set terminal postscript eps enhanced color solid
set xrange[1:14]
set yrange[0:900]
set title "1D MFPT"
set xlabel "{/Symbol G}"
set ylabel "t_{esc}"
unset key
set output "tesc_error.eps"
y(x)=1/(9*x**(2/3))*exp(x-1)
plot "tesc_error.dat" with yerrorbars, y(x) lt rgb "blue"
set key
load "plot_error.p"