plot - Gnuplot bad data on line 1 -
well, getting error
gnuplot> plot "plot_error.p" ^ bad data on line 1
when trying execute plotting script plot_error.p
on following datafile (tesc_error.dat
)
2 0.02373300 0.00187922 3 0.12182900 0.01080161 4 0.30066000 0.02936487 5 0.88415600 0.07882007 6 1.70864800 0.14576794 7 4.11814900 0.44127670 8 8.79967900 0.84273207 9 22.09179700 2.25049799 10 54.13644000 5.28557289 11 164.75478299 20.67593118 12 376.32501997 39.98897077 13 807.50995700 82.47956624
the script is
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" yerrorbars, y(x) lt rgb "blue" set key
the weird thing have plotted without errors, pops error. i've inspected line 1 of datafile , nothing seems strange in it.
the issue call script plot
command.
try:
load "plot_error.p"
instead.
plot
command expects data file , not script.
Comments
Post a Comment