2012-11-27 36 views
0

顯示值這是我的代碼:如何在斧頭ylabel2

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' 

請,第三斧不會對斧頭..have您的想法,請顯示數字? enter image description here

謝謝。

回答

0

我懷疑這是您用來生成該繪圖的實際腳本,因爲第二個繪圖命令的標題不匹配。除此之外,你實際上並沒有在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' 

應該這樣做。

+0

謝謝你的回答,我有這個錯誤:線1上的數據不正確 你有想法嗎? – user1735757

+0

@ user1735757 - 如果數據文件非常短,您可以將其與您正在處理的實際腳本一起發佈,以便我們可以隨時查找。沒有看到你使用的數據文件和實際腳本,我只能猜測。 – mgilson