0

我有以下数据文件:

x  y
 1 50.583
 2 27.842
 3 19.156                                                              
 4 15.491
 6  9.779
 8  8.584                                                              
12  6.436                                                              
16  4.595
24  3.605
32  2.447

我想绘制点 (x i , y i / y 1 )。如何使用 gnuplot 执行此操作?

4

1 回答 1

0

我想我想出了一个使用 shell 脚本的解决方案:

#!/bin/sh
base=`head -n1 input.txt | cut -f2 -d' '`
gnuplot << EOF
plot input.txt using 1:(\$2 / $base)
EOF
于 2009-11-10T20:47:14.667 回答