【问题标题】:I don't have color on my .eps figure using gnuplot使用 gnuplot 我的 .eps 图没有颜色
【发布时间】:2015-02-25 14:13:34
【问题描述】:

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

有些行肯定没用,但是不知道为什么结果是无色的,可能是我错过了一个应用什么的……

【问题讨论】:

    标签: gnuplot osx-mavericks eps


    【解决方案1】:

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

    【讨论】:

    • 确实,就这么简单...谢谢!
    【解决方案2】:

    虚线没有出现,是因为在5.0版本中,命令发生了变化,不再是linetype而是dashtype。

    查看Gnuplot line types 的回复以获得更准确的信息。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-02-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-12-12
      相关资源
      最近更新 更多