使用gnuplot,如何创建轮廓图的eps文件?

时间:2018-09-19 10:12:13

标签: gnuplot

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

1 个答案:

答案 0 :(得分:1)

我建议使用epslatexpostscript终端,以便您可以将热图编码为png二进制格式(两个终端都请参见level3选项)。

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

set term postscript color eps level3
相关问题