Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个带有数字的文件:
1 4 9 ...
我想从文件中的顺序位置绘制数字的依赖关系(点 [(1,1); (2;4); (3; 9); ...])。
我怎么能用 gnuplot 做到这一点?
尝试这个 :
plot "filename.txt" using ($0+1):1
$0 是条目的索引,但它从 0 开始,所以我们简单地将 1 添加到它。
告诉我这是否适合你!