【问题标题】:Using gnuplot, how do you create an eps file of a contour plot?使用 gnuplot,如何创建等高线图的 eps 文件?
【发布时间】:2018-09-19 10:12:13
【问题描述】:

使用 gnuplot 5.0 patchlevel 5,我正在尝试创建一个包含等高线图的 eps 文件。但是,等高线伴随着网格并且没有要求的颜色。使用 png 终端的输出就好了。

这是我用来生成 eps 图片的最少代码:

set terminal epscairo
set output "test.eps"
set pm3d map impl
set style increment user
set contour
do for [i=1:5] { set style line i lc rgb "black" lw 3}
splot "data.dat" w pm3d notitle

eps image created by gnuplot with the funny feature around the contour

用 png 替换 epscairo 终端可以得到所需的输出:

png image created by gnuplot, this how I would like the eps image to look like

我使用的数据文件可以在这里找到: data.dat

【问题讨论】:

  • 查看stackoverflow.com/a/18954245/2604213了解这个问题的详细解释
  • 我不认为我有这种问题。我在 eps 图中看到的只是一个额外的网格和轮廓线颜色的变化,没有莫尔条纹。

标签: gnuplot


【解决方案1】:

我建议使用 epslatexpostscript 终端,以便您可以将热图编码为 png 中的二进制文件(请参阅两个终端的 level3 选项)。

尝试将您的第一行替换为以下内容:

set term postscript color eps level3

【讨论】:

  • 该选项仅影响绘图with image,但不影响pm3d
  • 谢谢你,解决了问题。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2019-11-28
  • 1970-01-01
  • 2016-12-07
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2014-01-06
相关资源
最近更新 更多