2017-03-09 153 views
0

我有2個文件分設置兩個Y軸是GNUPLOT

C:\1.txt 
C:\2.txt 

我想他們兩個的情節變成了同樣的情節。

set style line 1 lc rgb '#0060ad' lt 2 lw 2 pt 0 ps 1.5 
plot 'C:\1.txt' with linespoints ls 1 , 'C:\2.txt' with linespoints ls 1 

如何爲它們設置2個不同的y軸範圍(例如,[0:6000]和[0:150])?

+1

這是否幫助:https://stackoverflow.com/q/2827650/7010554? – maij

回答

0

link to documentation

我明白了。

set yrange [0:6000] 
set y2range [0:150] 
set xrange [0:5] 
set x2range [0:5] 
set y2tics 
plot 'C:\1.txt' axes x1y1 with lines , 'C:\2.txt' axes x2y2 with line 
+1

你不需要x2range,只需使用'x1y2' – Christoph