Xmgrace中的轮廓图

时间:2014-09-26 20:29:33

标签: contour xmgrace

enter image description here我有一个包含3列的数据文件。现在我想用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 个答案:

答案 0 :(得分:2)

快速Google搜索显示xmgrace(a.k.a。Grace)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中重新制作原始情节的原因!

答案 1 :(得分:-1)

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

目前,此软件位于https://sourceforge.net/projects/gracegtk/

只要GraceGtk可以在互联网上的某个地方下载,这个答案就有效。

轮廓图和撤消是Grace未来版本的计划功能。