Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/typo3/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Gnuplot第1行的错误数据_Plot_Gnuplot - Fatal编程技术网

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"