linux - Gnuplot 创建空的 eps 文件

标签 linux gnuplot ghostscript postscript eps

我正在尝试使用以下代码使用 gnuplot 创建一个 EPS 文件:

set terminal postscript eps enhanced
set output 'file.eps'
plot 'mydata.dat' using 1:2
replot
quit

但无济于事,EPS 文件中没有任何绘图。我不知道我错过了什么,我有 ghostscript、ghostscript 字体和 psutils。 EPS 文件只是空的白色文件。我在网上搜索过,但没有任何效果。

如何生成带有绘图的 EPS 文件?

规范: 软呢帽 21 x64_86 gnuplot-4.6 补丁 5 幽灵脚本 9.15

最佳答案


“ session ”:

set terminal postscript eps enhanced
set output 'file.eps'
plot 'mydata.dat' using 1:2 with linespoints
replot
quit

并且您将需要文件 mydata.dat 的一些数据,示例来自 http://lowrank.net/gnuplot/datafile2-e.html ,引用。 https://www.google.com/webhp?hl=all&gws_rd=ssl#hl=en&q=gnuplot+plot+file

#  X     Y1    Y2
1.0   0.0   0.1
2.0   0.0   0.1
3.0   0.0   0.1
4.0   0.1   0.2
5.0   0.6   0.4
6.0   1.0   0.9
7.0   1.2   1.7
8.0   1.3   2.4

$ gnuplot conf:好的,一个不错的情节,file.eps。


file.eps

关于linux - Gnuplot 创建空的 eps 文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33845513/

相关文章:

linux - 专用 CoreNLP 服务器控制问题

linux - "linux kernel is preemptive"是什么意思?

python - 倾斜轴 2D 图,其中 x y 轴成 60 度而不是 90 度

linux - Gnuplot 不加载图表

excel - 删除使用 pdfTk 创建的 pdf 中的多个嵌入字体

c - setuid() 失败 - 不允许操作

linux - 在 Linux 上的 stderr 上打印错误消息

gnuplot - gnuplot 中的点和空点

ghostscript - 将 EPS 图像插入 PostScript 文档