gnuplot pdfcairo颜色饱和度

时间:2013-11-04 09:55:55

标签: pdf pdf-generation gnuplot

我在使用pdfcairo进行绘图时遇到问题我在gnuplot中使用wxt终端进行绘制。

我用于wxt的代码是:

set term wxt 0 size 1000,562
set pm3d map
set size 0.9
splot 'XYZpm3d.dat'

这就是:

在pdfcairo中我写道:

set term pdf color size 25cm,14cm
set out 'plot.pdf'
set pm3d map
set size 0.9
splot 'XYZpm3d.dat' palette
set out

我得到类似的东西:

如何修复色彩饱和度问题?它不会影响颜色栏或文本,如果splotsplot (x*x+y)/100而不是数据文件,则也不会发生这种情况。使用map时,似乎也会出现问题。

1 个答案:

答案 0 :(得分:1)

这不是饱和效果,而是splot绘制的许多小矩形的抗锯齿问题,请参阅我对problematic Moire pattern in image produced with gnuplot pm3d and pdf output的回答的开头。

解决此问题的最佳方法是绘制with image,将数据绘制为位图,这也是您实际拥有的位图。然而,这需要x和y中的等间隔值:

set term pdf color size 25cm,14cm
set out 'plot.pdf'
set size 0.9
set autoscale fix
plot 'XYZpm3d.dat' with image
set out

您没有相同的间隔值来获取正确的图像,请参阅TeX.SX上的problematic Moire pattern in image produced with gnuplot pm3d and pdf outputBig data surface plots: Call gnuplot from tikz to generate bitmap and include automatically?