我正在尝试使用以下代码使用 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。
关于linux - Gnuplot 创建空的 eps 文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33845513/