2
我的數據文件看起來像:如何告訴gnuplot在使用兩個y軸進行繪圖時不要爲x值添加偏移量?
0 12.6 303.1 3.4577387486
120 10.5 278.9 2.8814489572
...
640 9.45 301.3 2.5933040615
我的代碼如下如:
set xlabel "Tiempo (min)"
set ylabel "Corriente en el anillo (mA)"
set y2label "Flujo (fotones/s)"
set ytics nomirror
set y2tics
set tics out
set autoscale y
set autoscale y2
plot 'tan_time_curr_flux.dat' using 1:3 lc rgb 'black' pt 6 lw 2 w lp axes x1y1 title "Corriente", 'tan_time_curr_flux.dat' using 1:4 lc rgb 'blue' pt 5 lw 2 w lp axes x2y2 title "Flujo"
正如你所看到的,有一點點偏差,在X,之間的各個數據點。隨着x的增長,這更加清晰。例如flux(flujo)的實際最後一點是640,2.59。但情節顯示在700點,2.59點。我該如何告訴gnuplot不要向第二條(藍色)行添加任何偏移量?
非常感謝! :)
Ps如果我繪製時間(第1列)與通量(第4列)或當前(第3列)... x的值保持正常。 (即沒有偏移)
我認爲這是..'axes x1y2'使情節,因爲它應該是。謝謝! – murpholinox