我想用gnuplot跟踪一些曲线。我最近更换了计算机,现在拥有MacOSX 10.9.5
在我的另一台计算机上,.eps图形中出现了颜色,但是Mac不再显示,并且出现了错误消息:“·使用Courier,找不到时间。”我认为这是另一个问题。
我的gnuplot版本是Version 5.0 patchlevel 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";

有些行肯定没用,但是我不知道为什么结果是无色的,也许我错过了一个应用程序之类的东西。

最佳答案

尝试在脚本中的color行中添加set term标志。

10-05 22:59