我gnuplot在 Windows XP 上运行 4.6 版(补丁级别 0)。我已经放置了两个文件,data.txt并且plot.plt在同一个目录中。
的内容data.txt如下(就是从0到2 Pi的sin x):
0. 0.
0.5 0.479425538604203
1. 0.8414709848078965
1.5 0.9974949866040544
2. 0.9092974268256817
2.5 0.5984721441039565
3. 0.1411200080598672
3.5 -0.35078322768961984
4. -0.7568024953079282
4.5 -0.977530117665097
5. -0.9589242746631385
5.5 -0.7055403255703919
6. -0.27941549819892586
内容plot.plt如下:
set title 'My Brown'
set xlabel 'my x'
set ylabel 'my y'
plot 'data.txt' lc rgb 'brown'
set term postscript eps enhanced "Arial" 24
set output 'example.eps'
当我打开plot.plt时gnuplot,确实绘制了数据。此外,在与和example.eps相同的文件夹中创建一个文件。但是,似乎是空白/空。当我右键单击然后选择属性时,它说:data.txtplot.pltexample.epsexample.eps
EPS文件
大小:0 字节
磁盘大小:0 字节
当我example.eps在Adobe Photoshop Elements中打开时,我只看到一个空白(白色)文件。
你对我做错了什么有任何想法吗?