设置两个y轴是gnuplot

时间:2017-03-09 15:27:27

标签: plot 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 个答案:

答案 0 :(得分: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
相关问题