我的数据文件是:
This is your required output
Range: -42.3732 666.3634eV Yi, Yf > DATA-point FIX: 0.0000 0.0000 0.0000 x LIST 0.0000
DATA-point FIX: 0.5000 0.0000 0.0000 x LIST 0.5000
DATA-point FIX: 0.7500 0.3750 0.2641 x LIST 1.0224
DATA-point FIX: 0.0000 0.0000 0.0000 x LIST 1.9015
DATA-point FIX: 0.3750 0.3750 0.5282 x LIST 2.6500
DATA-point FIX: 0.5000 0.5000 0.3522 x LIST 2.8995
DATA-point FIX: 0.0000 0.0000 0.0000 x LIST 3.6895
DATA-point FIX: 0.5000 0.0000 0.3522 x LIST 4.3010
DATA-point FIX: 0.6250 0.2500 0.4402 x LIST 4.5941
DATA-point FIX: 0.7500 0.2500 0.3522 x LIST 4.7470
DATA-point FIX: 0.5000 0.5000 0.3522 x LIST 5.1005
DATA-point FIX: 0.5000 0.2500 0.5282 x LIST 5.4063
done junk has written below this part
我要设置号码
`-42.3732 and 666.3634 as y-axis limit`
然后要从]绘制箭头>
Xi, Yi to Xi, Yi nohead
其中Xi是一个可变数字,取决于数据文件,但我可以使用]对其进行grep设置>
grep LIST data.dat | awk '{print $NF}'
和
Yi and Yf are the y-axis limit as mentioned above but changes according to data file so these numbers are not the one that I mention here).
我想在我的gnu脚本中在从Xi,Yi到Xi,Yf的每个点上绘制箭头。
我有一个想法,如果我们将以上数据以可变形式存储,并且这样做是可以做到的
set VARIABLE
其中的变量是这样的
VARIABLE=`arrow from Xi,Yi to Xi,Yf nohead ; set`
下一部分,我要在x轴上用字母表示每个Xi的标签
X, Y, Z, .....
您能告诉我如何在gnuplot中对其进行管理吗?
我的数据文件是:============这是您所需的输出范围:-42.3732 666.3634eV Yi,Yf>数据点固定:0.0000 0.0000 0.0000 x列表0.0000数据点固定: 0.5000 0.0000 0 ....
从您的描述中,我仍然不清楚在哪里获取哪些值。
我的理解如下:您有一个(或几个?)文件,这些文件具有您给出的结构(而第二行的结构为>
,此后的数据对我来说很奇怪)。据我了解,awk命令提取一行中最后一个标记(列)的值。因此,我假设xi
是每行的最后一个值。在第2行中,xi
将在第14列中,在随后的所有行中,xi
将在第8列中。