我使用gnuplot在我的.eps数字上没有颜色

时间:2015-02-25 14:13:35

标签: gnuplot osx-mavericks eps

我想用gnuplot跟踪一些曲线。我最近更换了我的电脑,现在我有一台MacOSX 10.9.5 在我的另一台计算机中,颜色出现在我的.eps图中,但我的Mac不再存在,并显示错误消息:“·未找到时间,使用Courier。”我认为这是另一个问题。 我的gnuplot版本是5.0版补丁级别。

这是我用gnuplot加载

的trace.p

$ gnuplot

gnuplot>加载“trace.p”

set autoscale
unset logscale
unset label
set term postscript enhanced 'Times'
set output"E_Hxc_bath_exact_weak.eps"
set title "E^{bath,exact}_{Hxc}/U, E^{bath,weak}_{Hxc}/U functions of U/t with potential more or equal to second-order set to 0"
set xlabel "U/t"
set ylabel "E^{bath}_{Hxc}/U"
set xrange [0.7:10]
set yrange [-7:10]
set key left top
set style line 1 lt 1 lc rgb "red" lw 3
set style line 2 lt 2 lc rgb "red" lw 3
set style line 3 lt 3 lc rgb "red" lw 3
set style line 4 lt 1 lc rgb "green" lw 3
set style line 5 lt 2 lc rgb "green" lw 3
set style line 6 lt 3 lc rgb "green" lw 3
set style line 7 lt 1 lc rgb "black" lw 3
set style line 8 lt 2 lc rgb "black" lw 3
set style line 9 lt 1 lc rgb "blue" lw 3
set style line 10 lt 2 lc rgb "blue" lw 3
set style line 11 lt 3 lc rgb "blue" lw 3
set style line 12 lt 1 lc rgb "violet" lw 3
set style line 13 lt 2 lc rgb "violet" lw 3

plot (0.25 - (3/4)/(sqrt(1+64/(x**2)) + 2*sqrt(1+16/(x**2)))) with lines ls 7 title "exact", (0.25 - 3*(x**2)/64 + (x**3)/(2*16*16)) with lines ls 1 title "weak";

有些行肯定没用,但我不知道为什么结果是无色的,也许我想念一个应用程序或什么......

2 个答案:

答案 0 :(得分:5)

尝试将color标记添加到脚本中的set term行。

答案 1 :(得分:1)

对于没有出现的虚线,这是因为在版本5.0中,命令发生变化,它不再是线型而是dashtype。

请参阅Gnuplot line types的回复以获得更高的精确度。