gnuplotの三列データファイルを生成する方法

NOMANアフマド・ハーン:

このコミュニティでの私の最初の質問です。私はgnuplotの(5.2)で、次の短いスクリプトを実行しています、

set table "testable.txt" plot '+' using 1:($1**2):($1**3) unset table

結果のデータファイルは2つだけの列が含まれています。第-10から10までの数字の系列、および第二その正方形(予想通り)が、(最初の列のエントリの立方体であるべきである)第3列が欠落しています。どのように私は私のデータファイルにその3番目の列を得ることができますか?

theozh:

使用with table確認してくださいhelp plot with table

set table "testable.txt"
plot '+' using 1:($1**2):($1**3) with table
unset table

おすすめ

転載: http://10.200.1.11:23101/article/api/json?id=399565&siteId=1