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 を追加します。
これがうまくいくかどうか教えてください!