2014-09-26 124 views
1

enter image description here我有一个包含3列的数据文件。现在我想用xmgrace绘制轮廓图,因为我大多使用xmgrace。但不知何故,我现在无法做到。任何人都可以帮我一下吗?提前致谢。 数据以格式如下所示:Xmgrace中的轮廓图

3.24 4.78 0.015776 3.24 4.80 0.011777 3.24 4.82 0.00986 3.24 4.84 0.010185 3.24 4.86 0.012515 3.26 4.78 0.009244 3.26 4.80 0.006368 3.26 4.82 0.005792 3.26 4.84 0.007121 3.26 4.86 0.010361 3.28 4.78 0.004666 3.28 4.80 0.0028 3.28 4.82 0.003017 3.28 4.84 0.005285 3.28 4.86 0.0095 3.30 4.78 0.001295 3.30 4.80 0.000557 3.30 4.82 0.001924 3.30 4.84 0.005266 3.30 4.86 0.010401 3.32 4.78 0 3.32 4.80 0.000233 3.32 4.82 0.002508 3.32 4.84 0.006666 3.32 4.86 0.012515 3.34 4.70 0.012943 3.34 4.72 0.006904 3.34 4.74 0.002791 3.34 4.76 0.000662 3.36 4.70 0.011024 3.36 4.72 0.005998 3.36 4.74 0.003063 3.36 4.76 0.001814 3.38 4.70 0.011203 3.38 4.72 0.007077 3.38 4.74 0.004755 3.38 4.76 0.004188 3.40 4.70 0.01263 3.40 4.72 0.009182 3.40 4.74 0.007685 3.40 4.76 0.007985

最终曲线应该像在附接,如图所示。

回答

2

快速谷歌搜索显示,xmgrace显示(又名格雷斯)does not support contour plots

有使用gnuplotmatplotlibOrigin和更多云图丰富的范例脚本。

下面是使用你的数据gnuplot的一个简单的例子: 一旦保存你的数据为3列数据文件data.dat以下内容作为一个脚本文件:

set parametric 
set contour base 
set view 0,0,1 
unset surface 
unset key 
unset ztics 
set dgrid3d 
set title "Simple contour plot example" 
set xlabel "X" 
set ylabel "Y" 
set cntrparam levels 10 
splot "data.dat" using 1:2:3 with line 

,并从UNIX命令线电话gnuplot -persist scriptfile。 这给出了以下的输出: enter image description here

因此,它看起来像你没有用xmgrace显示,您使用gnuplot的,这就是为什么你可以不知道如何重新改造在xmgrace显示原来的情节!

+0

非常感谢,你是对的我没有尝试xmgrace。再次感谢! – 2015-02-16 11:05:44

-1

您可以使用GraceGtk绘制轮廓线,这是Grace的一个分支,它还增加了撤消功能。

目前,该软件可在https://sourceforge.net/projects/gracegtk/

只要GraceGtk可以在Internet上某处下载,此答案有效。

等高线图和撤消是Grace未来版本的计划功能。

+0

欢迎来到堆栈溢出!请引用链接中最重要的部分,以防页面发生更改或永久脱机。 – ByteHamster 2016-02-12 23:52:37

+0

我改进了答案。请注意它。 – Marduk 2016-02-14 13:13:07