使用gnuplot,如何创建等高线图的eps文件?

问题描述 投票:1回答:1

使用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

gnuplot
1个回答
1
投票

我建议使用epslatexpostscript终端,这样你就可以将热图编码为png中的二进制数(参见两个终端的level3选项)。

尝试使用以下内容替换第一行:

set term postscript color eps level3
© www.soinside.com 2019 - 2024. All rights reserved.