0

これは私のコードです:

set title "courbe"
set xlabel "first" 
set ylabel "second"
set y2label "third"
plot "File.txt" using 1:2 with linespoints tit 'first', "File.txt" using 1:3 with linespoints tit 'second', "File.txt" using 1:4 with points tit 'third'

お願いします、3番目の斧は斧に数字を表示しません..何かアイデアはありますか? ここに画像の説明を入力

ありがとうございました。

4

1 に答える 1

0

2 番目のプロット コマンドのタイトルが一致しないため、そのプロットを生成するために使用した実際のスクリプトであるとは思えません。それを除けば、実際には y2 軸に何もプロットしていません。y2 軸に何かを配置するには、明示的に指定する必要があります (例: axes x1y2)。何かのようなもの:

set title "courbe"
set xlabel "first" 
set ylabel "second"
set y2label "third"
plot "File.txt" using 1:2 with linespoints title 'first',\
     "File.txt" using 1:3 with linespoints title 'second', \
     "File.txt" axes x1y2 using 1:4 with points title 'third'

トリックを行う必要があります。

于 2012-11-27T19:28:27.047 に答える