2017-03-09 122 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