"带标签"在splot导致gnuplot崩溃

时间:2016-04-13 17:54:38

标签: gnuplot labels

嗯,不是真的崩溃,而是一种无限循环:gnuplot没有反应。 我'我试图从数据文件中获得轮廓图,每条轮廓线上都有标签。这是我的gnuplot代码:

set key at screen 1, 0.9, 0 right top vertical Right noreverse enhanced autotitle nobox
set view map
unset surface
set isosamples 50, 50
set contour base
set cntrparam bspline
set cntrparam order 8
set cntrparam levels discrete -25,-50,-100,-150,-300,-500
set style data lines
set title "plot" 
set xlabel "Temps (ns)" 
set xrange [ * : * ] noreverse nowriteback
set ylabel "T_e" 
set yrange [ * : * ] noreverse nowriteback
splot "Hydro-fct-temps.csv" u 1:3:6 lw 2

此代码工作正常,但是如果我用(http://gnuplot.sourceforge.net/demo_5.0/contours.html中已经看到的)替换splot行:

splot "Hydro-fct-temps.csv" u 1:3:6 lw 2, "Hydro-fct-temps.csv" u 1:3:6 with labels boxed

然后gnuplot没有绘制任何东西,我只能用ctrl-c得到提示。数据文件类似于:

#Time [ns]      N_e [1/cc]      T_e [eV]        Z               Rho [gr/cc] Pos [um]        
0.000000e+00    0.000000e+00    0.000000e+00    4.100000e+01    8.500000e+00    0.000000e+00    
0.000000e+00    0.000000e+00    0.000000e+00    4.100000e+01    8.500000e+00    4.579648e-03    
0.000000e+00    0.000000e+00    0.000000e+00    4.100000e+01    8.500000e+00    9.191354e-03    
0.000000e+00    0.000000e+00    0.000000e+00    4.100000e+01    8.500000e+00    1.383534e-02

有什么想法可以帮助我吗?谢谢!

编辑:我在Mac OS 10.11.4上使用Gnuplot 5.0.3,aqua终端

0 个答案:

没有答案