与 Gnuplot postscript 终端混淆(更正:这是 Mac 预览版的问题) [英] Confusion with Gnuplot postscript terminal (CORRECTION : This is an issue with Mac Preview)

查看:17
本文介绍了与 Gnuplot postscript 终端混淆(更正:这是 Mac 预览版的问题)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对如何让 postscript 终端将类似的图形复制到 png 终端感到困惑.

I am confused about the how to get the postscript terminal to replicate a similar figure to the png terminal.

这是我的脚本:

#!/usr/bin/env gnuplot

#set terminal png 
#set output 'test.png'
set terminal postscript eps enhanced
set output 'test.eps'

set palette defined (0 1.0 1.0 1.0, 1e-19 0.0 0.0 1.0, 1 1.0 0.0 0.0)
set cbrange [0:9]
plot 'test.dat' u 1:2:($3 > 0 ? $3 : 0) with image

这是我的数据文件:

1.0  1.0  4.0
1.0  2.0  7.0
1.0  3.0  9.0
2.0  1.0  6.0
2.0  2.0  8.0
2.0  3.0  2.0
3.0  1.0  8.0
3.0  2.0  1.0
3.0  3.0  0.0

当我使用 png 终端绘制数据时,单元格之间的边缘很清晰.当我使用 postscript 终端时,单元格的边缘使用颜色渐变在单元格的颜色之间过渡.

When I plot the data using the png terminal the edges between the cells are crisp. When I use the postscript terminal, the edges of the cells use a color gradient to transition between the colors of the cells.

问题:有没有办法让 eps 终端在单元格边缘没有颜色渐变并复制 png 图像的清晰边缘?

Question: Is there a way to make the eps terminal so that it does not have a gradient of colors at the edges of the cells and replicates the crisp edges of the png image?

推荐答案

事实证明 Mac 的预览在处理 eps 图像时遇到了困难.在 TexShop 使用 Adob​​e Acrobat 生成的 pdf 中查看时,它是正确的.谢谢克里斯托夫.

It turns out that Mac's Preview is having difficulty with dealing with the eps image. When viewed in TexShop generated pdf with Adobe Acrobat it is correct. Thank you Christoph.

这篇关于与 Gnuplot postscript 终端混淆(更正:这是 Mac 预览版的问题)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆